Skip to main content
QUICK REVIEW

[Paper Review] Rules of Acquisition for Mementos and Their Content

Shawn Jones, Harihar Shankar|arXiv (Cornell University)|Feb 19, 2016
Web Data Mining and AnalysisComputer Science12 references4 citations
TL;DR

This paper identifies critical challenges in acquiring and extracting text from web mementos across multiple archives, revealing that HTTP-based retrieval often fails due to non-standard redirects, JavaScript-based redirection, and inconsistent HTML rendering. The authors demonstrate that tools like PhantomJS are often required, and parsing libraries like lxml and Beautiful Soup face issues with malformed or archive-modified HTML, significantly impacting text extraction reliability for digital preservation and link rot mitigation efforts.

ABSTRACT

Text extraction from web pages has many applications, including web crawling optimization and document clustering. Though much has been written about the acquisition of content from live web pages, content acquisition of archived web pages, known as mementos, remains a relatively new enterprise. In the course of conducting a study with almost 700,000 web pages, we encountered issues acquiring mementos and extracting text from them. The acquisition of memento content via HTTP is expected to be a relatively painless exercise, but we have found cases to the contrary. We also find that the parsing of HTML, already known to be problematic, can be more complex when one attempts to extract the text of mementos across many web archives, due to issues involving different memento presentation behaviors, as well as the age of the HTML in their mementos. For the benefit of others acquiring mementos across many web archives, we document those experiences here.

Motivation & Objective

  • To investigate the reliability and consistency of memento acquisition across multiple web archives for research purposes.
  • To identify technical obstacles in retrieving and extracting text from archived web pages (mementos) using standard HTTP methods.
  • To document how different web archives modify memento content through branding, redirects, and HTML presentation, affecting text extraction.
  • To evaluate the effectiveness of common text extraction tools (e.g., lxml, Beautiful Soup) on memento content and identify parsing edge cases.
  • To provide practical solutions and awareness for researchers aiming to compare memento content across archives for digital preservation and semantic analysis.

Proposed method

  • Used cURL and standard HTTP GET to retrieve mementos from web archives, identifying cases where direct retrieval failed.
  • Employed PhantomJS with custom scripts to handle JavaScript-based redirects and frame-based content loading, particularly for WebCite and Internet Archive mementos.
  • Implemented a fallback character encoding detection algorithm, defaulting to UTF-8 when archive-provided encoding failed.
  • Applied lxml and Beautiful Soup for HTML parsing, noting limitations when handling unclosed tags, malformed noscript elements, and special character encodings.
  • Developed archive-specific content stripping techniques to remove branding and navigation elements that distort text comparison.
  • Discarded mementos with non-standard tag representations (e.g., &lt; and &gt; instead of < and >) that skewed text comparison, due to parsing inconsistencies.

Experimental results

Research questions

  • RQ1To what extent do web archives deviate from standard HTTP behavior when serving mementos, particularly in redirect handling?
  • RQ2How do differences in HTML rendering and content modification across archives affect text extraction accuracy and consistency?
  • RQ3What are the limitations of standard parsing libraries (e.g., Beautiful Soup, lxml) when processing memento content from diverse archives?
  • RQ4How do encoding issues and malformed HTML in mementos impact text extraction and subsequent comparison across archives?
  • RQ5What are the performance and reliability trade-offs of using browser simulation tools like PhantomJS for memento acquisition compared to direct HTTP methods?

Key findings

  • Approximately 25% of mementos in the dataset could not be acquired using standard HTTP GET alone, due to non-RESTful behaviors such as JavaScript redirects and frame-based content loading.
  • WebCite required PhantomJS to handle session-based redirects and frame loading, increasing acquisition time to over a month for nearly 100,000 mementos, compared to just two weeks for the Internet Archive.
  • The Internet Archive frequently replaced HTTP 302 redirects with JavaScript-simulated redirects, requiring client-side execution to access the actual memento content.
  • Parsing issues arose with lxml when handling unclosed tags and malformed noscript elements, sometimes causing complete text loss due to incorrect DOM state parsing.
  • Some archives altered HTML by replacing < and > with &lt; and &gt;, which parsing tools interpreted as literal text, introducing false tags and skewing text comparison results.
  • Character encoding was frequently misreported, necessitating a custom detection algorithm with UTF-8 fallback to ensure reliable text extraction.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.