Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Web crawler
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
==Crawling policy== The behavior of a Web crawler is the outcome of a combination of policies:<ref>{{Cite thesis |degree=PhD |title=Effective Web Crawling |url=http://chato.cl/research/crawling_thesis |last=Castillo |first=Carlos |year=2004 |publisher=University of Chile|access-date=2010-08-03}}</ref> * 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. ===Selection policy=== Given the current size of the Web, even large search engines cover only a portion of the publicly available part. A 2009 study showed even large-scale [[search engines]] index no more than 40β70% of the indexable Web;<ref>{{cite conference |title=The indexable web is more than 11.5 billion pages |author=Gulls, A. |author2=A. Signori |year=2005 |publisher=ACM Press |book-title=Special interest tracks and posters of the 14th international conference on World Wide Web |pages=902β903 |doi=10.1145/1062745.1062789 }}</ref> a previous study by [[Steve Lawrence (computer scientist)|Steve Lawrence]] and [[Lee Giles]] showed that no [[Search engine indexing|search engine indexed]] more than 16% of the Web in 1999.<ref>{{Cite journal | doi = 10.1038/21987 | volume = 400 | issue = 6740 | pages = 107β9 | author1= Lawrence, Steve | author2 = C. Lee Giles | title = Accessibility of information on the web | journal = Nature | date = 1999-07-08 | pmid = 10428673 |bibcode = 1999Natur.400..107L | s2cid = 4347646 | doi-access = free }}</ref> As a crawler always downloads just a fraction of the [[Web pages]], it is highly desirable for the downloaded fraction to contain the most relevant pages and not just a random sample of the Web. This requires a metric of importance for prioritizing Web pages. The importance of a page is a function of its [[Intrinsic and extrinsic properties (philosophy)|intrinsic]] quality, its popularity in terms of links or visits, and even of its URL (the latter is the case of [[vertical search|vertical search engines]] restricted to a single [[top-level domain]], or search engines restricted to a fixed Web site). Designing a good selection policy has an added difficulty: it must work with partial information, as the complete set of Web pages is not known during crawling. Junghoo Cho ''et al.'' made the first study on policies for crawling scheduling. Their data set was a 180,000-pages crawl from the <kbd>stanford.edu</kbd> domain, in which a crawling simulation was done with different strategies.<ref>{{cite journal |author=Cho, J. |author2=Garcia-Molina, H. |author3=Page, L. |title = Efficient Crawling Through URL Ordering |url = http://ilpubs.stanford.edu:8090/347/ |journal = Seventh International World-Wide Web Conference |date = April 1998 |doi=10.1142/3725 |isbn=978-981-02-3400-3 |place = Brisbane, Australia |access-date = 2009-03-23}}</ref> The ordering metrics tested were [[Breadth-first search|breadth-first]], [[backlink]] count and partial [[PageRank]] calculations. One of the conclusions was that if the crawler wants to download pages with high Pagerank early during the crawling process, then the partial Pagerank strategy is the better, followed by breadth-first and backlink-count. However, these results are for just a single domain. Cho also wrote his PhD dissertation at Stanford on web crawling.<ref>Cho, Junghoo, [http://oak.cs.ucla.edu/~cho/papers/cho-thesis.pdf "Crawling the Web: Discovery and Maintenance of a Large-Scale Web Data"], PhD dissertation, Department of Computer Science, Stanford University, November 2001.</ref> Najork and Wiener performed an actual crawl on 328 million pages, using breadth-first ordering.<ref>Najork, Marc and Janet L. Wiener. [http://www10.org/cdrom/papers/pdf/p208.pdf "Breadth-first crawling yields high-quality pages".] {{Webarchive|url=https://web.archive.org/web/20171224210412/http://www10.org/cdrom/papers/pdf/p208.pdf |date=24 December 2017 }} In: ''Proceedings of the Tenth Conference on World Wide Web'', pages 114β118, Hong Kong, May 2001. Elsevier Science.</ref> They found that a breadth-first crawl captures pages with high Pagerank early in the crawl (but they did not compare this strategy against other strategies). The explanation given by the authors for this result is that "the most important pages have many links to them from numerous hosts, and those links will be found early, regardless of on which host or page the crawl originates." Abiteboul designed a crawling strategy based on an [[algorithm]] called OPIC (On-line Page Importance Computation).<ref>{{cite conference |publisher = ACM |doi = 10.1145/775152.775192 |isbn = 1-58113-680-3 |pages = 280β290 |author1 = Abiteboul, Serge |author2 = Mihai Preda |author3 = Gregory Cobena |title = Adaptive on-line page importance computation |book-title = Proceedings of the 12th international conference on World Wide Web |location = Budapest, Hungary |access-date = 2009-03-22 |year = 2003 | url = http://www2003.org/cdrom/papers/refereed/p007/p7-abiteboul.html}}</ref> In OPIC, each page is given an initial sum of "cash" that is distributed equally among the pages it points to. It is similar to a PageRank computation, but it is faster and is only done in one step. An OPIC-driven crawler downloads first the pages in the crawling frontier with higher amounts of "cash". Experiments were carried in a 100,000-pages synthetic graph with a power-law distribution of in-links. However, there was no comparison with other strategies nor experiments in the real Web. Boldi ''et al.'' used simulation on subsets of the Web of 40 million pages from the <kbd>.it</kbd> domain and 100 million pages from the WebBase crawl, testing breadth-first against depth-first, random ordering and an omniscient strategy. The comparison was based on how well PageRank computed on a partial crawl approximates the true PageRank value. Some visits that accumulate PageRank very quickly (most notably, breadth-first and the omniscient visit) provide very poor progressive approximations.<ref>{{cite journal |doi = 10.1002/spe.587 |volume = 34 |issue = 8 |pages = 711β726 |author1 =Boldi, Paolo |author2 = Bruno Codenotti |author3 = Massimo Santini |author4 = Sebastiano Vigna |title = UbiCrawler: a scalable fully distributed Web crawler |journal = Software: Practice and Experience |access-date = 2009-03-23 |year = 2004 |url = http://vigna.dsi.unimi.it/ftp/papers/UbiCrawler.pdf |citeseerx = 10.1.1.2.5538 |s2cid = 325714 |archive-date = 20 March 2009 |archive-url = https://web.archive.org/web/20090320030833/http://vigna.dsi.unimi.it/ftp/papers/UbiCrawler.pdf |url-status = dead }}</ref><ref>{{cite book |pages = 168β180 |author1 = Boldi, Paolo |author2 = Massimo Santini |author3 = Sebastiano Vigna |title = Algorithms and Models for the Web-Graph |volume = 3243 |chapter = Do Your Worst to Make the Best: Paradoxical Effects in PageRank Incremental Computations |access-date = 2009-03-23 |year = 2004 |chapter-url = http://vigna.dsi.unimi.it/ftp/papers/ParadoxicalPageRank.pdf |doi = 10.1007/978-3-540-30216-2_14 |series = Lecture Notes in Computer Science |isbn = 978-3-540-23427-2 |archive-date = 1 October 2005 |archive-url = https://web.archive.org/web/20051001063017/http://vigna.dsi.unimi.it/ftp/papers/ParadoxicalPageRank.pdf |url-status = dead }}</ref> Baeza-Yates ''et al.'' used simulation on two subsets of the Web of 3 million pages from the <kbd>.gr</kbd> and <kbd>.cl</kbd> domain, testing several crawling strategies.<ref name=baeza2005>Baeza-Yates, R.; Castillo, C.; Marin, M. and Rodriguez, A. (2005). [http://chato.cl/papers/baeza05_crawling_country_better_breadth_first_web_page_ordering.pdf "Crawling a Country: Better Strategies than Breadth-First for Web Page Ordering."] In: ''Proceedings of the Industrial and Practical Experience track of the 14th conference on World Wide Web'', pages 864β872, Chiba, Japan. ACM Press.</ref> They showed that both the OPIC strategy and a strategy that uses the length of the per-site queues are better than [[Breadth-first search|breadth-first]] crawling, and that it is also very effective to use a previous crawl, when it is available, to guide the current one. Daneshpajouh ''et al.'' designed a community based algorithm for discovering good seeds.<ref>Shervin Daneshpajouh, Mojtaba Mohammadi Nasiri, Mohammad Ghodsi, [https://www.researchgate.net/publication/220724572_A_Fast_Community_Based_Algorithm_for_Generating_Web_Crawler_Seeds_Set A Fast Community Based Algorithm for Generating Crawler Seeds Set]. In: ''Proceedings of 4th International Conference on Web Information Systems and Technologies'' (''[[Webist]]''-2008), Funchal, Portugal, May 2008.</ref> Their method crawls web pages with high PageRank from different communities in less iteration in comparison with crawl starting from random seeds. One can extract good seed from a previously-crawled-Web graph using this new method. Using these seeds, a new crawl can be very effective. ====Restricting followed links==== A crawler may only want to seek out HTML pages and avoid all other [[Internet media type|MIME types]]. In order to request only HTML resources, a crawler may make an HTTP HEAD request to determine a Web resource's MIME type before requesting the entire resource with a GET request. To avoid making numerous HEAD requests, a crawler may examine the URL and only request a resource if the URL ends with certain characters such as .html, .htm, .asp, .aspx, .php, .jsp, .jspx or a slash. This strategy may cause numerous HTML Web resources to be unintentionally skipped. Some crawlers may also avoid requesting any resources that have a [[Query string|"?"]] in them (are dynamically produced) in order to avoid [[spider trap]]s that may cause the crawler to download an infinite number of URLs from a Web site. This strategy is unreliable if the site uses [[URL rewriting]] to simplify its URLs. ====URL normalization==== {{Main|URL normalization}} Crawlers usually perform some type of [[URL normalization]] in order to avoid crawling the same resource more than once. The term ''URL normalization'', also called ''URL canonicalization'', refers to the process of modifying and standardizing a URL in a consistent manner. There are several types of normalization that may be performed including conversion of URLs to lowercase, removal of "." and ".." segments, and adding trailing slashes to the non-empty path component.<ref>{{cite book |first1 = Gautam |last1 = Pant |first2 = Padmini |last2 = Srinivasan |first3 = Filippo |last3 = Menczer |editor-last = Levene |editor-first = Mark |editor2-last = Poulovassilis |editor2-first = Alexandra |editor2-link = Alexandra Poulovassilis |contribution = Crawling the Web |contribution-url = http://dollar.biz.uiowa.edu/~pant/Papers/crawling.pdf |title = Web Dynamics: Adapting to Change in Content, Size, Topology and Use |year = 2004 |pages = 153β178 |publisher = Springer |isbn = 978-3-540-40676-1 |access-date = 9 May 2006 |archive-date = 20 March 2009 |archive-url = https://web.archive.org/web/20090320030832/http://dollar.biz.uiowa.edu/~pant/Papers/crawling.pdf |url-status = dead }}</ref> ====Path-ascending crawling==== Some crawlers intend to download/upload as many resources as possible from a particular web site. So ''path-ascending crawler'' was introduced that would ascend to every path in each URL that it intends to crawl.<ref>{{Cite journal | doi = 10.1002/asi.20078 | volume = 55 | issue = 14 | pages = 1228β1238 | last = Cothey | first = Viv | title = Web-crawling reliability | journal = Journal of the American Society for Information Science and Technology | year = 2004 | url = http://www.scit.wlv.ac.uk/~in7803/publications/cothey_2004.pdf | citeseerx = 10.1.1.117.185 }}</ref> For example, when given a seed URL of <nowiki>http://llama.org/hamster/monkey/page.html</nowiki>, it will attempt to crawl /hamster/monkey/, /hamster/, and /. Cothey found that a path-ascending crawler was very effective in finding isolated resources, or resources for which no inbound link would have been found in regular crawling. ====Focused crawling==== {{Main|Focused crawler}} The importance of a page for a crawler can also be expressed as a function of the similarity of a page to a given query. Web crawlers that attempt to download pages that are similar to each other are called '''focused crawler''' or '''topical crawlers'''. The concepts of topical and focused crawling were first introduced by [[Filippo Menczer]]<ref>Menczer, F. (1997). [http://informatics.indiana.edu/fil/Papers/ICML.ps ARACHNID: Adaptive Retrieval Agents Choosing Heuristic Neighborhoods for Information Discovery] {{Webarchive|url=https://web.archive.org/web/20121221113620/http://informatics.indiana.edu/fil/Papers/ICML.ps |date=21 December 2012 }}. In D. Fisher, ed., Machine Learning: Proceedings of the 14th International Conference (ICML97). Morgan Kaufmann</ref><ref>Menczer, F. and Belew, R.K. (1998). [http://informatics.indiana.edu/fil/Papers/AA98.ps Adaptive Information Agents in Distributed Textual Environments] {{Webarchive|url=https://web.archive.org/web/20121221113630/http://informatics.indiana.edu/fil/Papers/AA98.ps |date=21 December 2012 }}. In K. Sycara and M. Wooldridge (eds.) Proc. 2nd Intl. Conf. on Autonomous Agents (Agents '98). ACM Press</ref> and by Soumen Chakrabarti ''et al.''<ref>{{cite journal|url=http://www.fxpal.com/people/vdberg/pubs/www8/www1999f.pdf|archive-url=https://web.archive.org/web/20040317210216/http://www.fxpal.com/people/vdberg/pubs/www8/www1999f.pdf|url-status=dead|archive-date=2004-03-17|doi=10.1016/s1389-1286(99)00052-3|title=Focused crawling: A new approach to topic-specific Web resource discovery|journal=Computer Networks|volume=31|issue=11β16|pages=1623β1640|year=1999|last1=Chakrabarti|first1=Soumen|last2=Van Den Berg|first2=Martin|last3=Dom|first3=Byron}}</ref> The main problem in focused crawling is that in the context of a Web crawler, we would like to be able to predict the similarity of the text of a given page to the query before actually downloading the page. A possible predictor is the anchor text of links; this was the approach taken by Pinkerton<ref name=pinkerton1994>Pinkerton, B. (1994). [https://web.archive.org/web/20010904075500/http://archive.ncsa.uiuc.edu/SDG/IT94/Proceedings/Searching/pinkerton/WebCrawler.html Finding what people want: Experiences with the WebCrawler]. In Proceedings of the First World Wide Web Conference, Geneva, Switzerland.</ref> in the first web crawler of the early days of the Web. Diligenti ''et al.''<ref>Diligenti, M., Coetzee, F., Lawrence, S., Giles, C. L., and Gori, M. (2000). [http://clgiles.ist.psu.edu/papers/VLDB-2000-focused-crawling.pdf Focused crawling using context graphs]. In Proceedings of 26th International Conference on Very Large Databases (VLDB), pages 527-534, Cairo, Egypt.</ref> propose using the complete content of the pages already visited to infer the similarity between the driving query and the pages that have not been visited yet. The performance of a focused crawling depends mostly on the richness of links in the specific topic being searched, and a focused crawling usually relies on a general Web search engine for providing starting points. =====Academic focused crawler===== An example of the [[focused crawlers]] are academic crawlers, which crawls free-access academic related documents, such as the ''citeseerxbot'', which is the crawler of [[CiteSeer]]<sup>X</sup> search engine. Other academic search engines are [[Google Scholar]] and [[Microsoft Academic Search]] etc. Because most academic papers are published in [[PDF]] formats, such kind of crawler is particularly interested in crawling PDF, [[PostScript]] files, [[Microsoft Word]] including their [[Zipped file|zipped]] formats. Because of this, general open-source crawlers, such as [[Heritrix]], must be customized to filter out other [[MIME types]], or a [[middleware]] is used to extract these documents out and import them to the focused crawl database and repository.<ref>{{Cite book | doi=10.1145/2389936.2389949| chapter=Web crawler middleware for search engine digital libraries| title=Proceedings of the twelfth international workshop on Web information and data management - WIDM '12| pages=57| year=2012| last1=Wu| first1=Jian| last2=Teregowda| first2=Pradeep| last3=Khabsa| first3=Madian| last4=Carman| first4=Stephen| last5=Jordan| first5=Douglas| last6=San Pedro Wandelmer| first6=Jose| last7=Lu| first7=Xin| last8=Mitra| first8=Prasenjit| last9=Giles| first9=C. Lee| isbn=9781450317207| s2cid=18513666}}</ref> Identifying whether these documents are academic or not is challenging and can add a significant overhead to the crawling process, so this is performed as a post crawling process using [[machine learning]] or [[regular expression]] algorithms. These academic documents are usually obtained from home pages of faculties and students or from publication page of research institutes. Because academic documents make up only a small fraction of all web pages, a good seed selection is important in boosting the efficiencies of these web crawlers.<ref>{{Cite book |doi = 10.1145/2380718.2380762|chapter = The evolution of a crawling strategy for an academic document search engine|title = Proceedings of the 3rd Annual ACM Web Science Conference on - Web ''Sci'' '12|pages = 340β343|year = 2012|last1 = Wu|first1 = Jian|last2 = Teregowda|first2 = Pradeep|last3 = RamΓrez|first3 = Juan Pablo FernΓ‘ndez|last4 = Mitra|first4 = Prasenjit|last5 = Zheng|first5 = Shuyi|last6 = Giles|first6 = C. Lee|isbn = 9781450312288|s2cid = 16718130}}</ref> Other academic crawlers may download plain text and [[HTML]] files, that contains [[metadata]] of academic papers, such as titles, papers, and abstracts. This increases the overall number of papers, but a significant fraction may not provide free PDF downloads. =====Semantic focused crawler===== Another type of focused crawlers is semantic focused crawler, which makes use of [[domain ontology|domain ontologies]] to represent topical maps and link Web pages with relevant ontological concepts for the selection and categorization purposes.<ref>{{cite book|chapter-url=https://www.researchgate.net/publication/44241179|doi=10.1007/978-3-642-02457-3_74|chapter=State of the Art in Semantic Focused Crawlers|title=Computational Science and Its Applications β ICCSA 2009|volume=5593|pages=910β924|series=Lecture Notes in Computer Science|year=2009|last1=Dong|first1=Hai|last2=Hussain|first2=Farookh Khadeer|last3=Chang|first3=Elizabeth|isbn=978-3-642-02456-6|hdl=20.500.11937/48288}}</ref> In addition, ontologies can be automatically updated in the crawling process. Dong et al.<ref>{{cite journal|url=https://www.researchgate.net/publication/264620349|doi=10.1002/cpe.2980|title=SOF: A semi-supervised ontology-learning-based focused crawler|journal=Concurrency and Computation: Practice and Experience|volume=25|issue=12|pages=1755β1770|year=2013|last1=Dong|first1=Hai|last2=Hussain|first2=Farookh Khadeer|s2cid=205690364}}</ref> introduced such an ontology-learning-based crawler using a [[support-vector machine]] to update the content of ontological concepts when crawling Web pages. ===Re-visit policy=== The Web has a very dynamic nature, and crawling a fraction of the Web can take weeks or months. By the time a Web crawler has finished its crawl, many events could have happened, including creations, updates, and deletions. From the search engine's point of view, there is a cost associated with not detecting an event, and thus having an outdated copy of a resource. The most-used cost functions are freshness and age.<ref>{{Cite conference | publisher = ACM | doi = 10.1145/342009.335391 | isbn = 1-58113-217-4 | pages = 117β128 | author1 = Junghoo Cho | author2 = Hector Garcia-Molina | title = Synchronizing a database to improve freshness | book-title = Proceedings of the 2000 ACM SIGMOD international conference on Management of data | location = Dallas, Texas, United States | access-date = 2009-03-23 | year = 2000 | url = http://www.cs.brown.edu/courses/cs227/2002/cache/Cho.pdf}}</ref> '''Freshness''': This is a binary measure that indicates whether the local copy is accurate or not. The freshness of a page ''p'' in the repository at time ''t'' is defined as: : <math> F_p(t) = \begin{cases} 1 & {\rm if}~p~{\rm~is~equal~to~the~local~copy~at~time}~t\\ 0 & {\rm otherwise} \end{cases} </math> '''Age''': This is a measure that indicates how outdated the local copy is. The age of a page ''p'' in the repository, at time ''t'' is defined as: : <math> A_p(t) = \begin{cases} 0 & {\rm if}~p~{\rm~is~not~modified~at~time}~t\\ t - {\rm modification~time~of}~p & {\rm otherwise} \end{cases} </math> [[Edward G. Coffman, Jr.|Coffman]] ''et al.'' worked with a definition of the objective of a Web crawler that is equivalent to freshness, but use a different wording: they propose that a crawler must minimize the fraction of time pages remain outdated. They also noted that the problem of Web crawling can be modeled as a multiple-queue, single-server polling system, on which the Web crawler is the server and the Web sites are the queues. Page modifications are the arrival of the customers, and switch-over times are the interval between page accesses to a single Web site. Under this model, mean waiting time for a customer in the polling system is equivalent to the average age for the Web crawler.<ref name="coffman">{{Cite journal | doi = 10.1002/(SICI)1099-1425(199806)1:1<15::AID-JOS3>3.0.CO;2-K | volume = 1 | issue = 1 | pages = 15β29 | author1 = E. G. Coffman Jr | author2 = Zhen Liu | author3 = Richard R. Weber | title = Optimal robot scheduling for Web search engines | journal = Journal of Scheduling | year = 1998 | citeseerx = 10.1.1.36.6087 }}</ref> The objective of the crawler is to keep the average freshness of pages in its collection as high as possible, or to keep the average age of pages as low as possible. These objectives are not equivalent: in the first case, the crawler is just concerned with how many pages are outdated, while in the second case, the crawler is concerned with how old the local copies of pages are. [[File:Web Crawling Freshness Age.png|thumb|Evolution of Freshness and Age in a web crawler]] Two simple re-visiting policies were studied by Cho and Garcia-Molina:<ref name=cho2003>{{Cite journal |doi = 10.1145/958942.958945|title = Effective page refresh policies for Web crawlers|journal = ACM Transactions on Database Systems|volume = 28|issue = 4|pages = 390β426|year = 2003|last1 = Cho|first1 = Junghoo|last2 = Garcia-Molina|first2 = Hector|s2cid = 147958}}</ref> * Uniform policy: This involves re-visiting all pages in the collection with the same frequency, regardless of their rates of change. * Proportional policy: This involves re-visiting more often the pages that change more frequently. The visiting frequency is directly proportional to the (estimated) change frequency. In both cases, the repeated crawling order of pages can be done either in a random or a fixed order. Cho and Garcia-Molina proved the surprising result that, in terms of average freshness, the uniform policy outperforms the proportional policy in both a simulated Web and a real Web crawl. Intuitively, the reasoning is that, as web crawlers have a limit to how many pages they can crawl in a given time frame, (1) they will allocate too many new crawls to rapidly changing pages at the expense of less frequently updating pages, and (2) the freshness of rapidly changing pages lasts for shorter period than that of less frequently changing pages. In other words, a proportional policy allocates more resources to crawling frequently updating pages, but experiences less overall freshness time from them. To improve freshness, the crawler should penalize the elements that change too often.<ref name="cho2003a">{{Cite journal | doi = 10.1145/857166.857170 | volume = 3 | issue = 3 | pages = 256β290 | author1 = Junghoo Cho | author2 = Hector Garcia-Molina | title = Estimating frequency of change | journal = ACM Transactions on Internet Technology| year = 2003 | citeseerx = 10.1.1.59.5877 | s2cid = 9362566 }}</ref> The optimal re-visiting policy is neither the uniform policy nor the proportional policy. The optimal method for keeping average freshness high includes ignoring the pages that change too often, and the optimal for keeping average age low is to use access frequencies that monotonically (and sub-linearly) increase with the rate of change of each page. In both cases, the optimal is closer to the uniform policy than to the proportional policy: as [[Edward G. Coffman, Jr.|Coffman]] ''et al.'' note, "in order to minimize the expected obsolescence time, the accesses to any particular page should be kept as evenly spaced as possible".<ref name="coffman" /> Explicit formulas for the re-visit policy are not attainable in general, but they are obtained numerically, as they depend on the distribution of page changes. Cho and Garcia-Molina show that the exponential distribution is a good fit for describing page changes,<ref name="cho2003a" /> while [[Panos Ipeirotis|Ipeirotis]] ''et al.'' show how to use statistical tools to discover parameters that affect this distribution.<ref>Ipeirotis, P., Ntoulas, A., Cho, J., Gravano, L. (2005) [http://pages.stern.nyu.edu/~panos/publications/icde2005.pdf Modeling and managing content changes in text databases] {{Webarchive|url=https://web.archive.org/web/20050905013119/http://pages.stern.nyu.edu/~panos/publications/icde2005.pdf |date=5 September 2005 }}. In Proceedings of the 21st IEEE International Conference on Data Engineering, pages 606-617, April 2005, Tokyo.</ref> The re-visiting policies considered here regard all pages as homogeneous in terms of quality ("all pages on the Web are worth the same"), something that is not a realistic scenario, so further information about the Web page quality should be included to achieve a better crawling policy. ===Politeness policy=== Crawlers can retrieve data much quicker and in greater depth than human searchers, so they can have a crippling impact on the performance of a site. If a single crawler is performing multiple requests per second and/or downloading large files, a server can have a hard time keeping up with requests from multiple crawlers. As noted by Koster, the use of Web crawlers is useful for a number of tasks, but comes with a price for the general community.<ref>Koster, M. (1995). Robots in the web: threat or treat? ConneXions, 9(4).</ref> The costs of using Web crawlers include: * network resources, as crawlers require considerable bandwidth and operate with a high degree of parallelism during a long period of time; * server overload, especially if the frequency of accesses to a given server is too high; * poorly written crawlers, which can crash servers or routers, or which download pages they cannot handle; and * personal crawlers that, if deployed by too many users, can disrupt networks and Web servers. A partial solution to these problems is the [[Robots Exclusion Standard|robots exclusion protocol]], also known as the robots.txt protocol that is a standard for administrators to indicate which parts of their Web servers should not be accessed by crawlers.<ref>Koster, M. (1996). [http://www.robotstxt.org/wc/exclusion.html A standard for robot exclusion] {{Webarchive|url=https://web.archive.org/web/20071107021800/http://www.robotstxt.org/wc/exclusion.html |date=7 November 2007 }}.</ref> This standard does not include a suggestion for the interval of visits to the same server, even though this interval is the most effective way of avoiding server overload. Recently commercial search engines like [[Google.com|Google]], [[Ask.com|Ask Jeeves]], [[Bing (search engine)|MSN]] and [[Yahoo! Search]] are able to use an extra "Crawl-delay:" parameter in the [[robots.txt]] file to indicate the number of seconds to delay between requests. The first proposed interval between successive pageloads was 60 seconds.<ref>Koster, M. (1993). [http://www.robotstxt.org/wc/guidelines.html Guidelines for robots writers] {{Webarchive|url=https://web.archive.org/web/20050422045839/http://www.robotstxt.org/wc/guidelines.html |date=22 April 2005 }}.</ref> However, if pages were downloaded at this rate from a website with more than 100,000 pages over a perfect connection with zero latency and infinite bandwidth, it would take more than 2 months to download only that entire Web site; also, only a fraction of the resources from that Web server would be used. Cho uses 10 seconds as an interval for accesses,<ref name=cho2003/> and the WIRE crawler uses 15 seconds as the default.<ref name=baeza2002>Baeza-Yates, R. and Castillo, C. (2002). [http://www.chato.cl/papers/baeza02balancing.pdf Balancing volume, quality and freshness in Web crawling]. In Soft Computing Systems β Design, Management and Applications, pages 565β572, Santiago, Chile. IOS Press Amsterdam.</ref> The MercatorWeb crawler follows an adaptive politeness policy: if it took ''t'' seconds to download a document from a given server, the crawler waits for 10''t'' seconds before downloading the next page.<ref>{{cite journal |author1=Heydon, Allan |author2=Najork, Marc |title=Mercator: A Scalable, Extensible Web Crawler |date=1999-06-26 |url=http://www.cindoc.csic.es/cybermetrics/pdf/68.pdf |access-date=2009-03-22 |url-status=dead |archive-url=https://web.archive.org/web/20060219085958/http://www.cindoc.csic.es/cybermetrics/pdf/68.pdf |archive-date=19 February 2006}}</ref> Dill ''et al.'' use 1 second.<ref>{{cite journal |last1 = Dill |first1 = S. |last2 = Kumar |first2 = R. |last3 = Mccurley |first3 = K. S. |last4 = Rajagopalan |first4 = S. |last5 = Sivakumar |first5 = D. |last6 = Tomkins |first6 = A. |year = 2002 |title = Self-similarity in the web |url = http://www.mccurley.org/papers/fractal.pdf |journal = ACM Transactions on Internet Technology|volume = 2 |issue = 3 |pages = 205β223 |doi=10.1145/572326.572328|s2cid = 6416041 }}</ref> For those using Web crawlers for research purposes, a more detailed cost-benefit analysis is needed and ethical considerations should be taken into account when deciding where to crawl and how fast to crawl.<ref>{{Cite journal| author1 = M. Thelwall | author2 = D. Stuart | year = 2006 | url = http://www.scit.wlv.ac.uk/%7Ecm1993/papers/Web_Crawling_Ethics_preprint.doc | title = Web crawling ethics revisited: Cost, privacy and denial of service | volume = 57 | issue = 13 | pages = 1771β1779 | journal = Journal of the American Society for Information Science and Technology| doi = 10.1002/asi.20388 }}</ref> Anecdotal evidence from access logs shows that access intervals from known crawlers vary between 20 seconds and 3β4 minutes. It is worth noticing that even when being very polite, and taking all the safeguards to avoid overloading Web servers, some complaints from Web server administrators are received. [[Sergey Brin]] and [[Larry Page]] noted in 1998, "... running a crawler which connects to more than half a million servers ... generates a fair amount of e-mail and phone calls. Because of the vast number of people coming on line, there are always those who do not know what a crawler is, because this is the first one they have seen."<ref name=brin1998>{{cite journal|url=http://infolab.stanford.edu/~backrub/google.html|doi=10.1016/s0169-7552(98)00110-x|title=The anatomy of a large-scale hypertextual Web search engine|journal=Computer Networks and ISDN Systems|volume=30|issue=1β7|pages=107β117|year=1998|last1=Brin|first1=Sergey|last2=Page|first2=Lawrence|s2cid=7587743 }}</ref> ===Parallelization policy=== {{Main|Distributed web crawling}} A [[Parallel computing|parallel]] crawler is a crawler that runs multiple processes in parallel. The goal is to maximize the download rate while minimizing the overhead from parallelization and to avoid repeated downloads of the same page. To avoid downloading the same page more than once, the crawling system requires a policy for assigning the new URLs discovered during the crawling process, as the same URL can be found by two different crawling processes.
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)