ArticleslgStudy

computer science

Web crawler

Web crawler 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 Web crawler rather than just read about it. In short: A web crawler, sometimes called a spider or spiderbot and often shortened to crawler, is an Internet bot that systematically browses the World Wide Web and that is typically operated by search engines for the purpose of Web indexing (web spidering). Web search engines and some other websites use web crawling or spidering software to update their web content or indices of other sites' web content.

Web crawler — main illustration
Web crawler — illustration

Key takeaways

  • Web crawler 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 Web crawler to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Web crawler from memory before moving on to harder problems.

Reference excerpt

A web crawler, sometimes called a spider or spiderbot and often shortened to crawler, is an Internet bot that systematically browses the World Wide Web and that is typically operated by search engines for the purpose of Web indexing (web spidering). Web search engines and some other websites use web crawling or spidering software to update their web content or indices of other sites' web content. Web crawlers copy pages for processing by a search engine, which indexes the downloaded pages so that users can search more efficiently. Crawlers consume resources on visited systems and often visit sites unprompted. Issues of schedule, load, and "politeness" come into play when large collections of pages are accessed. Mechanisms exist for public sites not wishing to be crawled to make this known to the crawling agent. For example, including a robots.txt file can request bots to index only parts of a website, or nothing at all. The number of web pages is extremely large, and search engines do not index all web content. Studies of late-1990s search engines found that individual engines indexed only a fraction of the then-indexable web. Modern search engines use crawling, indexing, and ranking systems to return relevant results quickly, although not all pages are crawled, indexed, or served. Crawlers can validate hyperlinks and HTML code. They can also be used for web scraping and data-driven programming.

Nomenclature A web crawler is also known as a spider, an ant, an automatic indexer, or (in the FOAF software context) a Web scutter.

Overview A web crawler starts with a list of URLs to visit. Those first URLs are called the seeds. As the crawler visits these URLs, by communicating with web servers that respond to those URLs, it identifies all the hyperlinks in the retrieved web pages and adds them to the list of URLs to visit, called the crawl frontier. URLs from the frontier are recursively visited according to a set of policies. If the crawler is performing archiving of websites (or web archiving), it copies and saves the information as it goes. The archives are usually stored in such a way they can be viewed, read and navigated as if they were on the live web, but are preserved as 'snapshots'. The large volume implies the crawler can only download a limited number of the Web pages within a given time, so it needs to prioritize its downloads. The high rate of change can imply the pages might have already been updated or even deleted. The number of possible URLs crawled being generated by server-side software has also made it difficult for web crawlers to avoid retrieving duplicate content. Endless combinations of HTTP GET (URL-based) parameters exist, of which only a small selection will actually return unique content. For example, a simple online photo gallery may offer three options to users, as specified through HTTP GET parameters in the URL. If there exist four ways to sort images, three choices of thumbnail size, two file formats, and an option to disable user-provided content, then the same set of content can be accessed with 48 different URLs, all of which may be linked on the site. This mathematical combination creates a problem for crawlers, as they must sort through endless combinations of relatively minor scripted changes in order to retrieve unique content. As Edwards et al. noted, "Given that the bandwidth for conducting crawls is neither infinite nor free, it is becoming essential to crawl the Web in not only a scalable, but efficient way, if some reasonable measure of quality or freshness is to be maintained." A crawler must carefully choose at each step which pages to visit next.

Crawling policy The behavior of a web crawler is the outcome of a combination of policies:

a selection policy which states the pages to download a re-visit policy which states when to check for changes to the pages a politeness policy that states how to avoid overloading websites a parallelization policy that states how to coordinate distributed web crawlers

… excerpt ends here. Continue reading the full article.

Illustrations

Web crawler: Architecture of a web crawler
Architecture of a web crawler
Web crawler: Evolution of Freshness and Age in a web crawler
Evolution of Freshness and Age in a web crawler

Worked examples

Example 1 — a first encounter with Web crawler

Start with the simplest possible case. Write down what Web crawler 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 Web crawler 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 Web crawler 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 Web crawler

In research
Web crawler 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 Web crawler 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
Web crawler is common in secondary-school and first-year university syllabi. It links to neighbouring topics Internet search algorithms, Search engine software, Web crawlers, so understanding it makes those chapters shorter.
In everyday life
Look for Web crawler 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 “Web crawler” →

Affiliate

Preply — study more efficiently by working with a personal tutor. 50% off.

How to study Web crawler in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Web crawler 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 Web crawler out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Web crawler in simple terms?

A web crawler, sometimes called a spider or spiderbot and often shortened to crawler, is an Internet bot that systematically browses the World Wide Web and that is typically operated by search engines for the purpose of Web indexing (web spidering). Web search engines and some other websites use we…

Why does Web crawler 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 Web crawler?

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 Web crawler.

Tags

  • Internet search algorithms
  • Search engine software
  • Web crawlers

Keep exploring