Skip to content

Instantly share code, notes, and snippets.

@djalmabright
Forked from scrapehero/walmart.json
Created February 7, 2020 03:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save djalmabright/2b51f1fefc8be3d09910f8a786df0418 to your computer and use it in GitHub Desktop.
Save djalmabright/2b51f1fefc8be3d09910f8a786df0418 to your computer and use it in GitHub Desktop.
Sitemap to extract product data and pricing from Walmart using web scraper.io extension
{
"_id": "walmart",
"startUrl": [
"https://www.walmart.com/browse/home-improvement/electrical/1072864_1067619?povid=1072864+%7C+2018-05-02+%7C+Flyout_Electrical"
],
"selectors": [
{
"id": "product",
"type": "SelectorElementClick",
"parentSelectors": [
"_root"
],
"selector": "li.Grid-col",
"multiple": true,
"delay": "2000",
"clickElementSelector": "button.elc-icon.paginator-btn-next",
"clickType": "clickMore",
"discardInitialElements": false,
"clickElementUniquenessType": "uniqueText"
},
{
"id": "name",
"type": "SelectorText",
"parentSelectors": [
"product"
],
"selector": "a.product-title-link span",
"multiple": false,
"regex": "",
"delay": 0
},
{
"id": "price",
"type": "SelectorText",
"parentSelectors": [
"product"
],
"selector": "div.price-main-block span.price",
"multiple": false,
"regex": "",
"delay": 0
},
{
"id": "rating",
"type": "SelectorText",
"parentSelectors": [
"product"
],
"selector": "span.seo-avg-rating",
"multiple": false,
"regex": "",
"delay": 0
},
{
"id": "number_of_reviews",
"type": "SelectorText",
"parentSelectors": [
"product"
],
"selector": "span.stars-reviews-count",
"multiple": false,
"regex": "",
"delay": 0
},
{
"id": "image",
"type": "SelectorImage",
"parentSelectors": [
"product"
],
"selector": "img",
"multiple": false,
"delay": 0
},
{
"id": "shipping",
"type": "SelectorText",
"parentSelectors": [
"product"
],
"selector": "div.ShippingMessage-container",
"multiple": false,
"regex": "",
"delay": 0
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment