Virial theorem: Difference between revisions

From formulasearchengine
Jump to navigation Jump to search
en>Monkbot
en>Dogbert66
 
Line 1: Line 1:
:''Not to be confused with [[offline reader]]. For the [[Web search engine|search engine]] of the same name, see [[WebCrawler]].''
Hello. Let me introduce the writer. Her name is Refugia Shryock. Her family lives in Minnesota. To collect cash is what her family members and her appreciate. I am a meter reader but I strategy on changing it.<br><br>My web-site :: [http://www.animecontent.com/user/DHallstro std testing at home]
 
A '''Web crawler''' is an [[Internet bot]] that systematically browses the [[World Wide Web]], typically for the purpose of [[Web indexing]].
 
A Web crawler may also be called a '''Web spider''',<ref name="spekta">{{cite web|last=Spetka|first=Scott|title=The TkWWW Robot: Beyond Browsing|url=http://archive.ncsa.uiuc.edu/SDG/IT94/Proceedings/Agents/spetka/spetka.html|publisher=[[National Center for Supercomputing Applications|NCSA]]|accessdate=21 November 2010|archiveurl=https://web.archive.org/web/20040903174942/archive.ncsa.uiuc.edu/SDG/IT94/Proceedings/Agents/spetka/spetka.html|archivedate=3 September 2004}}</ref> an '''ant''', an '''automatic indexer''',<ref>{{Cite journal| author = Kobayashi, M. and Takeda, K. | title = Information retrieval on the web | journal = ACM Computing Surveys | volume = 32 | issue = 2| pages = 144–173 | year = 2000 | publisher = ACM Press | url = http://doi.acm.org/10.1145/358923.358934 | doi = 10.1145/358923.358934 }}</ref> or (in the [[FOAF (software)|FOAF]] software context) a '''Web scutter'''.<ref>See [http://wiki.foaf-project.org/w/Scutter definition of scutter on FOAF Project's wiki]</ref>
 
[[Web search engine]]s and some other sites use Web crawling or spidering software to update their [[web content]] or indexes of others sites' web content. Web crawlers can copy all the pages they visit for later processing by a search engine that [[Index (search engine)|indexes]] the downloaded pages so that [[User (computing)|users]] can search them much more quickly.
 
Crawlers can validate [[hyperlink]]s and [[HTML]] code. They can also be used for [[web scraping]] (see also [[data-driven programming]]).
 
== Overview ==
A Web crawler starts with a list of [[Uniform Resource Locator|URLs]] to visit, called the ''seeds''. As the crawler visits these URLs, it identifies all the [[hyperlink]]s in the page and adds them to the list of URLs to visit, called the ''crawl frontier''. URLs from the frontier are [[Recursion|recursively]] visited according to a set of policies.
 
The large volume implies that 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 implies that 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|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 (computing)|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."<ref name=edwards2001>{{Cite journal|author = Edwards, J., McCurley, K. S., and Tomlin, J. A. | title = An adaptive model for optimizing performance of an incremental web crawler | journal = In Proceedings of the Tenth Conference on World Wide Web | pages = 106–113 | location = Hong Kong | year = 2001 | publisher = Elsevier Science | doi = 10.1145/371920.371960 | url=http://www10.org/cdrom/papers/210/index.html}}</ref> 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:<ref>{{Cite thesis |degree=Ph.D. |title=Effective Web Crawling |url=http://chato.cl/research/crawling_thesis |last=Castillo |first=Carlos |year=2004 |publisher=University of Chile|accessdate=2010-08-03|docket= |oclc= }}</ref>
 
* a ''selection policy'' that states which pages to download,
* a ''re-visit policy'' that states when to check for changes to the pages,
* a ''politeness policy'' that states how to avoid overloading [[Web sites]], and
* a ''parallelization policy'' that states how to coordinate [[Distributed web crawling|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 2005 study showed that large-scale [[search engines]] index no more than 40-70% of the indexable Web;<ref>{{cite conference |url=http://doi.acm.org/10.1145/1062745.1062789 |title=The indexable web is more than 11.5 billion pages |author1=A. Gulli |author2=A. Signorini |year=2005 |publisher=ACM Press. |booktitle=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 | page = 107 | author1= Steve Lawrence | author2 = C. Lee Giles | title = Accessibility of information on the web | journal = Nature | accessdate = 2009-03-22 | date = 1999-07-08 | pmid = 10428673 |bibcode = 1999Natur.400..107L }}</ref> As a crawler always downloads just a fraction of the Web pages, it is highly desirable that the downloaded fraction contains 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 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.
 
Cho ''et al.'' made the first study on policies for crawling scheduling. Their data set was a 180,000-pages crawl from the <tt>stanford.edu</tt> domain, in which a crawling simulation was done with different strategies.<ref>{{Cite journal | author = Cho, J.; Garcia-Molina, H.; Page, L. | contribution = Efficient Crawling Through URL Ordering | contribution-url = http://ilpubs.stanford.edu:8090/347/ | title = Seventh International World-Wide Web Conference | date = April 1998 | place = Brisbane, Australia | accessdate = 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 Ph.D. 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"], Ph.D. 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>Marc Najork and Janet L. Wiener. [http://www10.org/cdrom/papers/pdf/p208.pdf Breadth-first crawling yields high-quality pages]. 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 = Serge Abiteboul | author2 = Mihai Preda | author3 = Gregory Cobena | title = Adaptive on-line page importance computation | booktitle = Proceedings of the 12th international conference on World Wide Web | location = Budapest, Hungary | accessdate = 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|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 <tt>.it</tt> 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. Surprisingly, 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 = Paolo Boldi | author2 = Bruno Codenotti | author3 = Massimo Santini | author4 = Sebastiano Vigna | title = UbiCrawler: a scalable fully distributed Web crawler | journal = Software: Practice and Experience | accessdate = 2009-03-23 | year = 2004 | url = http://vigna.dsi.unimi.it/ftp/papers/UbiCrawler.pdf}}</ref><ref>{{Cite book | pages = 168–180 | author1 = Paolo Boldi | author2 = Massimo Santini | author3 = Sebastiano Vigna | title = Algorithms and Models for the Web-Graph | chapter = Do Your Worst to Make the Best: Paradoxical Effects in PageRank Incremental Computations | accessdate = 2009-03-23 | year = 2004 | chapterurl = http://vigna.dsi.unimi.it/ftp/papers/ParadoxicalPageRank.pdf | url = http://springerlink.com/content/g10m122f9hb6}}</ref>
 
Baeza-Yates ''et al.'' used simulation on two subsets of the Web of 3 million pages from the <tt>.gr</tt> and <tt>.cl</tt> domain, testing several crawling strategies.<ref name=baeza2005>Baeza-Yates, R., Castillo, C., Marin, M. and Rodriguez, A. (2005). [http://www.dcc.uchile.cl/%7Eccastill/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, [http://ce.sharif.edu/~daneshpajouh/publications/A%20Fast%20Community%20Based%20Algorithm%20for%20Generating%20Crawler%20Seeds%20Set.pdf A Fast Community Based Algorithm for Generating Crawler Seeds Set], In proceeding of 4th International Conference on Web Information Systems and Technologies ([http://www.webist.org/ 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 type]]s. 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 a [[rewrite engine]] 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  | first = Gautam  | last = Pant  | first2 = Padmini  | last2 = Srinivasan  | first3 = Filippo  | last3 = Menczer  | author2-link =  | editor-last = Levene  | editor-first = Mark  | editor2-last = Poulovassilis  | editor2-first = Alexandra  | 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  | accessdate = 2009-03-22  | isbn = 978-3-540-40676-1 }}</ref>
 
====Path-ascending crawling====
Some crawlers intend to download 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 | accessdate = 2009-03-22 | year = 2004 }}</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.
 
Many path-ascending crawlers are also gallery&nbsp;— from a specific page or host.
 
====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 Menczer<ref>Menczer, F. (1997). [http://informatics.indiana.edu/fil/Papers/ICML.ps ARACHNID: Adaptive Retrieval Agents Choosing Heuristic Neighborhoods for Information Discovery]. 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]. In K. Sycara and M. Wooldridge (eds.) Proc. 2nd Intl. Conf. on Autonomous Agents (Agents '98). ACM Press</ref> and by Chakrabarti ''et al.''<ref>Chakrabarti, S., van den Berg, M., and Dom, B. (1999). [https://web.archive.org/web/20040317210216/http://www.fxpal.com/people/vdberg/pubs/www8/www1999f.pdf Focused crawling: a new approach to topic-specific web resource discovery]. Computer Networks, 31(11–16):1623–1640.</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://nautilus.dii.unisi.it/pubblicazioni/files/conference/2000-Diligenti-VLDB.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>Jian Wu, Pradeep Teregowda, Madian Khabsa, Stephen Carman, Douglas Jordan, Jose San Pedro Wandelmer, Xin Lu, Prasenjit Mitra, C. Lee Giles, [http://dl.acm.org/citation.cfm?id=2389936.2389949&coll=DL&dl=ACM&CFID=176007707&CFTOKEN=93317127 Web crawler middleware for search engine digital libraries: a case study for citeseerX], In proceedings of the twelfth international workshop on Web information and data management Pages 57-64, Maui Hawaii, USA, November 2012.</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 takes only a small faction in the entire web pages, a good seed selection are important in boosting the efficiencies of these web crawlers.<ref>Jian Wu, Pradeep Teregowda, Juan Pablo Fernández Ramírez, Prasenjit Mitra, Shuyi Zheng, C. Lee Giles
, [http://dl.acm.org/citation.cfm?id=2380718.2380762 The evolution of a crawling strategy for an academic document search engine: whitelists and blacklists], In proceedings of the 3rd Annual ACM Web Science Conference Pages 340-343, Evanston, IL, USA, June 2012.</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.
 
===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 | booktitle = Proceedings of the 2000 ACM SIGMOD international conference on Management of data | location = Dallas, Texas, United States | accessdate = 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 | accessdate = 2009-03-22 | year = 1998 }}</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 out-dated, while in the second case, the crawler is concerned with how old the local copies of pages are.
 
Two simple re-visiting policies were studied by Cho and Garcia-Molina:<ref name=cho2003>Cho, J. and Garcia-Molina, H. (2003). [http://portal.acm.org/citation.cfm?doid=958942.958945 Effective page refresh policies for web crawlers]. ACM Transactions on Database Systems, 28(4).</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 Trans. Interet Technol. | accessdate = 2009-03-22 | year = 2003 | url = http://portal.acm.org/citation.cfm?doid=857166.857170 }}</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]. In Proceedings of the 21st IEEE International Conference on Data Engineering, pages 606-617, April 2005, Tokyo.</ref> Note that 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. Needless to say, if a single crawler is performing multiple requests per second and/or downloading large files, a server would 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].</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|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].</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. This does not seem acceptable.
 
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&nbsp;– 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
  | format = PDF
  | accessdate = 2009-03-22}} {{Dead link|date=October 2010|bot=H3llBot}}
</ref> Dill ''et al.'' use 1 second.<ref>Dill, S., Kumar, R., Mccurley, K. S., Rajagopalan, S., Sivakumar, D., and Tomkins, A. (2002). [http://www.mccurley.org/papers/fractal.pdf Self-similarity in the web]. ACM Trans. Inter. Tech., 2(3):205–223.</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 | work = Journal of the American Society for Information Science and Technology}}</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|Brin]] and [[Larry Page|Page]] note that: "... 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>Brin, S. and Page, L. (1998). [http://infolab.stanford.edu/~backrub/google.html The anatomy of a large-scale hypertextual Web search engine]. Computer Networks and ISDN Systems, 30(1-7):107–117.</ref>
 
===Parallelisation 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.
 
==Architectures==
[[File:WebCrawlerArchitecture.svg|thumb|300px|High-level architecture of a standard Web crawler]]
A crawler must not only have a good crawling strategy, as noted in the previous sections, but it should also have a highly optimized architecture.
 
Shkapenyuk and Suel noted that:<ref name=shkapenyuk2002>Shkapenyuk, V. and [[Torsten Suel|Suel, T.]] (2002). [http://cis.poly.edu/tr/tr-cis-2001-03.pdf Design and implementation of a high performance distributed web crawler]. In Proceedings of the 18th International Conference on Data Engineering (ICDE), pages 357-368, San Jose, California. IEEE CS Press.</ref>
 
{{quote|While it is fairly easy to build a slow crawler that downloads a few pages per second for a short period of time, building a high-performance system that can download hundreds of millions of pages over several weeks presents a number of challenges in system design, I/O and network efficiency, and robustness and manageability.}}
 
Web crawlers are a central part of search engines, and details on their algorithms and architecture are kept as business secrets. When crawler designs are published, there is often an important lack of detail that prevents others from reproducing the work. There are also emerging concerns about "[[Spamdexing|search engine spamming]]", which prevent major search engines from publishing their ranking algorithms.
{{Clear}}
 
==Crawler identification==
Web crawlers typically identify themselves to a Web server by using the [[user agent|User-agent]] field of an [[HTTP]] request. Web site administrators typically examine their [[Web server]]s' log and use the user agent field to determine which crawlers have visited the web server and how often. The user agent field may include a [[Uniform Resource Locator|URL]] where the Web site administrator may find out more information about the crawler. Examining Web server log is tedious task therefore some administrators use tools such as CrawlTrack<ref>[http://www.crawltrack.net/ CrawlTrack]</ref> or SEO Crawlytics<ref>[http://www.elevatelocal.co.uk/seo-crawlytics SEO Crawlytics]</ref> to identify, track and verify Web crawlers. [[Spambots]] and other malicious Web crawlers are unlikely to place identifying information in the user agent field, or they may mask their identity as a browser or other well-known crawler.
 
It is important for Web crawlers to identify themselves so that Web site administrators can contact the owner if needed. In some cases, crawlers may be accidentally trapped in a [[spider trap|crawler trap]] or they may be overloading a Web server with requests, and the owner needs to stop the crawler. Identification is also useful for administrators that are interested in knowing when they may expect their Web pages to be indexed by a particular [[Web search engine|search engine]].
 
==Crawling the deep web==
A vast amount of web pages lie in the [[Deep Web|deep or invisible web]].<ref>Shestakov, Denis (2008). [https://oa.doria.fi/handle/10024/38506 Search Interfaces on the Web: Querying and Characterizing]''. TUCS Doctoral Dissertations 104, University of Turku</ref> These pages are typically only accessible by submitting queries to a database, and regular crawlers are unable to find these pages if there are no links that point to them. Google's [[Sitemaps]] protocol and [[mod oai]]<ref>
{{Cite journal| author1 = Michael L Nelson| author2 = Herbert Van de Sompel| author3 = Xiaoming Liu| author4 = Terry L Harrison| author5 = Nathan McFarland| title = mod_oai: An Apache Module for Metadata Harvesting| journal = Eprint arXiv:cs/0503069| page = 3069| date = 2005-03-24| arxiv = cs/0503069| bibcode = 2005cs........3069N}}</ref> are intended to allow discovery of these deep-Web resources.
 
Deep web crawling also multiplies the number of web links to be crawled. Some crawlers only take some of the URLs in <code>&lt;a&nbsp;href="URL"&gt;</code> form. In some cases, such as the [[Googlebot]], Web crawling is done on all text contained inside the hypertext content, tags, or text.
 
Strategic approaches may be taken to target deep Web content. With a technique called [[screen scraping]], specialized software may be customized to automatically and repeatedly query a given Web form with the intention of aggregating the resulting data. Such software can be used to span multiple Web forms across multiple Websites. Data extracted from the results of one Web form submission can be taken and applied as input to another Web form thus establishing continuity across the Deep Web in a way not possible with traditional web crawlers.
 
Pages built on [[AJAX]] are among those causing problems to web crawlers. Google has proposed a format of AJAX calls that their bot can recognize and index<ref>{{cite web | url=http://support.google.com/webmasters/bin/answer.py?hl=en&answer=174992 | title=AJAX crawling: Guide for webmasters and developers | publisher=Google | accessdate=March 17, 2013}}</ref>
 
=== Web crawler bias ===
A recent study based on a large scale analysis of robots.txt files showed that certain web crawlers were preferred over others, with Googlebot being the most preferred web crawler. {{citation needed|date=August 2013}}
 
==Examples==
{{Example farm|date=May 2012}}
 
The following is a list of published crawler architectures for general-purpose crawlers (excluding focused web crawlers), with a brief description that includes the names given to the different components and outstanding features:
* ''[[Yahoo! Slurp]]'' was the name of the Yahoo! Search crawler until Yahoo! contracted with [[Microsoft]] to use [[bingbot]] instead.
* ''[[Bingbot]]'' is the name of Microsoft's [[Bing]] webcrawler. It replaced ''[[Msnbot]]''.
* ''FAST Crawler''<ref>Risvik, K. M. and Michelsen, R. (2002). [http://citeseer.ist.psu.edu/rd/1549722%2C509701%2C1%2C0.25%2CDownload/http://citeseer.ist.psu.edu/cache/papers/cs/26004/http:zSzzSzwww.idi.ntnu.nozSz%7EalgkonzSzgenereltzSzse-dynamicweb1.pdf/risvik02search.pdf Search Engines and Web Dynamics]. Computer Networks, vol. 39, pp. 289–302, June 2002.</ref> is a distributed crawler, used by [[Fast Search & Transfer]], and a general description of its architecture is available.{{Citation needed|date=January 2008}}
* ''[[Googlebot]]''<ref name="brin1998" /> is described in some detail, but the reference is only about an early version of its architecture, which was based in C++ and [[Python (programming language)|Python]]. The crawler was integrated with the indexing process, because text parsing was done for full-text indexing and also for URL extraction. There is a URL server that sends lists of URLs to be fetched by several crawling processes. During parsing, the URLs found were passed to a URL server that checked if the URL have been previously seen. If not, the URL was added to the queue of the URL server.
* ''PolyBot''<ref name="shkapenyuk2002" /> is a distributed crawler written in C++ and Python, which is composed of a "crawl manager", one or more "downloaders" and one or more "DNS resolvers". Collected URLs are added to a queue on disk, and processed later to search for seen URLs in batch mode. The politeness policy considers both third and second level domains (e.g.: www.example.com and www2.example.com are third level domains) because third level domains are usually hosted by the same Web server.
* ''RBSE''<ref>Eichmann, D. (1994). [http://mingo.info-science.uiowa.edu/eichmann/www94/Spider.ps The RBSE spider: balancing effective search against Web load]. In Proceedings of the First World Wide Web Conference, Geneva, Switzerland.</ref> was the first published web crawler. It was based on two programs: the first program, "<tt>spider</tt>" maintains a queue in a relational database, and the second program "<tt>mite</tt>", is a modified <tt>www</tt> [[ASCII]] browser that downloads the pages from the Web.
* ''[[WebCrawler]]''<ref name="pinkerton1994" /> was used to build the first publicly available full-text index of a subset of the Web. It was based on lib-WWW to download pages, and another program to parse and order URLs for breadth-first exploration of the Web graph. It also included a real-time crawler that followed links based on the similarity of the anchor text with the provided query.
* ''World Wide Web Worm''<ref>McBryan, O. A. (1994). GENVL and WWWW: Tools for taming the web. In Proceedings of the First World Wide Web Conference, Geneva, Switzerland.</ref> was a crawler used to build a simple index of document titles and URLs. The index could be searched by using the <tt>[[grep]]</tt> [[Unix]] command.
* ''[[WebFountain]]''<ref name="edwards2001" /> is a distributed, modular crawler similar to Mercator but written in C++. It features a "controller" machine that coordinates a series of "ant" machines. After repeatedly downloading pages, a change rate is inferred for each page and a non-linear programming method must be used to solve the equation system for maximizing freshness. The authors recommend to use this crawling order in the early stages of the crawl, and then switch to a uniform crawling order, in which all pages are being visited with the same frequency.
* ''WebRACE''<ref>Zeinalipour-Yazti, D. and Dikaiakos, M. D. (2002). [http://www.cs.ucr.edu/~csyiazti/downloads/papers/ngits02/ngits02.pdf Design and implementation of a distributed crawler and filtering processor]. In Proceedings of the Fifth Next Generation Information Technologies and Systems (NGITS), volume 2382 of Lecture Notes in Computer Science, pages 58–74, Caesarea, Israel. Springer.</ref> is a crawling and caching module implemented in Java, and used as a part of a more generic system called eRACE. The system receives requests from users for downloading web pages, so the crawler acts in part as a smart proxy server. The system also handles requests for "subscriptions" to Web pages that must be monitored: when the pages change, they must be downloaded by the crawler and the subscriber must be notified. The most outstanding feature of WebRACE is that, while most crawlers start with a set of "seed" URLs, WebRACE is continuously receiving new starting URLs to crawl from.
 
In addition to the specific crawler architectures listed above, there are general crawler architectures published by Cho<ref>{{Cite conference
| publisher = ACM
| doi = 10.1145/511446.511464
| isbn = 1-58113-449-5
| pages = 124–135
| author1 = Junghoo Cho
| author2 = Hector Garcia-Molina
| title = Parallel crawlers
| booktitle = Proceedings of the 11th international conference on World Wide Web
| location = Honolulu, Hawaii, USA
| accessdate = 2009-03-23
| year = 2002
| url = http://portal.acm.org/citation.cfm?id=511464
}}</ref>
and Chakrabarti.<ref>Chakrabarti, S. (2003). [http://www.cs.berkeley.edu/~soumen/mining-the-web/ Mining the Web]. Morgan Kaufmann Publishers. ISBN 1-55860-754-4</ref>
 
===Open-source crawlers===
* ''[[DataparkSearch]]'' is a crawler and search engine released under the [[GNU General Public License]].
* ''[[Wget|GNU Wget]]'' is a [[Command line interface|command-line]]-operated crawler written in [[C (programming language)|C]] and released under the [[GNU General Public License|GPL]]. It is typically used to mirror Web and FTP sites.
* ''[[Grub (search engine)|GRUB]]'' is an open source distributed search crawler that [[Wikia Search]] used to crawl the web.
* ''[[Heritrix]]'' is the [[Internet Archive]]'s archival-quality crawler, designed for archiving periodic snapshots of a large portion of the Web. It was written in [[Java (programming language)|Java]].
* ''[[Ht-//dig|ht://Dig]]'' includes a Web crawler in its indexing engine.
* ''[[HTTrack]]'' uses a Web crawler to create a mirror of a web site for off-line viewing. It is written in [[C (programming language)|C]] and released under the [[GNU General Public License|GPL]].
* ''[[ICDL crawling|ICDL Crawler]]'' is a [[cross-platform]] web crawler written in [[C++]] and intended to crawl Web sites based on [[Website Parse Template]]s using computer's free [[CPU]] resources only.
* ''[[mnoGoSearch]]'' is a crawler, indexer and a search engine written in C and licensed under the [[GNU General Public License|GPL]] (*NIX machines only)
* ''[[Norconex HTTP Collector]]'' is a web spider, or crawler, written in [[Java]], that aims to make Enterprise Search integrators and developers's life easier  (licensed under [[GNU General Public License|GPL]]).
* ''[[Nutch]]'' is a crawler written in Java and released under an [[Apache License]]. It can be used in conjunction with the [[Lucene]] text-indexing package.
* ''[[Open Search Server]]'' is a search engine and web crawler software release under the [[GNU General Public License|GPL]].
* ''[[PHP-Crawler]]'' is a simple [[PHP]] and [[MySQL]] based crawler released under the [[BSD License]]. Easy to install it became popular for small MySQL-driven websites on shared hosting.
* ''[[tkWWW Robot]]'', a crawler based on the [[tkWWW]] web browser (licensed under [[GNU General Public License|GPL]]).
* ''[[Scrapy]]'', an open source webcrawler framework, written in python (licensed under [[BSD License|BSD]]).
* ''[[Seeks]]'', a free distributed search engine (licensed under [[Affero General Public License]]).
* ''[[YaCy]]'', a free distributed search engine, built on principles of peer-to-peer networks (licensed under [[GNU General Public License|GPL]]).
 
==See also==
*[[Web archiving]]
*[[Website mirroring software]]
*[[Webgraph]]
* [[Gnutella crawler]]
 
==References==
{{Reflist|30em}}
 
==Further reading==
* Cho, Junghoo, [http://oak.cs.ucla.edu/~cho/research/crawl.html "Web Crawling Project"], UCLA Computer Science Department.
* [http://www.wiley.com/legacy/compbooks/sonnenreich/history.html A History of Search Engines], from [[John Wiley & Sons|Wiley]]
* [http://www.emanueleminotto.it/how-to-write-a-crawler A tutorial] for creating basic crawlers.
* [http://code.google.com/p/wivet/ WIVET] is a benchmarking project by [[OWASP]], which aims to measure if a web crawler can identify all the hyperlinks in a target website.
 
{{Internet search}}
{{Web crawlers}}
{{Use dmy dates|date=June 2011}}
 
{{DEFAULTSORT:Web crawler}}
[[Category:Search engine software]]
[[Category:Web crawlers| ]]
[[Category:Internet search algorithms]]

Latest revision as of 18:33, 20 December 2014

Hello. Let me introduce the writer. Her name is Refugia Shryock. Her family lives in Minnesota. To collect cash is what her family members and her appreciate. I am a meter reader but I strategy on changing it.

My web-site :: std testing at home