Mechanism for crawling e-commerce resource pages on the web

By automatically adding products to the shopping cart and accessing the checkout page using Get efficiency and accuracy.

CN112384940BActive Publication Date: 2024-09-17PAYPAL INC
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN201980043893.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2018-06-29
Filing Date
2019-06-28
Publication Date
2024-09-17
Estimated Expiration
2039-06-28

AI Technical Summary

Technical Problem

Existing web crawlers have difficulty accessing the checkout page of e-commerce websites because products need to be added to the shopping cart to access the page, resulting in the inability to effectively inspect elements on the checkout page during the web crawling process.

Method used

Implement validity checks on checkout page elements by identifying and using x-paths to automatically add products to a digital shopping cart and access the checkout page.

Benefits of technology

It realizes that the web crawler can automatically access and check the checkout page of the e-commerce website, solves the problem of being unable to access the checkout page in the existing technology, and improves the efficiency and accuracy of web crawling.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112384940B_ABST
    Figure CN112384940B_ABST
Patent Text Reader

Abstract

A computer system identifies a platform corresponding to a first resource, wherein the first resource includes one or more resource pages. The computer system determines one or more x-paths corresponding to the identified platform. The computer system uses at least a first x-path of the one or more x-paths to add a product to a digital shopping cart associated with the first resource. In response to adding the product to the digital shopping cart associated with the first resource, the computer system uses at least a second x-path of the one or more x-paths to access a first resource page of the one or more resource pages, wherein the first resource page is a checkout page. The computer system determines whether one or more elements located within the first resource page are valid.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] CROSS-REFERENCE TO RELATED APPLICATIONS

[0002] This application is a continuation of and claims priority to U.S. Patent Application No. 16 / 023,616 filed on June 29, 2018, which is incorporated herein by reference in its entirety. Technical Field

[0003] The present disclosure relates to e-commerce resource pages, and more particularly, the present disclosure relates to a more efficient way to web crawl e-commerce resource pages. Background Art

[0004] Web crawlers are extremely useful tools for certain tasks such as web indexing and updating web content. Web crawlers usually start with a list of uniform resource locators (URLs) to be visited, which can sometimes be referred to as "seeds". As the web crawler visits these URLs, it identifies all hyperlinks in the page and adds them to the list of URLs to be visited, thereby storing the list in a data structure called a "crawl frontier". However, a major disadvantage of using a web crawler is that access to certain e-commerce web pages such as checkout pages may not be easy to access, because in order to access the checkout page, the associated shopping cart must usually have items such as products in it. It would be advantageous to have a mechanism that allows a web crawler to access all pages of an e-commerce website. BRIEF DESCRIPTION OF THE DRAWINGS

[0005] Figure 1 A web crawler system is illustrated according to an embodiment.

[0006] Figure 2 , Figure 3 and Figure 4 According to the embodiment, Figure 1 A flowchart of the operation of a web crawler program, the operation comprising: identifying one or more x-paths corresponding to a platform, and further utilizing the one or more x-paths to access a checkout page and determine whether one or more elements on the checkout page need to be updated.

[0007] Figure 5 A specific example in which the web crawler 112 identifies multiple x-paths to access a checkout page is illustrated according to an embodiment.

[0008] Figure 6 According to the embodiment, Figure 1 Block diagram of the hardware components of a web crawler system. DETAILED DESCRIPTION

[0009] Embodiments of the present disclosure provide a system, method, and program product. A computer system identifies a platform corresponding to a first resource, wherein the first resource includes one or more resource pages. The computer system determines one or more x-paths corresponding to the identified platform. The computer system uses at least a first x-path of the one or more x-paths to add a product to a digital shopping cart associated with the first resource. In response to adding the product to the digital shopping cart associated with the first resource, the computer system uses at least a second x-path of the one or more x-paths to access a first resource page of the one or more resource pages, wherein the first resource page is a checkout page. The computer system determines whether one or more elements located within the first resource page are valid.

[0010] In an example embodiment, the present disclosure describes a solution that describes identifying a platform (such as "Shopify", which is a registered trademark of Shopify, Inc.) corresponding to a website, and further identifying one or more x-paths corresponding to the platform. In an example embodiment, the present disclosure also describes the use of a set of x-paths that can include x-paths corresponding to the following items respectively in order to verify one or more elements on the website (such as advertisements, banners, user interface elements, etc.): product list page, product page, "add to cart" button, and checkout page. As stated above, currently, since the checkout page can only be accessed once an item such as a product has been added to a digital shopping cart, a web crawler may not be able to access the checkout page. The present disclosure describes a solution to this problem by describing an automated system in which a web crawler may be able to identify a set of x-paths that can be used to automatically add products to a digital shopping cart and then further access the checkout page so that the validity of one or more elements on the checkout page can be checked.

[0011] Furthermore, in further embodiments, the present disclosure describes a solution for performing a similar process on an application.

[0012] Embodiments of the present disclosure will now be described in detail with reference to the accompanying drawings.

[0013] Figure 1 A web crawler system 100 is illustrated according to an embodiment. In an example embodiment, the web crawler system 100 includes a server 110, a web server 120, and a web server 140 interconnected via a network 130.

[0014] In an example embodiment, network 130 is the Internet, which represents a global collection of networks and gateways for supporting communications between devices connected to the Internet. Network 130 may include, for example, wired, wireless, or fiber optic connections. In other embodiments, network 130 may be implemented as an intranet, a Bluetooth network, a local area network (LAN), or a wide area network (WAN). In general, network 130 may be any combination of connections and protocols that will support communications between computing devices (e.g., between server 110 and web server 140).

[0015] In an example embodiment, web server 120 includes website 122. In an example embodiment, web server 120 can be a desktop computer, a laptop computer, a tablet computer, a mobile device, a handheld device, a thin client, or any other electronic device or computing system capable of sending data to and receiving data from other computing devices such as server 110 via network 130. Although not shown, web server 120 can optionally include a cluster of servers that execute the same software to jointly process requests such as those distributed by front-end servers and load balancers. In an example embodiment, web server 120 is a computing device optimized for supporting websites (such as website 122) residing on web server 120 and for supporting network requests related to websites residing on web server 120. Web server 120 is described in more detail with respect to the figures.

[0016] In an example embodiment, website 122 is a collection of files, including, for example, HTML files, CSS files, image files, and JavaScript files. Website 122 may also include other resource files such as audio files and video files. Website 122 is described in more detail with respect to the various figures.

[0017] In an example embodiment, web server 140 includes website 142. In an example embodiment, web server 140 can be a desktop computer, a laptop computer, a tablet computer, a mobile device, a handheld device, a thin client, or any other electronic device or computing system capable of receiving data from other computing devices such as server 110 via network 130 and sending data thereto. In addition, in an example embodiment, web server 140 is a computing device optimized for supporting websites (such as website 142) residing on web server 140 and for supporting network requests related to websites residing on web server 140. Although not shown, optionally, web server 140 can include a cluster of servers that execute the same software to jointly process requests such as those distributed by front-end servers and load balancers. Web server 140 is described in more detail with respect to each figure.

[0018] In an example embodiment, website 142 is a collection of files, including, for example, HTML files, CSS files, image files, and JavaScript files. Website 142 may also include other resources such as audio files and video files. Website 142 is described in more detail with respect to the various figures.

[0019] In an example embodiment, server 110 includes web crawler 112, browser 114, element database 118, and x-path database 119. In an example embodiment, server 110 can be a desktop computer, laptop computer, tablet computer, mobile device, handheld device, thin client, or any other electronic device or computing system that can receive data from other computing devices such as web server 120 via network 130 and send data to it. In addition, in an example embodiment, server 110 is a computing device optimized for supporting programs and databases (such as web crawler 112 and element database 118) residing on server 110. Although not shown, optionally, server 110 can include a cluster of servers that execute the same software to jointly process requests distributed by front-end servers and load balancers. Server 110 is described in more detail with respect to each figure.

[0020] In an example embodiment, the browser 114 is an application capable of communicating with other computing devices to transmit requests and receive information. In addition, the browser 114 is capable of displaying the received information to a user of the server 110. In an example embodiment, the browser 114 can transmit a request to a website 142 and further receive web page information from the website 142. In addition, in one or more embodiments, the web crawler 112 can utilize the functionality of the browser 114 to access one or more websites, such as the website 122 and / or the website 142. The browser 114 is described in more detail with respect to the various figures.

[0021] In an example embodiment, the element database 118 is a database that includes a list of websites that correspond to one or more elements (such as banner ads for a particular company) for an entity (or more than one entity). In addition, the database 118 may additionally represent the elements and the location of the elements within each specific website. For example, the database 118 may include a list of websites that are known to have banner ads corresponding to financial companies. In addition, the database 118 may include information identifying the last time / date that each banner ad was checked for validity and further identifying the last known status (valid, needs to be updated, etc.). In addition, the element database 118 may include a list of currently valid elements corresponding to an entity or group of entities.

[0022] In an example embodiment, the x-path database 119 includes information including one or more platforms and one or more x-paths corresponding to each of the one or more platforms. In addition, in an example embodiment, the one or more platforms may include, for example, Shopify ( is a trademark of Shopify, Inc.) that can be used to create a website such as an e-commerce website. For example, a first platform can correspond to a first set of x-paths for accessing a page associated with a listing of products, a second set of x-paths for accessing a product page, a third set of x-paths for adding a product to a digital shopping cart, and a fourth set of x-paths for accessing a checkout page. In an example embodiment, the web crawler 112 can access the x-path database 119 to identify the x-path(s) corresponding to a particular platform associated with the website being analyzed. The element database 118 and the x-path database 119 are described in more detail with respect to the figures.

[0023] In an example embodiment, web crawler 112 is a software application that can browse the Internet to verify one or more elements present in a website. In an example embodiment, web crawler 112 can access element database 118 to identify one or more websites that need to be analyzed. In addition, in an example embodiment, web crawler 112 can identify the platform associated with the website being analyzed. In addition, web crawler 112 can access x-path database 119 to identify one or more x-paths associated with adding items such as products to a shopping cart and further accessing the checkout page of the website. Additionally, in an example embodiment, web crawler 112 can analyze elements on the website to identify whether the element is valid (or needs to be updated). Web crawler 112 is described in more detail with respect to each figure.

[0024] Additionally, in one or more embodiments, the web crawler 112 may utilize an application programming interface (API) to communicate with the browser 114 and further communicate with the database 118 .

[0025] Figures 2 to 41 is a flow chart illustrating the operation of the web crawler 112 according to an embodiment, including the following steps: when identifying one or more x-paths corresponding to a platform, and further utilizing the one or more x-paths to access a checkout page, and determining whether one or more elements on the checkout page need to be updated. In an example embodiment, the web crawler 112 identifies a platform corresponding to a website to be analyzed (such as website 122 or website 142) (step 202). In an example embodiment, the web crawler 112 detects the platform by interacting with a web application such as BuildingWith( is a registered trademark of BuildedWith, Inc.) to identify the platform corresponding to the website to be analyzed. In other embodiments, the web crawler 112 may have the ability to search for specific technology signatures and HTML tags within the source code associated with the website, and further may reference a database including one or more platforms and corresponding specific technology signatures / HTML tags to identify the platform associated with the website.

[0026] In an example embodiment, the web crawler 112 determines one or more x-paths corresponding to the identified platform (step 204). In an example embodiment, the web crawler 112 accesses the x-path database 119 and identifies one or more x-paths corresponding to the platform. In an example embodiment, the one or more x-paths may include (one or more) x-paths associated with visiting a product listing page, (one or more) x-paths associated with visiting a product page, (one or more) x-paths associated with visiting an add to cart element, and (one or more) x-paths associated with visiting a checkout page.

[0027] The web crawler 112 determines whether the (one or more) x-paths associated with (accessing) the product list page are effective (decision 206). In an exemplary embodiment, one or more x-paths may be associated with accessing the product list page. Therefore, in an exemplary embodiment, the web crawler 112 may attempt to access the product list page using a first x-path (obtained from the x-path database 119) in the one or more x-paths associated with the product list page, and if the page is not successfully accessed, the web crawler 112 determines that the first x-path is ineffective (the web crawler 112 may then update the x-path database 119 to indicate that the first x-path is ineffective). In addition, in an exemplary embodiment, if there is more than one x-path associated with the product list page, the web crawler 112 may then attempt to access the product list page using a second x-path in the one or more x-paths associated with the product list page to determine whether the second x-path is effective. If the second x-path does not work, the web crawler 112 can determine whether other x-paths associated with accessing the product list work (in a similar manner as described above) until an x-path that works is identified or until all x-paths have been tested. If at least one of the one or more x-paths can be used to access the product list page, the web crawler 112 determines that the (one or more) x-paths associated with the product list page work. If at least one of the one or more x-paths cannot be used to access the product list page, the web crawler 112 determines that the (one or more) x-paths associated with the product list page do not work.

[0028] If the web crawler 112 determines that the x-path associated with the product list page does not work (decision 206, "no" branch), the web crawler 112 performs a normal web crawling process (step 208). In an example embodiment, the normal web crawling process may include indexing and validating interface elements on pages accessible by the web crawler 112.

[0029] If the web crawler 112 determines that the x-path(s) associated with the product listing page is functional (decision 206, "yes" branch), the web crawler 112 utilizes the x-path to access the product listing page (step 210).

[0030] The web crawler 112 determines whether the (one or more) x-paths associated with (accessing) the first product page are functional (decision 212). In an exemplary embodiment, the product list page may include one or more interface elements corresponding to one or more products. The web crawler 112 may attempt to access the page associated with the first product using the x-path associated with the page of the first product on the product list page (obtained from the x-path database 119), and if the page is not successfully accessed, the web crawler 112 determines that the x-path associated with the first product page is inoperative (the web crawler 112 may then update the x-path database 119 to indicate that the x-path is inoperative). In addition, in an exemplary embodiment, if there is more than one x-path associated with the first product page in the x-path database 119, the web crawler 112 may then attempt to access the first product page using other x-paths associated with the first product page (in a similar manner as described above) until an x-path that works is identified or until all x-paths have been tested. If the first product page can be accessed using at least one of the one or more x-paths, the web crawler 112 determines that the x-path associated with the first product page is functional. If at least one of the one or more x-paths cannot be used to access the first product page, the web crawler 112 determines that the x-path associated with the first product page is inoperative.

[0031] If the web crawler 112 determines that the (one or more) x-path associated with the first product page does not work (decision 212, "no" branch), the web crawler 112 determines whether the (one or more) x-path associated with another product page works (decision 214). As described above, a product list page may include a list of multiple products, each of which has a corresponding page. Therefore, in an example embodiment, the web crawler 112 can determine whether the (one or more) x-path associated with another product page works in the same manner as described above (in the discussion of the first product page). In addition, in an example embodiment, each of the product pages can be associated with one or more x-paths, and therefore, each of the one or more x-paths can be used to attempt to access the corresponding product page in order to determine whether the x-path works.

[0032] If the web crawler 112 determines that the x-path(s) associated with the other product pages are not functional (decision 214, "no" branch), the web crawler 112 performs a normal web crawling process (step 208).

[0033] If the web crawler 112 determines that the x-path(s) associated with the first product page is functional (decision 212, "yes" branch), or if the web crawler 112 determines that the x-path(s) associated with another product page is functional (decision 214, "yes" branch), the web crawler 112 utilizes the x-path to access the corresponding product page, i.e., the first product page (step 216).

[0034] The web crawler 112 determines whether the x-path(s) associated with (accessing) the “add to cart” element is functional (decision 302). In an example embodiment, one or more x-paths may be associated with accessing the “add to cart” element. Therefore, in an example embodiment, the web crawler 112 may attempt to access the “add to cart” element using a first x-path (obtained from the x-path database 119) of the one or more x-paths associated with the “add to cart” element, and if the “add to cart element” is not successfully accessed, the web crawler 112 determines that the first x-path is not functional (the web crawler 112 may then update the x-path database 119 to indicate that the first x-path is not functional). Furthermore, in an example embodiment, if there is more than one x-path associated with the "add to cart" element in the x-path database 119, the web crawler 112 may attempt to access the "add to cart" element by utilizing other x-paths associated with the "add to cart" element (in a similar manner as described above) until a functional x-path is identified or until all x-paths have been tested. If at least one of the one or more x-paths can be used to access the "add to cart" element, the web crawler 112 determines that the x-path associated with the "add to cart" element is functional. If at least one of the one or more x-paths cannot be used to access the "add to cart" element, the web crawler 112 determines that the x-path associated with the "add to cart" element is inoperative.

[0035] In an example embodiment, an "add to cart" element may refer to a user interface element on a product page that can be used to add a product to a digital shopping cart. For example, a product page corresponding to a first product may include an "add to cart" user interface element that, if selected, adds the first product to a digital shopping cart. Thus, the web crawler 112 may utilize the x-path(s) associated with the "add to cart" element to attempt to access the "add to cart" element on the product page in order to add the product to the digital shopping cart.

[0036] If the web crawler 112 determines that the x-path associated with the "add to cart" element does not work (decision 302, "no" branch), the web crawler 112 performs a normal web crawling process (step 306, which is the same as step 208). In an example embodiment, the normal web crawling process may include indexing and validating interface elements on pages accessible by the web crawler 112.

[0037] If the web crawler 112 determines that the x-path(s) associated with the "add to cart" element is functional (decision 302, "yes" branch), the web crawler 112 utilizes the x-path to access the "add to cart" element (step 304), which may result in adding the product to the digital shopping cart. In an example embodiment, the term "product" as used herein may refer to a product (such as a soap bar, detergent, event tickets, etc.) and / or a service (such as a subscription).

[0038] The web crawler 112 determines whether the (one or more) x-paths associated with (accessing) the digital shopping cart page are functional (decision 308). In an exemplary embodiment, one or more x-paths may be associated with accessing the digital shopping cart page. Therefore, in an exemplary embodiment, the web crawler 112 may attempt to access the digital shopping cart page using the first x-path (obtained from the x-path database 119) of the one or more x-paths associated with the digital shopping cart page, and if the digital shopping cart page is not successfully accessed, the web crawler 112 determines that the first x-path is inoperative (the web crawler 112 may then update the x-path database 119 to indicate that the first x-path is inoperative). In addition, in an exemplary embodiment, if there is more than one x-path associated with the digital shopping cart page in the x-path database 119, the web crawler 112 may then attempt to access the digital shopping cart page by utilizing other x-paths associated with the digital shopping cart page (in a similar manner as described above) until an x-path that works is identified or until all x-paths have been tested. If at least one of the one or more x-paths can be used to access the digital shopping cart page, the web crawler 112 determines that the x-path associated with the digital shopping cart page is functional. If at least one of the one or more x-paths cannot be used to access the digital shopping cart page, the web crawler 112 determines that the x-path associated with the digital shopping cart page is inoperative.

[0039] If the web crawler 112 determines that the x-path(s) associated with the digital shopping cart page is not functional (decision 308, "no" branch), the web crawler 112 performs a normal web crawling process (step 306, which is the same as step 208). In an example embodiment, the normal web crawling process may include indexing and validating interface elements on pages accessible by the web crawler 112.

[0040] If the web crawler 112 determines that the x-path(s) associated with the digital shopping cart page is functional (decision 308, "yes" branch), the web crawler 112 utilizes the x-path to access the digital shopping cart page (step 310).

[0041] The web crawler 112 determines whether the (one or more) x-paths associated with (accessing) the checkout page work (decision 312). In an exemplary embodiment, one or more x-paths may be associated with accessing the checkout page. Therefore, in an exemplary embodiment, the web crawler 112 may attempt to access the checkout page using the first x-path (obtained from the x-path database 119) in the one or more x-paths associated with the checkout page, and if the checkout page is not successfully accessed, the web crawler 112 determines that the first x-path does not work (the web crawler 112 may then update the x-path database 119 to indicate that the first x-path does not work). In addition, in an exemplary embodiment, if there is more than one x-path associated with the checkout page in the x-path database 119, the web crawler 112 may then attempt to access the checkout page (in a similar manner as described above) by utilizing other x-paths associated with the checkout page, until an x-path that works is identified or until all x-paths have been tested. If at least one of the one or more x-paths can be used to access the checkout page, the web crawler 112 determines that the x-path associated with the checkout page works. If at least one of the one or more x-paths cannot be used to access the checkout page, the web crawler 112 determines that the x-path associated with the checkout page does not work.

[0042] If the web crawler 112 determines that the x-path(s) associated with the checkout page does not work (decision 312, "no" branch), the web crawler 112 performs a normal web crawling process (step 306, which is the same as step 208). In an example embodiment, the normal web crawling process may include indexing and validating interface elements on pages accessible by the web crawler 112.

[0043] If the web crawler 112 determines that the x-path(s) associated with the checkout page is functional (decision 312, "yes" branch), the web crawler 112 utilizes the x-path to access the checkout page (step 314).

[0044] The web crawler 112 identifies one or more elements on the checkout page (step 402). In an example embodiment, the web crawler 112 may identify one or more elements corresponding to a particular entity, such as a banner ad for a particular company. In other embodiments, the web crawler 112 may identify one or more elements corresponding to more than one entity. In an example embodiment, the web crawler 112 may reference an element database 118 to identify one or more element types corresponding to a website being analyzed (such as website 122). The web crawler 112 may then utilize the information in the element database 118 to identify whether any of the one or more element types corresponding to the website exists on the checkout page. In an example embodiment, the web crawler 112 may search (within the HTML code) for element types such as links and / or images on the checkout page. For example, the web crawler 112 may search for keywords corresponding to element types (such as keywords corresponding to banner ads). In addition, in these one or more embodiments, the web crawler 112 may search for keywords such as entity names within the HTML code corresponding to links and / or images to determine whether these links and / or images correspond to an entity or one or more entities. In one or more embodiments, instead of searching for keywords corresponding to the identified element type, the web crawler 112 can search for keywords corresponding to the entity (or more than one entity) to identify one or more elements on the checkout page. In an additional example, the web crawler 112 can also search for keywords corresponding to previously used banner ads (outdated banner ads). In other words, if the entity name has changed, the web crawler 112 can search for banner ads that include the entity name as well as the previously used entity name.

[0045] The web crawler 112 can determine whether one or more elements identified on the checkout page are valid (decision 404). In an example embodiment, the web crawler 112 can determine whether the one or more elements identified are valid by comparing the one or more elements identified with a column of valid elements contained in the element database 118. In an example embodiment, the element database 118 may include a series of valid elements corresponding to each entity (or entity set). For example, the element database 118 may include a column of valid banner ads corresponding to the first entity. In this example, the element database 118 can compare the one or more elements identified (which may be banner ads corresponding to the first entity) with the column of valid banner ads corresponding to the first entity to determine whether the one or more elements identified are valid. In addition, in an example embodiment, the web crawler 112 can identify the element type (banner ads, etc.) corresponding to each of the one or more elements, and compare it with the valid elements in the element database 118 that also correspond to the element type (i.e., compare banner ads with banner ads).

[0046] If the web crawler 112 determines that one or more elements identified on the checkout page are valid (decision 404, "yes" branch), the web crawler 112 continues to perform web crawling functions for other web pages or another website. In addition, the web crawler 112 can update the element database 118 to indicate that one or more elements are valid. If the web crawler 112 determines that at least one of the one or more elements identified on the checkout page is invalid (decision 404, "no" branch), the web crawler 112 updates the element database 118 to indicate that the at least one element is invalid (step 406). In an example embodiment, if there is no entry for the at least one element, an entry is created in the element database 118 in association with the corresponding website (and entity), and further indicates that the element is invalid. This indication may draw the attention of the administrator to the element, and the administrator may work to update the element to make it valid (or delete the element from the website). For example, if the web crawler 112 determines that an element (associated with the first entity) present on the first website (owned by the second entity) is invalid, the web crawler 112 can update the element database 118 to indicate that the element located on the first website and associated with the first entity is invalid and therefore needs attention. In addition, if at least one element of the one or more elements is determined to be valid, the web crawler 112 can update the element database 118 to indicate that the at least one element is valid.

[0047] Although in Figure 2 , Figure 3 ,and Figure 4, but while visiting product listing pages, product pages, and other pages of a website (such as website 122 or website 142), the web crawler 112 can perform validation techniques to determine whether one or more elements corresponding to the visited page are valid (in a similar manner as described above). The web crawler 112 can further update the element database 118 corresponding to the associated website (and entity) based on the validation determination.

[0048] Furthermore, although in the example embodiment, the web crawler 112 accesses the x-path database 119 and determines the x-paths corresponding to the identified platform before using one or more x-paths, in other embodiments, the web crawler 112 may access the x-path database 119 and determine each x-path type as needed. For example, the web crawler 112 may access the x-path database 119 to determine the x-path(s) associated with visiting a product listing page, and may determine the x-path associated with visiting a first product page after visiting the product listing page, and then continue until a checkout page is reached, as described above.

[0049] In addition, in an example embodiment, multiple x-paths for each page (product list page, each product page, etc.) can be determined by an administrator, or can be automatically determined by the web crawler 112. For example, the web crawler 112 can automatically identify variants of each x-path type by utilizing machine learning techniques (the x-path corresponding to the product list page can be of the first type, and the x-path corresponding to the product page can be of the second type). For example, an administrator can manually mark one or more x-paths used for a collection of websites corresponding to one platform or multiple platforms (e.g., mark the x-path with information describing the corresponding x-path type). The web crawler 112 can then use this information to identify potential variants of each x-path type.

[0050] In addition, in an example embodiment, the x-path database 119 may additionally include one or more x-paths corresponding to removing products added to the digital shopping cart. In a similar manner as described above, the web crawler 112 may attempt to utilize each of these one or more x-paths until a working x-path is identified. The web crawler 112 may utilize the determined working x-path to remove products added to the digital shopping cart.

[0051] Figure 5According to the embodiment, a specific example of a web crawler 112 identifying multiple x-paths to access a checkout page is illustrated. In an example embodiment, the web crawler 112 can navigate to a website, and further can reference the x-path database 119 to identify one or more x-paths corresponding to a platform associated with the website (the one or more x-paths may include the x-path searched below). As described below, the x-path can be used to try to access the checkout page. In order to navigate to the product list page of the website, the web crawler 112 can search for a link with a " / collections" subdomain within the HTML code of the web page, or in other words, search for a link with xpath:'a[href*=" / collections"]' (step 502). If the web crawler 112 is able to identify a link with xpath:'a[href*=" / collections"]', the web crawler 112 uses the link to access the product list page. Further, in order to navigate to the product page corresponding to the product listed on the product list page, the web crawler 112 can search for a link with xpath:'a[href*=" / products"]' (step 504). If the web crawler 112 is able to identify a link with xpath:'a[href*=" / products"]', the web crawler uses the link to access the corresponding product page.

[0052] To access the add to cart element (add a product to a digital shopping cart), the web crawler 112 may search for a link with x-path:'form[action*=:“ / cart”]'*[type*=”submit”]' (step 506). If the web crawler 112 is able to identify a link with x-path:'form[action*=:“ / cart”]'*[type*=”submit”]', the web crawler utilizes the link to access the add to cart element. To access the digital shopping cart page, the web crawler 112 may search for a link with x-path:'a[ref*=“ / cart”]' (step 508). If the web crawler 112 is able to identify a link with x-path:'a[ref*=“ / cart”]', the web crawler 112 may utilize the link to access the digital shopping cart page.

[0053] To access the checkout page, the web crawler 112 may search for a link with x-path:'a[ref*=" / checkout"]' (step 510). If the web crawler 112 is able to identify a link with x-path:'a[ref*=" / checkout"]', the web crawler 112 may utilize the link to access the checkout page. Additionally, in one or more embodiments, the web crawler 112 may search for x-path:7cart / change?line=1&quantity=o' to empty the digital shopping cart.

[0054] The foregoing description of various embodiments of the present disclosure has been presented for purposes of illustration and description. The foregoing description is not intended to be exhaustive, nor is the present disclosure limited to the precise form disclosed. Many modifications and variations are possible. Such modifications and variations that may be apparent to those skilled in the art are intended to be included within the scope of the present disclosure as defined by the appended claims.

[0055] Figure 6 According to an embodiment, a method for Figure 1 1 is a block diagram of components of a computing device in a web crawler system 100. It should be appreciated that Figure 6 This merely provides an illustration of one embodiment and does not imply any limitation with regard to the environments in which different embodiments may be implemented.Many modifications may be made to the depicted environment.

[0056] The computing device may include one or more processors 602, one or more computer-readable RAMs 604, one or more computer-readable ROMs 606, one or more computer-readable storage media 608, device drivers 612, read / write drivers or interfaces 614, and network adapters or interfaces 616, all interconnected via a communications fabric 618. Communications fabric 618 may be implemented with an architecture designed to pass data and / or control information between processors (such as microprocessors, communications and network processors, etc.), system memory, peripheral devices, and any other hardware components within the system.

[0057] One or more operating systems 610 and one or more application programs 611 (e.g., web crawler 112) are stored on one or more of the computer-readable storage media 608 for execution by one or more of the processors 602 and executed by utilizing one or more of the corresponding RAMs 604 (which typically include cache memory). In the illustrated embodiment, each of the computer-readable storage media 608 can be a disk storage device of an internal hard drive, a CD-ROM, a DVD, a memory stick, a tape, a disk, an optical disk, a semiconductor storage device such as a RAM, a ROM, an EPROM, a flash memory, or any other computer-readable tangible storage device that can store computer programs and digital information.

[0058] The computing device may also include an R / W drive or interface 614 for reading from and writing to one or more portable computer-readable storage media 626. Applications 611 on the computing device may be stored in one or more of the portable computer-readable storage media 626, read via a corresponding R / W drive or interface 614, and loaded into a corresponding computer-readable storage medium 608.

[0059] The computing device may also include a network adapter or interface 616, such as a TCP / IP adapter card or a wireless communication adapter (such as a 4G wireless communication adapter using OFDMA technology). Application programs 611 on the computing device may be downloaded from an external computer or external storage device to the computing device via a network (e.g., the Internet, a local area network or other wide area network or wireless network) and the network adapter or interface 616. The program may be loaded onto a computer-readable storage medium 608 from the network adapter or interface 616. The network may include copper wires, optical fibers, wireless transmissions, routers, firewalls, switches, gateway computers, and / or edge servers.

[0060] The computing device may also include a display screen 620 and external devices 622, which may include, for example, a keyboard, a computer mouse, and / or a touchpad. The device driver 612 interfaces to the display screen 620 for imaging, to the external devices 622, and / or to the display screen 620 for pressure sensing alphanumeric character typing and user selection. The device driver 612, the R / W driver or interface 614, and the network adapter or interface 616 may include hardware and software (stored on the computer-readable storage medium 608 and / or ROM 606).

[0061] The programs described herein are identified based on the applications in which they are implemented in specific embodiments. However, it should be appreciated that any specific program terminology herein is used merely for convenience, and thus the present disclosure should not be limited to use only in any specific application identified and / or implied by such terminology.

[0062] Based on the foregoing, a computer system, method, and computer program product have been disclosed. However, many modifications and substitutions may be made without departing from the scope of the present disclosure. Therefore, various embodiments have been disclosed by way of example rather than limitation.

[0063] Various embodiments of the present disclosure may be systems, methods, and / or computer program products. The computer program product may include one or more computer-readable storage media having computer-readable program instructions thereon for causing a processor to execute various aspects of the present disclosure.

[0064] Computer readable storage medium can be a tangible device that can retain and store instructions for use by instruction execution devices. Computer readable storage medium can be, for example, but not limited to, electronic storage devices, magnetic storage devices, optical storage devices, electromagnetic storage devices, semiconductor storage devices, or any suitable combination of the foregoing. A non-exhaustive list of more specific examples of computer readable storage medium includes the following: portable computer floppy disk, hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), static random access memory (SRAM), portable compact disk read-only memory (CD-ROM), digital versatile disk (DVD), memory stick, floppy disk, mechanical encoding devices such as punch cards or raised structures in grooves with instructions recorded thereon, and any suitable combination of the foregoing. Computer readable storage medium as used herein should not be interpreted as being a transient signal itself, such as radio waves or other free propagating electromagnetic waves, electromagnetic waves propagated by waveguides or other transmission media (e.g., light pulses by optical fiber cables) or electrical signals transmitted by wires.

[0065] The computer-readable program instructions described herein can be downloaded from a computer-readable storage medium to a corresponding computing / processing device or downloaded to an external computer or external storage device via a network (e.g., the Internet, a local area network, a wide area network, and / or a wireless network). The network can include copper transmission cables, optical transmission fibers, wireless transmissions, routers, firewalls, switches, gateway computers, and / or edge servers. The network adapter card or network interface in each computing / processing device receives computer-readable program instructions from the network and forwards these computer-readable program instructions for storage in a computer-readable storage medium in the corresponding computing / processing device.

[0066] The computer-readable program instructions for performing the operation of the present disclosure can be assembler instructions, instruction set architecture (ISA) instructions, machine instructions, machine-related instructions, microcode, firmware instructions, state setting data, configuration data for integrated circuits, or source code or object code written in any combination of one or more programming languages, including object-oriented programming languages ​​such as Smalltalk, C++, and process programming languages ​​such as "C" programming language or similar programming languages. The computer-readable program instructions can be executed completely on the user's computer, partially on the user's computer, as an independent software package, partially on the user's computer and partially on a remote computer or completely on a remote computer or server. In the latter scenario, the remote computer can be connected to the user's computer through any type of network (including local area network (LAN) or wide area network (WAN)), or a connection to an external computer can be made (for example, by using an Internet service provider via the Internet). In some embodiments, the electronic circuit including, for example, a programmable logic circuit, a field programmable gate array (FPGA), or a programmable logic array (PLA) can execute the computer-readable program instructions to personalize the electronic circuit by utilizing the state information of the computer-readable program instructions, so as to perform various aspects of the present disclosure.

[0067] Various aspects of the present disclosure are described herein with reference to flowchart illustrations and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present disclosure. It should be understood that each block in the flowchart illustration and / or block diagram and the combination of blocks in the flowchart illustration and / or block diagram can be implemented by computer-readable program instructions.

[0068] These computer-readable program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device create a means for implementing the functions / behaviors specified in one or more boxes of the flowchart and / or block diagram. These computer-readable program instructions can also be stored in a computer-readable storage medium, which can instruct a computer, a programmable data processing device, and / or other equipment to function in a specific manner, so that the computer-readable storage medium having the instructions stored therein includes an article of manufacture containing instructions for implementing various aspects of the functions / behaviors specified in one or more boxes of the flowchart and / or block diagram.

[0069] Computer-readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device to cause a series of operational steps to be performed on the computer, other programmable apparatus, or other device to produce a computer-implemented process, so that the instructions executed on the computer, other programmable apparatus, or other device implement the functions / behaviors specified in one or more boxes of the flowchart and / or block diagram.

[0070] The flowcharts and block diagrams in each figure illustrate the architecture, functionality, and operation of the possible implementation methods of the system, method, and computer program product according to various embodiments of the present disclosure. In this regard, each frame in the flowchart or block diagram can represent a module, segment, or part of an instruction, which includes one or more executable instructions for implementing the specified (one or more) logical functions. In some alternative embodiments, the functions indicated in each frame may not occur in the order indicated in each figure. For example, depending on the functionality involved, two frames shown in succession can actually be executed substantially concurrently, or sometimes these frames can be executed in reverse order. It should also be noted that each frame in the block diagram and / or flowchart illustration and the combination of each frame in the block diagram and / or flowchart illustration can be implemented by a system based on special-purpose hardware, and these systems based on special-purpose hardware perform specified functions or behaviors or perform a combination of special-purpose hardware and computer instructions.

Claims

1. A computer system comprising: one or more computer-readable memories storing program instructions; as well as One or more processors, the one or more processors being configured to execute the program instructions to cause the system to perform operations including the following steps: Identifying a platform corresponding to a first resource, wherein the first resource includes one or more resource pages; determining one or more x-paths corresponding to the identified platform; adding a product to a digital shopping cart associated with the first resource using at least a first x-path of the one or more x-paths; In response to adding the product to the digital shopping cart associated with the first resource, accessing a first resource page of the one or more resource pages using at least a second x-path of the one or more x-paths, wherein the first resource page is a checkout page; and determining whether a first set of one or more elements located within the first resource page is valid, Wherein, using at least a first x-path of the one or more x-paths to add the product to the digital shopping cart associated with the first resource comprises: Accessing a product list page using a third x-path among the one or more x-paths; Accessing a product page for the product using a fourth x-path of the one or more x-paths; and The product is added to the digital shopping cart using the first x-path of the one or more x-paths.

2. The computer system of claim 1, wherein the operations further comprise: In response to determining that a first element of the first set of one or more elements located within the first resource page is invalid, an element database is updated to indicate that the first element is invalid.

3. The computer system of claim 1, wherein the operations further comprise: In response to determining that a second element of the first set of one or more elements within the first resource page is valid, an element database is updated to indicate that the second element is valid.

4. The computer system according to claim 1, wherein: Adding the product to the digital shopping cart associated with the first resource using at least a first x-path of the one or more x-paths includes: determining whether a second set of one or more elements located on the product listing page is valid; and A determination is made as to whether a third set of one or more elements located on the product page is valid.

5. The computer system according to claim 1, wherein: Accessing the first resource page using at least a second x-path among the one or more x-paths includes: Using a fifth x-path among the one or more x-paths to attempt to gain access to the first resource page; In response to determining that the fifth x-path of the one or more x-paths cannot be used to gain access to the first resource page, updating an x-path database to indicate that the fifth x-path does not work.

6. The computer system according to claim 1, wherein: Determining the one or more x-paths corresponding to the identified platform includes accessing an x-path database to determine the one or more x-paths corresponding to the identified platform.

7. A non-transitory computer-readable medium storing computer-executable instructions, wherein the computer-executable instructions, in response to being executed by one or more hardware processors, cause the one or more hardware processors to perform operations comprising the following steps: A platform corresponding to the first resource is identified, wherein The first resource includes one or more resource pages; determining one or more x-paths corresponding to the identified platform; Adding a product to a digital shopping cart associated with the one or more resource pages using a first set of x-paths from the one or more x-paths, wherein adding the product to the digital shopping cart associated with the one or more resource pages using the first set of x-paths comprises: Access the product list page using the first x-path in the first set of x-paths; Access a product page for a product using a second x-path in the first set of x-paths; adding the product to the digital shopping cart using a third x-path in the first set of x-paths; In response to adding the product to the digital shopping cart associated with the first resource, accessing a first resource page of the one or more resource pages using a second set of the one or more x-paths, wherein the first resource page is a checkout page; and A determination is made as to whether a first set of one or more elements within the first resource page is valid.

8. The non-transitory computer readable medium of claim 7, the operations further comprising: In response to determining that a first element of the first set of one or more elements located within the first resource page is invalid, an element database is updated to indicate that the first element is invalid.

9. The non-transitory computer readable medium of claim 8, the operations further comprising: In response to determining that a second element of the first set of one or more elements within the first resource page is valid, the element database is updated to indicate that the second element is valid.

10. The non-transitory computer readable medium of claim 7, wherein: Accessing the first resource page of the one or more resource pages by using the second group of x-paths of the one or more x-paths includes: Accessing a digital shopping cart page using a fourth x-path in the second set of x-paths; and The first resource page is accessed using a fifth x-path in the second set of x-paths.

11. The non-transitory computer readable medium of claim 10, wherein: Using the second group of x-paths in the one or more x-paths to access the first resource page in the one or more resource pages also includes: A determination is made as to whether a second set of one or more elements located on the digital shopping cart page is valid.

12. The non-transitory computer readable medium of claim 7, wherein: Utilizing the first set of x-paths to add the product to the digital shopping cart associated with the one or more resource pages includes: determining whether a third set of one or more elements located on the product listing page is valid; and A determination is made as to whether a fourth set of one or more elements located on the product page is valid.

13. The non-transitory computer readable medium of claim 7, wherein: Accessing the first resource page of the one or more resource pages by using a second group of x-paths of the one or more x-paths includes: Using a sixth x-path in the second set of x-paths to attempt to gain access to the first resource page; In response to determining that a sixth x-path in the second set of x-paths cannot be used to gain access to the first resource page, an x-path database is updated to indicate that the sixth x-path does not work.

14. A method comprising: Identifying a platform corresponding to a first resource, wherein the first resource includes one or more resource pages; determining one or more x-paths corresponding to the identified platform; adding a product to a digital shopping cart associated with the first resource using at least a first x-path of the one or more x-paths; In response to adding the product to the digital shopping cart associated with the first resource, accessing a first resource page of the one or more resource pages using at least a second x-path of the one or more x-paths, wherein the first resource page is a checkout page; and determining whether a first set of one or more elements located within the first resource page is valid, Wherein, using at least a first x-path of the one or more x-paths to add the product to the digital shopping cart associated with the first resource comprises: Accessing a product list page using a third x-path among the one or more x-paths; Accessing a product page for a product using a fourth x-path of the one or more x-paths; and The product is added to the digital shopping cart using the first x-path of the one or more x-paths.

15. The method according to claim 14, further comprising: In response to determining that a first element of the first set of one or more elements located within the first resource page is invalid, an element database is updated to indicate that the first element is invalid.

16. The method according to claim 15, further comprising: In response to determining that a second element of the first set of one or more elements within the first resource page is valid, the element database is updated to indicate that the second element is valid.

17. The method according to claim 14, wherein: Adding the product to the digital shopping cart associated with the first resource using at least a first x-path of the one or more x-paths includes: determining whether a second set of one or more elements located on the product listing page is valid; and A determination is made as to whether a third set of one or more elements located on the product page is valid.

18. The method according to claim 14, wherein: Accessing the first resource page using at least a second x-path among the one or more x-paths includes: Using a fifth x-path among the one or more x-paths to attempt to gain access to the first resource page; In response to determining that a fifth x-path of the one or more x-paths cannot be used to gain access to the first resource page, an x-path database is updated to indicate that the fifth x-path does not work.