ArticleslgStudy

computer science

Heritrix

Heritrix is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Heritrix rather than just read about it. In short: Heritrix is a web crawler designed for web archiving. It was originally written in collaboration between the Internet Archive, National Library of Norway and National Library of Iceland.

Heritrix — main illustration
Heritrix — illustration

Key takeaways

  • Heritrix belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Heritrix to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Heritrix from memory before moving on to harder problems.

Reference excerpt

Heritrix is a web crawler designed for web archiving. It was originally written in collaboration between the Internet Archive, National Library of Norway and National Library of Iceland. Heritrix is available under a free software license and written in Java. The main interface is accessible using a web browser, and there is a command-line tool that can optionally be used to initiate crawls. Heritrix was developed jointly by the Internet Archive and the Nordic national libraries on specifications written in early 2003. The first official release was in January 2004, and it has been continually improved by employees of the Internet Archive and other interested parties. For many years Heritrix was not the main crawler used to crawl content for the Internet Archive's web collection. The largest contributor to the collection, as of 2011, is Alexa Internet. Alexa crawls the web for its own purposes, using a crawler named ia_archiver. Alexa then donates the material to the Internet Archive. The Internet Archive itself did some of its own crawling using Heritrix, but only on a smaller scale. Starting in 2008, the Internet Archive began performance improvements to do its own wide scale crawling, and now does collect most of its content.

Projects using Heritrix A number of organizations and national libraries are using Heritrix, among them:

Austrian National Library, Web Archiving Bibliotheca Alexandrina's Internet Archive Bibliothèque nationale de France British Library California Digital Library's Web Archiving Service CiteSeerX Documenting Internet2 Internet Memory Foundation Library and Archives Canada Library of Congress National and University Library of Iceland National Library of Finland National Library of New Zealand Royal Library of the Netherlands (Koninklijke Bibliotheek) Netarkivet.dk National Library of Israel National Széchényi Library, Hungary

Arc files Older versions of Heritrix by default stored the web resources it crawls in an Arc file. This file format is wholly unrelated to ARC (file format). This format has been used by the Internet Archive since 1996 to store its web archives. More recently it saves by default in the WARC file format, which is similar to ARC but more precisely specified and more flexible. Heritrix can also be configured to store files in a directory format similar to the Wget crawler that uses the URL to name the directory and filename of each resource. An Arc file stores multiple archived resources in a single file in order to avoid managing a large number of small files. The file consists of a sequence of URL records, each with a header containing metadata about how the resource was requested followed by the HTTP header and the response. Example:

Tools for processing Arc files Heritrix includes a command-line tool called arcreader which can be used to extract the contents of an Arc file. The following command lists all the URLs and metadata stored in the given Arc file (in CDX format):

arcreader IA-2006062.arc

The following command extracts hello.html from the above example assuming the record starts at offset 140:

arcreader -o 140 -f dump IA-2006062.arc

Other tools:

Arc processing tools WERA (Web ARchive Access) Archived 2011-03-07 at the Wayback Machine

Command-line tools Heritrix comes with several command-line tools:

htmlextractor – displays the links Heritrix would extract for a given URL hoppath.pl – recreates the hop path (path of links) to the specified URL from a completed crawl manifest_bundle.pl – bundles up all resources referenced by a crawl manifest file into an uncompressed or compressed tar ball cmdline-jmxclient – enables command-line control of Heritrix arcreader – extracts contents of ARC files (see above) Further tools are available as part of the Internet Archive's warctools project.

See also

Internet Archive – American non-profit digital archive National Digital Information Infrastructure and Preservation Program (NDIIPP) – Archival program by the Library of Congress Web crawler – Software that systematically browses the World Wide Web

References As of this edit, this article uses content from "Re: Control over the Internet Archive besides just “Disallow /”?", which is licensed in a way that permits reuse under the Creative Commons Attribution-ShareAlike 3.0 Unported License, but not under the GFDL. All relevant terms must be followed.

External links heritrix3 on GitHub

Tools by Internet Archive Heretrix 3 Documentation NutchWAX Archived 2011-09-28 at the Wayback Machine - search web archive collections Wayback (Open source Wayback Machine) Archived 2011-09-16 at the Wayback Machine - search and navigate web archive collections using NutchWax

Links to related tools Arc file format How to run Heritrix in Windows WERA (Web ARchive Access) Archived 2011-03-07 at the Wayback Machine - search and navigate web archive collections using NutchWAX

Illustrations

Heritrix illustration

Worked examples

Example 1 — a first encounter with Heritrix

Start with the simplest possible case. Write down what Heritrix claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Heritrix before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Heritrix ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Heritrix

In research
Heritrix appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Heritrix in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Heritrix is common in secondary-school and first-year university syllabi. It links to neighbouring topics 2014 software, Free software programmed in Java, Free web crawlers, so understanding it makes those chapters shorter.
In everyday life
Look for Heritrix outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Heritrix” →

How to study Heritrix in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Heritrix means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Heritrix out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Heritrix in simple terms?

Heritrix is a web crawler designed for web archiving. It was originally written in collaboration between the Internet Archive, National Library of Norway and National Library of Iceland.

Why does Heritrix matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Heritrix?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Heritrix.

Tags

  • 2014 software
  • Free software programmed in Java
  • Free web crawlers
  • Software using the Apache license
  • Web archiving

Keep exploring