CROSS-REFERENCE TO RELATED APPLICATIONSThis application is a continuation application of currently pending U.S. application Ser. No. 12/693,310, filed on Jan. 25, 2010, which is a continuation application of U.S. application Ser. No. 11/415,947, filed on May 1, 2006, now U.S. Pat. No. 7,653,617, which is a continuation application of U.S. application Ser. No. 11/214,708, filed on Aug. 29, 2005, now abandoned. The contents of all three are incorporated herein by reference.
TECHNICAL FIELDThis invention relates to locating information on a network such as the internet, and more particularly to indexing documents such as mobile-formatted websites so that applications such as a search engine serving mobile devices may more readily deliver results related to the documents in a form that can be displayed by the devices.
BACKGROUNDAs the information available on the internet and other networks grows, it becomes more difficult for users to locate particular information that is relevant to them. For example, a user looking for information on “biking” could be given information about the physiological aspects of bicycling, bicycling routes in particular areas, economic information about relative sales of particular sporting goods companies, or the sales pages of various bicycle companies. The information provided to a user may also range from highly professional, well-researched information, to information that has few indications that its is accurate, or even helpful in any way. Users also want access to as much information as possible, from which the best wheat can be sorted from the worst chaff.
Search engines help users find relevant data. To do so, search engines generally catalogue or index all of the available data so that the index can be searched quickly when a user makes a search request. Search engines generally discover information by using “web crawlers” that, for example, follow links (also called hyperlinks) which connect one document, such as a web page or image file, to another. More particularly, a crawler may operate much like a very curious person who is “surfing” the web, by visiting each web page and then “clicking” on every link on the page until all links on the page and all links on any lower pages have been visited and indexed. This process is sometimes referred to as “discovery-based” crawling.
Traditional discovery-based crawling may have certain shortcomings in some situations. For example, crawl coverage may be incomplete, as there may be documents that the crawler is unable to discover merely by following links. Also, the crawler might fail to recognize some links that are embedded in menus, JavaScript scripts, and other web-based application logic, such as forms that trigger database queries. The crawler may also not know if a document has changed since a prior crawl, and the document thus may be skipped during a current crawling cycle. Moreover, the crawler might not know when to crawl a particular website and how much load to put on the website during the crawling process. Crawling a website during high traffic periods and/or excessive load during crawling can deplete network resources from the website, rendering the website less accessible to others.
Additional difficulties may arise when a crawler is looking for mobile content. In particular, most of the web sites available on the internet are intended for viewing with a full-featured desktop browser program (e.g., Netscape Navigator, Internet Explorer, or Firefox) that can display text, figures, animations, and other rich content. Many mobile devices, such as PDAs and cellular telephones, have a limited ability to display particular types of content. Thus, it may be preferable to classify certain indexed content by whether it is mobile content, and whether it will display properly on certain devices. When a crawler attempts to obtain mobile content, however, the crawler may attempt to simulate the activity of a real person using a browser in order to obtain content. To ensure that it can obtain all types of content, it may take on a large feature set that is not supported by some mobile devices, thus indexing inappropriate content for some users. Also, the crawler may pass a user-agent string to a server that indicates that the crawler is a sophisticated user having a full-featured browser. The server may then return content intended for such full-featured browsers and may hide equivalent but simpler mobile content intended for particular mobile devices or classes of mobile devices. Thus, there is a need for the ability to provide accurate analysis of mobile documents, such as through the use of a crawler system.
SUMMARYIn general, this document discusses systems and methods by which a content provider can produce a sitemap for one or more network-accessible documents, such as web pages, and may submit the sitemap to a remote computer, such as a computer associated with a search engine. The remote computer may then access the sitemap to more efficiently access and/or index the documents or information in the documents. The content provider, such as a webmaster who has built a web site or an automated content management system, may indicate that certain of the content is intended for display on particular mobile devices or other devices having limited display capabilities. The remote computer may use such an indication to select an appropriate mechanism for accessing and crawling the data. For example, a crawler may implement an instance directed to interpretation of XHTML-formatted content.
In one embodiment, a method of analyzing documents or relationships between documents comprises receiving a notification of an available metadata document containing information about one or more network-accessible documents, obtaining a document format indicator associated with the metadata document, selecting a document crawler using the document format indicator, and crawling at least some of the network-accessible documents using the selected document crawler. The network-accessible documents may comprise a plurality of web pages at a common domain, and the metadata document may comprise a list of document identifiers. In addition, the document format indicator may indicate one or more mobile content formats, including XHTML, WML, iMode, and HTML.
In some implementations, information retrieved from crawling at least some of the network-accessible documents may be added to an index. Also, a search request may be received from a mobile device and search results may be transmitted to the mobile device using information in the index. The available metadata document may also comprise an index referencing a plurality of lists of documents. In addition, an indication of document type (e.g, news, entertainment, commerce, sports, travel, games, and finance) for the one or more network-accessible documents may be received and the documents may be classified using the indication of document type. The identity of a provider of the indication of document type may also be verified to ensure that the provider is trusted.
In another implementation, a method of listing network-accessible documents is provided. The method comprises generating a mapping document that represents an organization of related network-accessible documents, and transmitting to a remote computer a notification that includes an indication that the mapping document is available for access and an indication of the format of the documents. The mapping document may comprise a list of document identifiers, and the indication of the format of the documents may indicate one or more mobile document formats that affect the ability to interpret the documents. The notification may also include an indication of the location of the mapping document, and may be transmitted when a user fills out a web-based form.
In yet another aspect, a system for crawling network-accessible documents is discussed. The system comprises a memory storing organizational information about network-accessible documents at one or more websites, and format information for the documents, a crawler configured to access the network-accessible documents using the organizational information, and a format selector associated with the crawler to cause the crawler to assume a persona compatible with formats indicated by the format information. The organizational information may comprise a list of URLs. Also, an agent repository may be provided that stores parameters for causing the crawler to assume a selected persona.
In another implementation, a system for crawling network-accessible documents is provided, and comprises a memory storing organizational information about network-accessible documents at one or more websites, and format information for the documents, a crawler configured to access the network-accessible documents using the organizational information, and means for selecting a crawler persona to present in accessing the network-accessible documents.
Another implementation involves a computer program product for use in conjunction with a computer system. The product comprises a computer readable storage medium and a computer program mechanism embedded therein. The mechanism comprises instructions for generating a mapping document that represents an organization of related network-accessible documents, and transmitting to a remote computer a notification that includes an indication that the list is available for access and an indication of the format of the documents. The mapping document may comprise a list of document identifiers, and the indication of the format of the documents may indicate one or more mobile document formats that affect the ability to interpret the documents. In addition, the notification may include an indication of the location of the mapping document, and the notification may be transmitted when a user fills out a web-based form.
The details of one or more embodiments of the invention are set forth in the accompanying drawings and the description below. Other features, objects, and advantages of the invention will be apparent from the description and drawings, and from the claims.
DESCRIPTION OF DRAWINGSFIG. 1 is a conceptual diagram showing communications between components in a system for accessing and analyzing the organization of information in a part of the system.
FIG. 2 is a schematic diagram of a system for indexing internet documents for access by a search engine.
FIG. 3 is a flow diagram illustrating actions for accessing and analyzing the organization of information in a system.
FIG. 4 is a conceptual diagram of a process for generating a sitemap for a website.
FIG. 5 is a block diagram illustrating a data structure for storing sitemap generator control parameters.
FIG. 6 is a flow chart illustrating a process for generating a sitemap.
FIG. 7 is a flow chart illustrating another process for generating a sitemap.
FIG. 8 is a flowchart illustrating a process for generating a differential sitemap.
FIG. 9 is a block diagram illustrating a web crawler system.
FIG. 10 is a block diagram illustrating a sitemap crawler.
FIG. 11 is a flowchart illustrating a process for scheduling document downloads based on information included in a sitemap.
FIG. 12 is an exemplary screen shot showing a display for adding sitemaps to a search system.
FIG. 13 is an exemplary screen shot showing a display for adding a mobile sitemap to a search system.
FIG. 14 is an exemplary screen shot showing a display for viewing and managing sitemaps identified with a user.
FIG. 15 is a block diagram illustrating a website server.
Like reference symbols in the various drawings indicate like elements.
DETAILED DESCRIPTIONFIG. 1 is a conceptual diagram showing communications between components in asystem10 for accessing and analyzing the organization of information in a part of thesystem10. In general, thesystem10 is configured so that a user, such as a webmaster, may develop content for a website, including content in a number of linked documents such as web pages. The user may then produce a “sitemap,” which is a representation of the organization of the documents. For example, as described in more detail below, the sitemap may include an XML or other similar format of file having a list of URLs that indicate the organization of a web site, and may also include certain additional general data, or metadata, such as the format in which the content is stored, the speed with which the content should be accessed, and the frequency with which representations of the content should be updated.
The user, either directly or through an application program, may then notify another system, such as the components of a crawler for a search engine, that the sitemap is available, and may provide the location of the sitemap. The user may also provide an indication of the format of the documents to which the sitemap relates. For example, the user may indicate that the documents have an XHTML, WML, or iMode format if they are mobile documents. The crawler may then use this submitted information to select an appropriate crawling mode and to more efficiently retrieve information from the documents, such as for storing in an index of a search engine.
The identification of a document or group of documents' format may also occur automatically. For example, an automated process may identify features of one or more documents by implying a document format from the features. Such a process may also be carried out in a machine learning system, whereby determinations may be made automatically, the accuracy of the determinations tested, and rules for classifying documents according to format are updated according to improve the classification ability of the system. Predetermined rulesets may also be applied to the content of a document or documents in order to classify it as having a particular format. Such classification techniques are disclosed in co-pending U.S. patent application Ser. No. 11/153,123, entitled “Electronic Content Classification,” filed Jun. 15, 2005, assigned to Google, Inc., and hereby incorporated by reference in its entirety.
The sitemaps, if used by web crawlers, may lead to greater crawl coverage, since the sitemaps may include documents, such as documents that are accessible only by a database query, that are not accessible by following links. The sitemaps may also provide last modification dates. Web crawlers may use the last modification dates to determine if a document has changed, and may thereby avoid crawling documents whose contents have not changed. The use of sitemaps to avoid crawling unchanged documents can make web crawlers and network crawlers significantly more efficient. The sitemaps also include information from which web crawlers may determine which documents to crawl first, the format or persona to present in crawling the documents, and how much load to put on the web server during crawling. This, too, may help conserve network resources.
The main components in thisexemplary system10 are aclient14, aserver16 associated with theclient14, and aserver system12 not immediately associated with theclient14. Theclient14 may be, for example, a personal computer or other computer configured to give access to programs running on theclient14 or on other computers such asserver16 orserver system12. The client could also be a PDA, workstation, kiosk computer, or other appropriate computing platform.
Theserver16 may be, for example, a web server or a server in communication with a web server, on which web-related content is stored. Thus, for example, a user atclient14 may work to develop a number of documents, such as web pages, that make up a website. The user may insert hyperlinks between and among the various documents, and may also include links to other documents outside the website, whether stored onserver16 or elsewhere. Theserver16 may also be part ofclient14 itself. The particular physical configuration is not critical, and various implementations would be understood by those skilled in the art.Client14 andserver16 are shown in a separate dotted box fromserver system12 to indicate that, in general,client14 andserver16 will be operated by a single organization (such as a corporation having a website), whileserver system12 will generally be operated by a separate organization (such as a search engine provider).
Server system12 may be part of a system remote fromclient14 andserver16. Servers may be, for example, part of a search engine system such as that operated by Google. Though shown as a series of similar server computers, the servers inserver system12 could include, for example, blade servers or other computing platforms for receiving requests from clients and providing appropriate responses to the requests. As described in more detail below, theservers16 may include web servers for receiving requests and transmitting responses, along with content servers for gathering appropriate information for responding to requests, and ad servers for selecting and producing appropriate promotional content. The use of the terms “client” and “server” are not intended to impose a particular requirement on either type of computer. Rather, a client may simply be a computer looking to access certain data, while a server may be a computer supplying the data. A single computer could thus be a client in one situation and a server in another.
Lettered arrows inFIG. 1 show an exemplary flow of information between the components ofsystem10. In a first communication session, indicated by arrow A,client14 communicates withserver16 to produce content such as web-based documents. For example,client14 may run an instance of a web authoring application (e.g., Adobe Sitemill, GoLive CyberStudio, HoTMetal Pro, Macromedia Dreamweaver, NetObjects Fusion, or Microsoft FrontPage) or a more complex content management system (e.g., from Vignette, Interwoven, or Stellant). The user may generate a number of web pages and may link them together in various manners. Also, certain pages may not be otherwise linked in a manner that they could be reached by typical discovery-based crawling (e.g., deep web content). Processes for developing web-accessible content are well known.
When the documents are at a certain point of completion, such as when the user intends to make the documents available publicly, the user may cause asitemap17 to be generated for the documents, as described in more detail below. Thesitemap17 may represent part or all of the organization of the documents, and could, for example, include a list or grouping of uniform resource locators (URLs) for the documents. Thesitemap17 may take an appropriate form, such as an Extensible Mark-Up Language (XML) document using predefined XML tags. Thesitemap17 may also contain other information, such as general information about the manner in which the documents should be crawled, as described in more detail below. Other formats may also be used, including plain text, comma-delineated values, and semicolon-delineated values. Thesitemap17 may thus be used by other applications as a guide, in the form of metadata, to the organization of the documents.
As shown by arrow B, theclient14 may then be caused (either automatically or manually) tocontact server system12 and may transmit information about thesitemap17. For example, theclient14 may provide the location of thesitemap17. In addition, theclient14 may provide information about the format of the documents associated withsitemap17. For example, theclient14 may indicate that the documents are formatted according to a particular standard, such as a mobile content standard. Theclient14 may also provide an indication of how often the documents should be crawled (i.e., documents that are updated often should be crawled often, while documents that are updated little should not be crawled often). Other such parameters may also be provided by theclient14. One or more such parameters may also be included in thesitemap17 or other related document or documents, so thatserver system12 may access them rather than having them provided at the client's instigation.
Arrow C indicates that theserver system12 may obtainsitemap17 data once it has been informed that thesitemap17 exists. For example,server system12 may make an HTTP request to the location identified in the communication labeled by arrow B, and may thereby obtain the data in thesitemap17. In addition,sitemap17 may be a sitemap index that points to one or more other sitemaps, or a different document associated with a sitemap that allowsserver system12 to obtain information about the organization of the documents atserver16.
Theserver system12 may then, via arrow D, crawl or otherwise access the documents stored onserver16. The crawling process may, in appropriate circumstances, occur by stepping through each URL listed in the sitemap. Such identified documents may also be navigated via discovery-based crawling, so that the full set of accessed documents includes the superset of the documents listed in the sitemap and all documents referenced either directly or indirectly in those documents.
Where a document format indicator has been passed toserver system12, theserver system12 may select a particular persona of browser to conduct the crawling operations. For example, the crawler, in its request, may include a user-agent indicator for a particular device or class of devices. For example, the user-agent indicator may provide an indication that the crawler is capable only of interpreting WML-formatted content. By providing such an indicator, the crawler can help ensure that it will receive content in the appropriate format, and will not be directed to other, more complex content.
The use of a particular user-agent with the crawler may also cause the crawler to place information about the documents in a particular index related to the relevant format. For example,server system12 may maintain separate indices for content designed to be displayed on mobile devices and content too complex for mobile devices. Separate indices may also be maintained for particular types (or groups of types) of mobile content, such as iMode, 3g, xhtml, pdahtml, or wml. Thus, when a user later submits a search request, the system may determine the type of device the user has, and may search only in the index associated with content that may be displayed on such a device. The content may also all be stored in a single index, with a parameter available to identify the format of each document or group of documents so that appropriately-formatted content may be located.
In sum, by the process just described, an author of a website may manually or automatically generate a document or documents that represent the organization of certain network-accessible (e.g., LAN, WAN, or internet) documents. The user or the user's application may notify a remote server or servers, such as servers associated with an internet search engine, of the location of the document(s) (e.g., by passing a URL for the document(s)), and perhaps additional parameters relating to the document(s). The remote servers may then use the sitemap or sitemaps to traverse the documents more efficiently, more accurately, or more completely than might otherwise be possible in the absence of a sitemap. In addition, the servers may select a particular persona of crawler that allows the crawler to obtain relevant content, such as mobile-formatted content, and may store this special content separate from other indexed content, or otherwise flag the content.
FIG. 2 is a schematic diagram of asystem10 for indexing internet documents for access by a search engine. Again, the system includes aclient14,server16, andserver system12. Additional detail is shown in this figure, particularly with respect to the structure ofserver system12. The particular structures pictured and described here are exemplary only. Other appropriate and equivalent structures may also be employed, as the needs of a particular application require. Also, various components may be added, pictured components may be removed, or various components may be combined or split apart without altering the operation of thesystem10.
InFIG. 2,client14 is shown linked toserver16 through a network such as a LAN or WAN. Thus, for example, theclient14 andserver16 may comprise computers operated within a single organization or related organizations. For example,client14 may be a personal computer assigned to a web administrator at an organization or a programmer.Server16 may be a server operated by the organization, such as a web server or a computer in communication with a web server. As shown,client14 may communicate withserver16 so that asitemap17 is generated and made available, such as toserver system12.
Server system12 may communicate withclient14 andserver16, in addition to other systems, vianetwork20, which may include, for example the internet, cellular data systems, and the public switched telephone network (PSTN).Interface22 may be provided to manage communications betweenserver system12 and other components.Interface22 may include, for example, one or more web servers. Theinterface22 may control some or all communications with the remainder ofserver system12. For example, theinterface12 may reformat messages received fromoutside server system12 into a form that can be used by other components inserver system12, and may also route messages to the appropriate component or components withinserver system12. In addition,interface22 may combine information from multiple components withinserver system12 and format it into a form that can be transmitted outsideserver system12, such as an HTTP message.
Interface22 may provide messages to, for example, arequest interpreter36, which may be configured to analyze incoming messages. Such analysis may allowrequest interpreter36 to determine which, of the various components inserver system12, should receive a particular message.Request interpreter36 may, for example, look at header information to determine characteristics of the message such as the location from which it was sent or the type of device from which it was sent. Also,request interpreter36 may look at the content of the message, such as at syntactical indications, to determine which components of thesystem12 need to see the message or certain information in the message.Request interpreter36 may also be part ofinterface22.
Incoming messages requesting search results may be routed tosearch engine26, which may provide relevant results in response to search requests, as is known in the art. For example,search engine26 may compare the content of a search request to information stored in anindex28.Index28 may contain data that represents information in documents on a network, such as the internet, so thatsearch engine26 may provide a user with connections, such as through URLs, to information helpful to the user. Thesearch engine26 may identify and rank matches to a search result using methods such as the well-known PageRank process.
Such results may be routed throughcontent server32, which may gather and format results. For example,content server32 may receive results frommultiple search engine26 instances, so that a large number of near simultaneous search requests can be handled across a large system, with a portion of each request handled by aparticular search engine26 component.Content server32 may merge all of the individually-generated results into a result list, such as a list of URLs, along with snippets and address information for each match.
Other content responsive to a request, such as promotional content, may be provided by anad server34. Thead server34 may have access to a number of promotional items that are each associated with one or more keywords or other identifiers. Thead server34 may look for correspondence between a request and the identifiers, and may then select promotional items that match the request. The selection and ranking of items may be based, for example, on an amount an advertiser has agreed to pay, the degree of match between the request and the identifiers for the item, and on an indication of relevance between the request and the item (such as how often other users submitting the same request have selected the item).Interface22 may then combine results fromad server34 andcontent server32 to produce a result to a request, such as in the form of a generated web page.
Index28 used bysearch engine26 may be built and maintained using data gathered from the network by acrawler24. In particular,crawler24 may traverse documents on the network, such as by using links between and among documents, or by using supplied mapping information about documents, their locations, and/or their relationships with other documents.Crawler24 may operate continuously or nearly continuously, and may be split into multiple crawling strings or separate servers running coordinated or wholly separate crawlers.
Crawler24 may be configured to identify a particular format or style of document, or may be configured to analyze multiple formats or styles, and may be switched among the various available formats or styles. As such,crawler24 may be able to impersonate a number of various agents or combinations of agents in the process of obtaining information from documents on thenetwork20. For example,crawler24 may impersonate a mobile handset having WML or XHTML capabilities, or an iMode device. A crawler for mobile formats may operate as a separate instance or instances of a crawler than other crawling pipelines. However, the same general structure for crawling may be shared between full-featured desktop crawl instances, and limited-feature mobile crawls, with the exception of a parameter to limit the visibility of the mobile instances. In addition, as described below, mobile crawlers and non-mobile crawlers may share a common front-end by which users or applications interface with the system.
Crawler24 may access parameters for each such agent from aruleset30. Theruleset30 may, for example, contain parameters defining afirst agent30a, which may define, for example, an agent for obtaining normal HTML-formatted information. Theruleset30 may also include asecond agent30b, which may define, for example, an agent for obtaining XHTML and WML-formatted information. Finally,ruleset30 may include an n-th agent30c, which may define, for example, an agent for obtaining iMode-formatted information. Other agents for other formats or groups of formats may also be defined and made available.
Crawler24 may also include aformat selector25 that controls the persona taken by thecrawler24 when crawling certain documents.Format selector25 may select aparticular agent30a-30n, for example, by looking to values instorage27 corresponding to a particular sitemap. For example, where aclient14 has identifiedsitemap17 as conforming to a particular format, that identification may be stored instorage27. Whencrawler24 then determines to crawl documents represented by sitemap17 (such as after a user has first provided the location ofsitemap17 or at a predetermined update time for the sitemap17),crawler24 may access the location of the sitemap and the format identification fromstorage27, and may select anagent30a-30nthat permits thecrawler24 to present a persona of a particular device or class of devices. Thecrawler24 may then proceed to crawl the documents associated with thesitemap17.
Server system12 is pictured for clarity as including only a limited number of components. It should be appreciated, however, that a system could include many additional functions and components, as needed to provide a full range of services to users ofsystem10. For example,server system12 may provide news, weather, portal, shopping, mapping, and other services. In addition, the components ofserver system12 may be combined or separated as is appropriate.
FIG. 3 is a flow diagram illustrating actions for accessing and analyzing the organization of information in a system. For clarity, the actions are indicated as occurring at a client, a local server, and a remote server. However, the actions or similar actions could also be carried out by fewer computers, or computers arranged in a different configuration.
In the method, a website is first scanned (50) to determine the organization of documents relating to the site. A local server on which the website is stored may in turn provide information about the website (52). For example, a website author may identify the URLs of every page on a web site that the author would like to make available across a network, such as to the public over the internet. The author may then make a list of all of the URLs or other document identifiers for the site, whether those URLs represent documents that link to each other or documents having no links. Alternatively, the website may be analyzed or scanned automatically, such as by a document management system that has been used to generate the site.
The organization of documents may then be recorded by generating a sitemap (54). The sitemap may be, for example, an XML document having a predetermined format, and may include a list of URLs for the documents in the website. In addition, general metadata may be added to the sitemap (56). For example, as described in more detail below, data about the format of the documents referenced by the sitemap, the speed at which the documents should be accessed, and the frequency for updating information about the sitemap may all be specified in the general metadata. The sitemap may then be stored, such as on the local server, along with the website information (58). The generation of metadata for the sitemap may also occur manually or automatically.
Once the sitemap is generated and stored, it may be identified to a remote server (60), which after receiving such notification (62) about the sitemap, may access the sitemap. The notification may occur manually, such as by a user logging onto a website hosted by the remote server or a server associated with the remote server (e.g., when a clearinghouse gathers sitemap information at one central point and then shares it with various search engines, e.g., at predetermined update points so that all search engines receive the information simultaneously, or at staggered points so that the search engines do not overload the user's website with crawlers).
Various information may be submitted as part of the notification. For example, minimal information, such as the location of the sitemap, may be submitted, and the remote server may obtain additional information from the sitemap or from a related document. Alternatively, additional information may be provided, such as the format of the documents at the web site, and other metadata that would otherwise (or in addition) be located in the sitemap. Alternatively, the notification may include submission of the entire sitemap.
Once the remote server has received the necessary notification information, it may check the sitemap or related documents for any additional information it may need to explore and analyze the sitemap or the user's website (66). The local server may respond accordingly to any such requests (64). For example, where the notification has involved minimal information, the remote server may need to obtain additional information to conduct its crawling of the website. Because such additional information retrieval is dependent on the user providing incomplete information when notifying the remote server, so that the steps would often be unnecessary, the boxes for these steps (64,66) are shown dashed.
The remote server may also select a crawler type or crawler persona for crawling the website (68). For example, where the user has identified a website as being formatted according to a particular mobile-based format, the remote server may simulate the performance of a device for viewing such mobile content when crawling the website.
When the remote server has sufficient information to locate the sitemap, it may access the sitemap and begin using information in the sitemap to crawl the website (70,72). The crawler may crawl the website using the selected crawler type (74), when a particular format or formats have been identified, and the local server may in turn provide the content (76) such as by serving up all of the documents referenced in the sitemap.
For example, the crawler may step through the sitemap list, when it is formatted as a list, and may make a request of the first item in the list. The crawler may analyze the content of that first item, indexing some of the content, and identifying any links in the first item. The crawler may then make requests of any linked-to items, and repeat the analysis and linking process until it has exhausted that branch of the website. The crawler may then move to the next entry in the sitemap list. The crawler may also store a list of all documents it has accessed so that it does not make repeated accesses to a document that is linked to from multiple locations.
FIG. 4 is a conceptual diagram of a process for generating a sitemap for awebsite100. Thewebsite100 includes awebsite file system102, sitemapgenerator control parameters104, asitemap generator106, asitemap update module108, a sitemap notification module110,sitemaps114, andsitemap indices112. Thefile system102 may be implemented in some embodiments using any of a number of file systems, including distributed file systems in which files are stored on multiple computers. In other embodiments, thefile system102 may be implemented using a database or search engine that produces documents in response to queries.
Thewebsite file system102 organizes the documents that are stored at the web server. A document stored at the website may be any appropriate machine-readable file that includes text, graphics, video, audio, etc., or any combination of those items. Examples of documents that may be stored at a website include, among others, web pages, images, video files, audio files, Portable Document Format (PDF) files, plain text files, executable files, presentation files, spreadsheets, word processor documents, and so forth.
The documents stored at thewebsite100 may be organized in a hierarchal structure. That is, the documents may be organized into a tree of nested directories, folders, or paths (hereinafter the “directory tree”). The directory tree includes a root directory/folder/path, and the root may have subdirectories/sub-folders/subpaths nested within.
The subdirectories/sub-folders/subpaths may also have further subdirectories/sub-folders/subpaths nested within, thus forming a directory tree. Each document may be stored in a directory/folder/path in the directory tree. Each directory/folder/path and each document may be a node in the tree. The file system may also store metadata associated with the documents, such as a last modification date, a last access date, document permissions, and the like. In some embodiments, the file system may also include a database of documents and associated metadata. Documents in the database may be accessed by executing a query of the database as well as, or instead of, traversing the directory tree.
Each document stored at the website may be identified and/or located by a locator. In some embodiments, the locator is the URL of the document. In some other documents, alternative manners of identification (e.g., URIs) or addressing may be used. The URL of a document may be derived from its location in the file system. The URL of a document may be based on the directory/folder/path, or the location in a database, or on the query used to retrieve the document from the database in which the document is stored. That is, each document in a directory/folder/path or a database location may be mapped to an URL. In some embodiments, the URLs may be used by computers external to the website, such as remote computers associated with web crawlers, to access the documents in the file system that are open to external access. For convenience of explanation, the document locators are described below as if they are URLs.
Thesitemap generator106 generates sitemaps and, optionally, one or more sitemap indexes of the website. The sitemaps may be used by web crawlers to schedule their crawls of documents stored at the web server. Sitemap indexes, further details of which are described below, encapsulate one or more sitemaps, and may contain, for example, a list of sitemaps.
Thesitemap generator106 generates sitemaps by accessing one or more sources of document information. In some embodiments, the sources of document information include thefile system102, access logs, pre-made URL lists, and content management systems. Thesitemap generator106 may gather document information by simply accessing thewebsite file system102 and collecting information about any document found in thefile system102. For instance, the document information may be obtained from a directory structure that identifies all of the files in the file system, or in a defined portion of the file system.
Thesitemap generator106 may also gather document information by accessing the access logs (not shown) of the website. The access logs record accesses of documents by external computers. An access log may include the URLs of the accessed documents, identifiers of the computers accessing the documents, and the dates and times of the accesses. Thesitemap generator106 may also gather document information by accessing pre-made URL lists (not shown). The pre-made URL lists list URLs of documents that the website operator wishes to be crawled by web crawlers. The URL lists may be made by the website operator using the same format as that used for sitemaps, as described below.
If the documents in the website are managed via a content management system, thesitemap generator106 may gather document information by interfacing with the content management system and accessing the information stored within the content management system.
The sitemapgenerator control parameters104 include predefined parameters that control the generation of sitemaps. Further information regarding the sitemapgenerator control parameters104 is described below, in relation toFIG. 5.
Thesitemap generator106 generatessitemaps114 and possibly one ormore sitemap indices112. Thesitemap114 andsitemap index112 may be generated using any suitable format and language. As noted above, in some embodiments, the sitemap is generated in Extensible Markup Language (XML) format, using predefined XML tags. For convenience of description, sitemaps and sitemap indexes below are described as formatted using XML.
Asitemap index112 is a document that is associated with one ormore sitemaps114 to assist in the organization of, and reference to the sitemaps. Thesitemap generator106, when generating sitemaps for the website, may generate multiple sitemaps, with each sitemap listing a subset of URLs of documents that may be crawled, rather than listing URLs of all documents that may be crawled in one sitemap. In such a situation, thesitemap generator106 may also generate asitemap index112 to list the multiple sitemaps and their URLs. A sitemap index may include starting and ending tags (e.g., XML tags such as <sitemapindex> and </sitemapindex>, not shown in the Figures) defining the beginning and end of thesitemap index112. Thesitemap index112 also may include URLs of each sitemap listed in the sitemap index.
The sitemap index may also include optional metadata for respective sitemap URLs in the sitemap index. For instance, the metadata may include a last modification date of the respective sitemap. Each sitemap URL and any respective associated metadata may be enclosed by starting and ending tags that define the beginning and end of asitemap record114 in thesitemap index112.
In addition to the list of sitemaps, in some embodiments a sitemap index may optionally contain a list of site-specific information140 (also called “per-site information”) that applies to an entire website. For example, a sitemap index may contain a list of time intervals and a rate at which the crawler should crawl the respective website (e.g.,
- <crawl_rate from=08:00 UTC to =17:00 UTC>medium</crawl_rate>
- <crawl_rate from=17:00 UTC to =8:00 UTC>fast</crawl_rate>).
In other examples, a sitemap index contains geographic information identifying a geographic location associated with the website (e.g., <location>latitude, longitude</location>), and/or it may contain language information identifying one or more languages supported by or otherwise associated with the respective website (e.g., <language>German</language>). The per-site information may also include a document format type (or types) for the site, such as XHTML, 3g, PDAHTML, WML, or iMode/cHTML.
In some embodiments, per-site information may also be present in the sitemap references in a sitemap index file. If both the sitemap index and a referenced sitemap contain per-site information for the same property (e.g., crawl rate), then the value specified in the sitemap may override the value specified in the sitemap index because the sitemap is a more specific instance of the information. In other embodiments, per-site information may be specified in a sitemap index or sitemap using syntax other than the examples given here.
In one embodiment, thesitemap generator106 of a website generates a new sitemap at regular intervals, such as daily or weekly. Each new sitemap generated, after a first (starting point) sitemap, may list only URLs that are new or modified since the prior sitemap was generated (i.e., have a creation date or modification date after the date that the last sitemap was generated). The term “date” is used here to allow for the inclusion of date and time, and may be represented by a timestamp, such as an ISO 8601 compatible timestamp using UTC (coordinated universal time). In these embodiments, the sitemap index for the website lists all the sitemaps generated for the website.
Optionally, a new starting point sitemap may be generated by the sitemap generator at larger intervals (e.g., weekly or monthly) than the intervals at which the update sitemaps are generated. Each time a new sitemap is generated and added to thesitemap index112, a notification may be sent to one or more search engines or crawlers.
Asitemap114 is a document or documents that list the URLs of documents in a website that may be crawled by a web crawler, or otherwise indicates the organization of documents in a website or other networked location. Asitemap114 may include a list of URLs and, optionally, additional information, such as metadata, for respective listed URLs. Asitemap114 may include starting and endingtags116 that define the beginning and end of the sitemap. The sitemap may also include one or more URL records118. The beginning and end of eachURL record118 may be defined by astarting tag120 and an endingtag130. EachURL record118 may include the URL122 of a document that may be crawled.
AURL record118 may also include optional metadata associated with the respective URL. The optional metadata may include one or more of the following: a format for the document specified by theURL121, a last modification date124 of the document specified by the URL, a change frequency126 (also called the update rate) of the document specified by the URL, a document title127, a document author129, and a priority128 of the document specified by the URL. Theformat121, change frequency126, and priority128 may be specified by the website operator.
The change frequency126 is a descriptor of how often a document's content is expected to change. The descriptor is one of a predefined set of valid descriptors. In some embodiments, the set of change frequency descriptors includes “always,” “hourly,” “daily,” “weekly,” “monthly,” “yearly,” and “never.” The change frequency126 provides a hint to the crawler as to how often the document changes. The crawler can use the hint to schedule crawls of the document accordingly. A crawler, however, may crawl the document in a way that is inconsistent with the specified change frequency. For example, a crawler may crawl a document marked as “hourly” less frequently than a document marked as “yearly.” The actual crawl frequency of a document may be based on the document's importance (as represented by a score, such as PageRank), actual observed changes in the document (or lack thereof) as observed by the crawler, and other factors, as well as the change frequency specified in a sitemap.
The priority128 is a value that specifies the relative priority of the document identified by the URL122. The priority128 may be the priority relative to other documents listed in thesame sitemap114, relative to other documents stored in the same web server as the document, or relative to all documents in the website. In some embodiments, the range of priority values is 0.0 to 1.0, inclusive, with 0.5 as the default value, 0.0 as the lowest relative priority, and 1.0 as the highest relative priority. In other embodiments, other priority scales, such as 0 to 10, may be used. The priority may be used by a crawler to determine which documents in the website should be crawled first. The crawler may ignore or modify the priority values in a sitemap when those priority values fail to meet predefined criteria (e.g., a requirement that the priority values in a sitemap or set of sitemaps for a website have a predefined average value, such as 0.5). In some embodiments, the priority may also be used when indexing documents.
Other parameters may also be included in a sitemap. For example, additional metadata may include the category of content at each URL, such as news, entertainment, medical, educational, promotional, etc. Also, other parameters may indicate whether the URL is intended to be made available only to users having a particular telecommunication carrier (e.g., for mobile content). Such parameters may be particularly appropriate where the content provider is a trusted provider, or one the system is confident will provide accurate information (e.g., as determined through a qualification sign-up process, or by a referral from another trusted provider).
Thesitemap generator106 may also interact with asitemap update module108 and a sitemap notification module110. The sitemap notification module110 sends a notification to a remote computer associated with a web crawler whenever a new or updated sitemap is available at the website. The notification may include the URL of the sitemap, so that the remote computer can access the sitemap. If the website uses sitemap indices, the notification, in some embodiments, may include just the URL of the sitemap index. The remote computer may then access the sitemap index and thereby identify the URLs of the sitemaps. In some other embodiments, the notification may include the sitemap, the actual sitemap index, or one of these documents in addition to a format identifier for subsets of the documents referenced by the sitemap or sitemap index or all of such documents, in which case the remote computer need not access the sitemap index at the website or access information about the formats.
Thesitemap update module108 may generate a differential sitemap based on a difference between a previously generated sitemap and a current sitemap. Further information regarding differential sitemaps is described below, in relation toFIG. 8.
FIG. 5 is a block diagram illustrating a data structure for storing sitemap generator control parameters. The sitemapgenerator control parameters104 control the generation of sitemaps and sitemap indexes. Each of the parameters may be specified by the operator of the website. The parameters may include one or more of the following:
- one or more sitemap base URLs302, which specify the location(s) from which the sitemaps may be accessed by remote computers associated with web crawlers;
- file path-to-URL mapping(s)304, which map directories/paths/folders or database locations in thefile system102 to externally accessible URLs (an exemplary path to URL mapping is P:/A/B/*.*>www.website.com/qu/*.*);
- URL exclusion pattern(s)306, which specify classes of URLs that are to be excluded from inclusion in sitemaps (e.g., an exclusion pattern of “www.website.com/wa/*.prl” would indicate that all “prl” files in the “/wa” portion of www.website.com are to be excluded from the sitemap(s));
- URL pattern(s) with update rates308, which specify classes of URLs and update rates (change frequencies) for respective URL classes (e.g., www.website.com/qu/a*.pdf> daily would indicate that the files meeting the specified patterns are expected to be updated daily.
- notify URL(s)310, which specify the URLs of remote computers associated with web crawlers to which new sitemap notifications may be transmitted;
- pointer(s) to URL list(s)312, which point to pre-made URL lists;
- pointer(s) to URL access log(s)314, which point to URL access logs;
- pointer(s) to a directory or directories316, which point to directories/folders/paths or database locations in thefile system102; and
- preferred crawl time(s)318, which specifies preferred times of the day for web crawlers to crawl the website.
It should be appreciated that the listed parameters are merely exemplary and that fewer, additional and/or alternative parameters may be included.
FIG. 6 is a flow chart illustrating a process for generating a sitemap. As described above, a source of information about documents stored on the website is the access logs of the website. The access logs of the website are first accessed (602). The access logs may be found by following pointers to URL access logs. The access logs may then be scanned for non-error URLs (604). Non-error URLs are URLs that properly specify an existing and accessible document. Thus, for example, a URL for a document that is no longer on the website may be deemed an error URL. A list of URLs may then be generated (606). The list may include the non-error URLs found in the access logs.
The list may also include document popularity information derived from the access logs. The document popularity information may be determined based on the numbers of accesses each non-error URL has. The document popularity information serves as an additional hint of which documents are to be given a higher priority during crawling (e.g., scheduled to be crawled first, or more likely to be crawled than lower priority documents), based on which documents are in high demand (i.e., are accessed more often).
After the list of URLs is generated, the list may be filtered for excluded URLs (610). The URL exclusion patterns from the sitemap generator control parameters may be used as the filter that is applied to the list of URLs (608). Alternately, URL exclusion patterns may be obtained elsewhere, or permanently encoded in a customized sitemap generator for the website. URLs in the list that match any of the URL exclusion patterns may then be removed from the list.
Update rate information may be added to the list of URLs, for the respective URLs in the list (612). In some embodiments, the update rates may be obtained from the sitemapgenerator control parameters104, or more particularly, the URL pattern(s) with update rates (608).
Last modification dates and times for the respective URLs in the list of URLs may then be added (614). The last modification dates may be obtained from the file system, which may be a database and/or adirectory tree616, as described above.
In an alternate embodiment, asitemap strategy object615 controls thefiltering operation610, update rateinformation adding operation612, and the last modificationdate adding operation614, using information obtained from adatabase616 and/or the sitemapgenerator control parameters608. In some embodiments, the sitemap strategy object determines which URLs (or URIs) to filter and which attributes to add to specific URLs (or URIs) by performing a database query on theunderlying database616.
The sitemap may be generated from the resulting list of URLs, including any last modification date/time information, optional popularity information, and optional update rate information that has been included or obtained for the listed URLs (618). Within the sitemap, the metadata for the URLs listed in the sitemap may comprise the last modification date/time information, optional popularity information, and optional update rate.
FIG. 7 is a flow chart illustrating another process for generating a sitemap. The process ofFIG. 7 is similar to that ofFIG. 6, with the difference being that, in the process ofFIG. 7, the initial source of document information is the file system database or directory tree (702), rather than access logs. A scan of the database or a traversal of the directory tree may first be performed (704). From the database scan or directory tree traversal, a list of URLs and associated last modification dates may be obtained (706). The list may be filtered for excluded URLs (708), using the URL exclusion patterns from the sitemap generator control parameters as the filters (712). Additional metadata, such as document update rate information associated with the respective URLs in the list of URLs, may also be added (710). The update rate information may be taken from the sitemap generator control parameters (712). The sitemap may be generated from the list of non-excluded URLs, the last modification date information, and additional information such as the update rate information.
In an alternate embodiment, asitemap strategy object715 may control thefiltering operation708 and/or adding ofmetadata710 to the list of URLs or URIs in thesitemap714 using information obtained from theunderlying database702 and/or the sitemapgenerator control parameters712. In some embodiments, thesitemap strategy object715 may determine which URLs (or URIs) to filter and which attributes to add to specific URLs (or URIs) by performing a database query on theunderlying database702.
The sitemap generation processes illustrated inFIGS. 6 and 7 may be adapted to use alternative sources of document information and/or use multiple sources of document information. For example, the sitemap generator may initially extract URLs from one or more pre-made URL lists or from a content management system associated with the website. Regardless of the source from which the URLs are extracted, the sitemap generator may collect document metadata from as many of the sources of document information as needed. For example, the sitemap generator may extract URLs from pre-made URL lists, obtain the last modification dates from the file system and obtain document popularity information from the access logs. Any suitable combination of sources of document information may be used to generate the sitemaps.
FIG. 8 is a flowchart illustrating a process for generating a differential sitemap. A differential sitemap is a sitemap that is generated based on a difference between a previously generated sitemap and a current sitemap. The differential sitemap may include URLs that were not included in the previously generated sitemap and URLs that were included in the previously generated sitemap but which have new or updated metadata. For example, a URL with an updated last modification date would be included in the differential sitemap. The presence of an updated last modification date for the URL means that the document at the respective URL has been updated since the previously generated sitemap.
A current sitemap (802) and a previously generated sitemap (804) may be processed by a differential sitemap generator, such as the sitemap update module108 (806). The differences between the two sitemaps may be ascertained and a differential sitemap may be generated (808).
FIG. 9 is a block diagram illustrating aweb crawler system900. Theweb crawler system900, which may be a part of and/or associated with a search engine, crawls locations corresponding to documents stored in web servers.
Thesitemap crawler905 accesses sitemaps generated by websites or web servers. Thesitemap crawler905 receives sitemap notifications. Thesitemap notifications930 are received from web servers or websites that have documents available for crawling. A notification from a web server or website informs the sitemap crawler that one or more sitemaps listing URLs of documents that may be crawled are available for access. The notification may include the URL of a sitemap, or the URLs of two or more sitemaps. The notification may include the URL of a sitemap index, or it may include the content of a sitemap index. In some embodiments, the notification may include the sitemap index or the full sitemap. Thesitemap crawler905 may access the sitemap index at the sitemap index URL to learn the URLs of the sitemaps and then access the sitemaps.
Thesitemap crawler905 may access sitemaps from web servers or websites and may store copies of the accessed sitemaps in asitemap database932. Thesitemap database932 stores the sitemaps and information associated with the sitemaps, such as the web servers and/or websites with which the sitemaps are associated, the last modification dates of the sitemaps, and update rate information associated with the sitemaps.
Accessed sitemaps may be provided to asitemap processing module934 for processing. Thesitemap processing module934 processes the sitemaps and identifies the URLs and associatedmetadata936. The sitemaps may be a source of URLs and associated metadata information for theURL scheduler902. In some embodiments, an optional, additional source of URLs and associated metadata may be received bydirect submission903 by users. For example, user may supply information about the format of documents associated with the sitemap or sitemaps.
TheURL scheduler902 determines which URLs will be crawled in each crawling session. TheURL scheduler902 may store that information in one or more data structures (not shown), such as a set of list data structures. In some embodiments, theURL scheduler902 allocates URLs to segments of the data structure, where the segments correspond to the crawl sessions. In these embodiments, theURL scheduler902 also determines which URLs within each segment are to be crawled. In some embodiments, there may be a number ofURL schedulers902, which are run before each segment is crawled. Eachscheduler902 is coupled to acorresponding URL manager904, which is responsible for managing the distribution of URLs toURL server906. Alternately, eachURL scheduler902 may be coupled to two or more of the URL managers, enabling the URL distribution function for each crawl session to be spread over multiple URL managers. TheURL schedulers902 may be adapted to receive URLs andmetadata936 extracted from sitemaps.
Acontroller901 selects a segment for crawling. The selected segment is referred to hereinafter as the “active segment.” Typically, at the start of each session, thecontroller901 selects a different segment as the active segment so that, over the course of several sessions, all the segments are selected for crawling in a round-robin manner. Thecontroller901 may also select a user agent to be presented by the crawler, which is associated with the format for the active segment. For example, the user agent may involve parameters that cause the crawler to imitate an iMode device or other mobile device or group of devices.
A query-independent score (also called a document score) may be computed for each URL byURL page rankers922. Thepage rankers922 compute a page importance score for a given URL. In some embodiments, the page importance score may be computed by considering not only the number of URLs that reference a given URL, but also the page importance score of such referencing URLs. Page importance score data may be provided toURL managers904, which may pass a page importance score for each URL toURL server906,robots908, andcontent processing servers910. One example of a page importance score is PageRank, which is the page importance metric used in the Google search engine. An explanation of the computation of PageRank is found in U.S. Pat. No. 6,285,999, which is incorporated by reference herein in its entirety as background information. In some embodiments, information from the sitemaps may be incorporated into the computation of the page importance score. An example of sitemap information that may be incorporated into the page importance score is the priority128.
From time to time, theURL server906 may request URLs from theURL managers904. In response, theURL managers904 may provide theURL server906 with URLs obtained from the data structure. TheURL server906 may then distribute URLs from theURL managers904 to crawlers908 (hereinafter also called “robots” or “bots”) to be crawled. Arobot908 is a server that retrieves documents at the URLs provided by theURL server906. Therobots908 use various known protocols to download pages associated with URLs (e.g., HTTP, HTTPS, Gopher, FTP, etc.). In some embodiments, arobot908 retrieves from the per-site information database940 crawl rate and/or crawl interval information for a specified website, and then uses the retrieved information to control the rate at which URLs or URIs are fetched by therobot908 from the website. Therobots908 may also, where appropriate, be passed format information for a document so as to properly imitate a device or devices for which the document was formatted.
Pages obtained from URLs that have been crawled byrobots908 are delivered tocontent processing servers910, which perform a number of tasks. In some embodiments, these tasks include indexing the content of the pages, generating records of the outbound links in the pages, detecting duplicate pages, and creating various log records to record information about the crawled pages. In one embodiment, these log records are stored in log files, including link logs914, status logs912, andother logs916. The link logs914 include a link record for each document obtained from a URL by arobot908 and passed to thecontent processing servers910. Each link log914 record identifies all the links (e.g., URLs, also called outbound links) that are found in the document associated with the record and the text that surrounds the link. The information in the link logs914 may be used by thecontent processing servers910 to createlink maps920.
The records in thelink map920 are similar to records in the link logs914, with the exception that text is stripped and the records are keyed by a “fingerprint” of the normalized value of the source URL. In some embodiments, a URL fingerprint is a 64-bit integer determined by applying a hash function or other one-way function to a URL. The bit-length of the URL fingerprint may be longer or shorter than 64 bits in other embodiments. The records in eachlink map920 may optionally be sorted or keyed by a fingerprint. The link maps920 are used by thepage rankers922 to computer or adjust the page importance score of URLs. In some embodiments, such page importance scores may persist between sessions.
The status logs912 log the status of the document processing performed by thecontent processing servers910. The status logs may include URL status information928 (e.g., whether a document existed at the specified URL, last modification date information, and update rate information). The URL status information may be transmitted to the URL scheduler(s)902. The URL scheduler(s) may use the URL status information to schedule documents for crawling.
In some embodiments, thecontent processing servers910 may also create anchor maps918. The anchor maps918 map the “anchor text” in hyperlinks to the URL of the target URLs of the hyperlinks. In documents that use HTML tags to implement the hyperlinks, the anchor text is the text located between a pair of anchor tags. For example, the anchor text in the following pair of anchor tags is “Picture of Mount Everest”:
- <A href=“http://www.website.com/wa/me.jpg”>Picture of Mount Everest</A>.
In some embodiments, sitemap-supplied document metadata may also be used for creating anchor maps. For example, document metadata such as the document title, document author, or document description may be used to create the anchor maps. However, it should be appreciated that any field appearing in a sitemap may generally be included in an anchor map.
In some embodiments, the records in ananchor map918 may be keyed by the fingerprints of outbound URLs present inlink log914. Thus, each record in ananchor map918 may comprise the fingerprint of an outbound URL and the anchor text that corresponds to the URL inlink log914. Anchor maps918 are used by the indexer(s)924 to facilitate the indexing of “anchor text” as well as to facilitate the indexing of URLs that do not contain words. For example, consider the case in which the target document at an outbound URL (e.g., the URL in the above example) is a picture of Mount Everest and there are no words in the target document. However, anchor text associated with the URL, “Picture of Mount Everest” may be included in anindex926, thereby making the target document accessible via a search engine using theindex926.
The anchor maps918 andother logs916 are transmitted to indexer(s)924. The indexer(s)924 use the anchor maps918 andother logs916 to generate index(es)926. The index(es) are used by the search engine to identify documents matching queries entered by users of the search engine.
FIG. 10 is a block diagram illustrating asitemap crawler system1000. Thesitemap crawler system1000 typically includes one or more processing units (CPU's)1002, one or more network orother communications interfaces1004, memory1010, and one or more communication buses orsignal lines1012 for interconnecting these components.
Thesitemap crawler system1000 optionally may include auser interface1005, which may comprise a keyboard, mouse, and/or a display device. The memory1010 may include high-speed random access memory, such as DRAM, SRAM, DDR RAM or other random access solid state memory devices; and may include non-volatile memory, such as one or more magnetic disk storage devices, optical disk storage devices, flash memory devices, or other non-volatile solid state storage devices. Memory1010 may include one or more storage devices remotely located from the CPU(s)1002. In some embodiments, memory1010 stores the following programs, modules and data structures, or a subset thereof:
- anoperating system1014 that includes procedures for handling various basic system services and for performing hardware dependent tasks;
- anetwork communication module1016 that is used for connecting thesitemap crawler system1000 to other computers via the one or morecommunication network interfaces1004 and one or more communication networks, such as the Internet, other wide area networks, local area networks, metropolitan area networks, and so on;
- asitemap database932 that stores accessed sitemaps;
- asitemap crawler905 that accesses sitemaps provided by web servers;
- asitemap processing module934 that receives sitemaps and processes the sitemaps to identify URLs and associated metadata;
- URL list(s)1018 that list URLs of documents that may be crawled; and
- anotification processing module1020 that processes new sitemap notifications received from web servers.
Each of the above identified elements may be stored in one or more of the previously mentioned memory devices, and may correspond to a set of instructions for performing a function described above. The above identified modules or programs (i.e., sets of instructions) need not be implemented as separate software programs, procedures or modules, and thus various subsets of these modules may be combined or otherwise rearranged in various embodiments. In some embodiments, memory1010 may store a subset of the modules and data structures identified above. Furthermore, memory1010 may store additional modules and data structures not described above.
In embodiments in which one or more of the sitemap indexes or sitemaps contains per-site information, such per-site information is extracted and added to a per-site information database940 (e.g., by the sitemap crawler905). When appropriate information (e.g., language and/or location information) is available in the per-site information database940, it is used by theindexers924 to add per-site information (e.g., language and/or location information) to theindexes926. The inclusion of website geography and/or language information in theindexes926 allows searches to be performed by a search engine, using theindexes926, that include geographic and/or language restrictions.
For instance, when the indexes of a search engine include geographic information about at least some websites, the search engine can service requests such as “pizza within 1 mile of London Bridge, London, England.” When the indexes of a search engine include language information about at least some websites, the search engine can service requests such as “German URLs containing ‘George Bush.’” In embodiments in which the per-site information includes crawl rate information and/or crawl time intervals, that information is used by theURL schedulers902 and/orrobots908 to control the times and rates at which web pages are crawled.
FIG. 11 is a flowchart illustrating a process for scheduling document downloads based on information included in a sitemap. In some embodiments, scheduling documents for downloading means generating a list of document identifiers that identify the scheduled documents. The list of document identifiers may be an ordered list, with document identifiers earlier in the list having higher priority or importance than document identifiers lower in the list.
In some embodiments, the sitemap crawler may access a sitemap upon receipt of a notification that a current version of the sitemap is available. Sitemap notifications are received and logged (1102). The next pending sitemap notification may then be selected (1104). The sitemap(s) associated with the selected sitemap notification may then be downloaded from the web server (1106).
In some other embodiments, the sitemap crawler may periodically select sitemaps for processing and access the sitemaps without waiting for notifications, in addition to or in lieu of waiting for sitemap notifications. The sitemap database may also be accessed (1108). A sitemap from the database may then be selected for processing (1110). The selection may be made based on information stored in the database, such as last modification date information or update rate information. For example, when the “age” of a sitemap (e.g., the current date minus the date of the sitemap, or the current date minus the date of last modification date in the sitemap), is older than the shortest predicted update period for any document listed in the sitemap, the sitemap may be selected for downloading. The selected sitemap may be accessed, by download from the web server or by accessing the stored copy of the sitemap at the sitemap database (1112).
The sitemap database may then be updated with new sitemap information if such information is received from the download (1114). In embodiments in which one or more of the sitemap indexes or sitemaps contains per-site information, a per-site information database is updated with the received per-site information.
For each URL in the sitemap, a determination as to whether the URL is a candidate for crawling may be made (1116). The determination may be made based on the URL status information, such as whether the document at the URL has been or is likely to have been updated, or whether the URL properly specifies an accessible document (1124). URLs that are determined to be candidates for crawling may be identified as candidate URLs (1126) and each of them may be assigned a score (1118). The score for each candidate URL may be based on the page importance score (e.g., PageRank) of the URL and the priority value of the URL, which was extracted from the sitemap. After scoring, the candidate URLs (1128) may filtered.
The filter may select a subset of the candidate URLs based on one or more predefine criteria, such as budgets, site constraints (e.g., limits on the number of documents that the crawler is allowed to download during the time period of the crawl), and so forth. The resulting list of candidate URLs may then be used to schedule URL downloads (1122). As noted above, scheduling URL downloads may comprise generating an ordered list of URLs or document identifiers, with document identifiers earlier in the list representing documents having higher priority or importance that documents placed later in the ordered list. Furthermore, as noted above, in some embodiments, thescheduling operation1122 may take into account per-site information received in the sitemap indexes or sitemaps, such as crawl interval and/or crawl rate information for specific web sites.
In some embodiments, the scheduler may schedule more documents for crawling than the crawler can actually crawl. In some embodiments, a crawler may have a crawl budget for a website or web server. The budget is a maximum number of documents a crawler may crawl, in a particular crawl session, for the particular website or web server. In other words, the budget may be a self-imposed limit, imposed by the web crawler, on how many documents to crawl for a particular web server or website. The budget limits the crawling a crawler will perform for a particular website or web server, ensuring that the crawler can crawl other websites or web servers before reaching its crawl limit.
In some embodiments, a website/web server operator may set site constraints to constrain crawling for a particular website or web server. The goal of the site constraints are to limit crawling for the particular website or web server, in order to prevent network resources associated with the website or web server from being depleted by the crawler. The site constraints may include a maximum number of documents, defined by the website operator, which may be crawled for the particular website during a define period of time (e.g., per hour or per day). In addition, the constraints may include the format of documents on the website or web server, such as particular formats of mobile documents.
The filtering of the candidate URLs may lead to the generation of a list of sorted and filtered candidate URLs (1130) and a list ofunselected candidate URLs1132. The list of sorted and filtered candidate URLs may be transmitted to the scheduler, where the scheduler may schedule the crawls for the URLs in the list. The list ofunselected URLs1132 may be transmitted to asecondary web crawler1134, which may include asecondary scheduler1136. Thesecondary scheduler1136 may then schedules the URLs in thelist1132 for crawling by thesecondary web crawler1134.
The URL scheduler may schedule crawls for URLs in the list according to the document metadata obtained from the sitemaps. As described above, the metadata may include document last modification date information, document update rate information, document priority information, and document popularity information.
The scheduler may schedule crawls of URLs based on the last modification date information from the sitemaps. The scheduler may defer scheduling of a document corresponding to a URL for crawling if the document has not been modified since the last date/time the document was downloaded by the web crawler. In other words, the scheduler may defer scheduling of a document for crawling if the last modification date of the document is no later than the date/time of the last download of the document by the web crawler. Such deferral helps conserve network resources by avoiding re-downloading of documents that have not changed.
The scheduler may also schedule crawls of documents based on the update rate information from the sitemaps. The scheduler may schedule crawls of a document if a predefined function of the update rate and the last date/time at which the document was downloaded satisfy predefined criteria. In some embodiments, the document may be scheduled for downloading if the difference between the last date/time at which the document was downloaded and the current time is greater than the update rate as indicated by the update rate information. For example, if the update rate of a document is “weekly” and the last time the document was downloaded was two weeks ago, the scheduler may schedule the document for downloading. This helps conserve network resources by avoiding downloading of documents that is expected to be unchanged since the last download.
The scheduler may also adjust scores of candidate URLs based on their relative priorities. The scheduler determines boost factors corresponding to the relative priorities and applies them to the scores. In some embodiments, the scheduler may also determine boost factors based on document popularity information, the document popularity information being an additional indication of document priority.
In some embodiments, the scores included with the selected or unselected candidate URLs may be used to determine which URLs are must-crawl URLs. That is, the score may help determine whether a document is guaranteed to be crawled. URLs whose scores are high may be designated as must-crawl. This ensures that important pages are scheduled for crawling.
FIG. 12 is an exemplary screen shot showing a display for adding a sitemap to a search system. The display shows instructions for a user to enter an identifying URL for a sitemap the user has created. In addition, a blank entry box is provided for receiving the URL, and a submission button is also provided. The display also provides a number of hyperlinks that, if selected, will provide the user with additional instructions for selecting and identifying a URL for a sitemap.
The exemplary display ofFIG. 12 also provides the user with an extra option if they would like to provide information for a sitemap associated with a website intended to be viewed using mobile devices. The submission of information about the sitemap, though shown here as a manual webpage operation, may also be automated, such that an application may be programmed to submit the site map information to the remote server, and the user merely needs to select a command or otherwise make an indication that the sitemap should be submitted to the remote server.
FIG. 13 is an exemplary screen shot showing a display for adding a mobile sitemap to a search system. This display may be shown, for example, when a user has selected to provide a mobile sitemap on the display ofFIG. 12. Again, the user is provided with an opportunity to enter the URL of the sitemap. In addition, on this screen, the user is able to specify (e.g., via radio button selection) a format or formats for the documents at the website associated with the sitemap. For example, WML and XHTML are standards defining the format for content authored for viewing on particular mobile communication devices such as cellular telephones. Alternatively, certain PDAs have larger screens than do most telephones, so authors may direct their content to such screens. In addition, a derivative of HTML known as cHTML, or iMode, has been developed by telecommunication company NTT DoCoMo for mobile devices. Thus, an author may write or format for one or more of these formats, and may be given the opportunity to associate a sitemap with documents in the appropriate format so that the server selects a crawler that accurately reads those documents.
FIG. 14 is an exemplary screen shot showing a display for viewing and managing sitemaps identified with a user. This display may allow a busy webmaster to keep track of the progress of the submission of various sitemaps. In general, the display shows a list of all sitemaps (by location and name) that have been submitted, the type (mobile or web) of the documents associated with the sitemaps, the time since the sitemap was first identified by the user and since the remote server last downloaded the sitemap, and the status of the sitemap. For example, where errors have occurred in reading the sitemap, such as if the sitemap does not follow a predetermined format, the status of the sitemap may be listed as “parsing error.” Alternatively, or in addition, error may be indicated to a user via messaging, such as e-mail or instant messaging, so that the user may immediately know if there has been a problem.
FIG. 15 is a block diagram illustrating awebsite server1500. The website server1500 (or “web server”) typically includes one or more processing units (CPU's)1502, one or more network or other communications interfaces1504,memory1510, and one or more communication buses orsignal lines1512 for interconnecting these components. Thewebsite server1500 optionally may include auser interface1505, which may comprise a display device, mouse, and/or a keyboard. Thememory1510 includes high-speed random access memory, such as DRAM, SRAM, DDR RAM or other random access solid state memory devices; and may include non-volatile memory, such as one or more magnetic disk storage devices, optical disk storage devices, flash memory devices, or other non-volatile solid state storage devices.
Memory1510 may optionally include one or more storage devices remotely located from the CPU(s)202 (e.g., network attached storage). In some embodiments, the memory210 stores the following programs, modules and data structures, or a subset thereof:
- anoperating system1514 that includes procedures for handling various basic system services and for performing hardware dependent tasks;
- anetwork communication module1516 that is used for connecting thewebsite server1500 to other computers via the one or more communication network interfaces1504 and one or more communication networks, such as the Internet, other wide area networks, local area networks, metropolitan area networks, and so on;
- asitemap generation module106 that generates sitemaps;
- sitemap control parameters104 that control or guide sitemap generation;
- asitemap index112 that lists URLs of sitemaps stored at the website server200;
- one or more sitemap(s)114 that list URLs of documents that may be crawled; and
- awebsite file system102 that stores and organizes documents.
Each of the above identified elements may be stored in one or more of the previously mentioned memory devices, and corresponds to a set of instructions for performing a function described above. The above identified modules or programs (i.e., sets of instructions) need not be implemented as separate software programs, procedures or modules, and thus various subsets of these modules may be combined or otherwise rearranged in various embodiments. In some embodiments,memory1510 may store a subset of the modules and data structures identified above. Furthermore,memory1510 may store additional modules and data structures not described above.
In practice, and as recognized by those of ordinary skill in the art, items shown separately in the figures above could be combined and some items could be separated. For example, some items shown separately in the figures could be implemented on single servers and single items could be implemented by one or more servers. As recognized by those of ordinary skill in the art, a website may be implemented on a single server, such as a web server, or on a plurality of servers, such as a plurality of web servers. The actual number of servers used to implement a website server or a crawler system, or other system, and how features are allocated among them, will vary from one implementation to another, and may depend in part on the amount of data traffic that the system must handle during peak usage periods as well as during average usage periods. For convenience of explanation, websites will be described below as if they are implemented on a single web server.
A number of embodiments of the invention have been described. Nevertheless, it will be understood that various modifications may be made without departing from the spirit and scope of the invention. For example, the steps discussed above may be performed in an order other than that shown, and certain steps may be removed or added. Accordingly, other embodiments are within the scope of the following claims.