Skip to content

Instantly share code, notes, and snippets.

@scrapehero
Created November 2, 2018 12:53
Show Gist options
  • Star 6 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save scrapehero/db1035ab6c7c6acb559497f8e7e2c372 to your computer and use it in GitHub Desktop.
Save scrapehero/db1035ab6c7c6acb559497f8e7e2c372 to your computer and use it in GitHub Desktop.
JSON Sitemap to scrape amazon bestseller listings from Amazon using Web Scraper Chrome Extension
{
"_id":"amazon_pet",
"startUrl":[
"https://www.amazon.com/Best-Sellers-Pet-Supplies/zgbs/pet-supplies/ref=zg_bs_nav_0"
],
"selectors":[
{
"id":"product",
"type":"SelectorElement",
"parentSelectors":[
"_root",
"next"
],
"selector":"li.zg-item-immersion",
"multiple":true,
"delay":0
},
{
"id":"next",
"type":"SelectorLink",
"parentSelectors":[
"_root",
"next"
],
"selector":"li.a-last a",
"multiple":false,
"delay":0
},
{
"id":"rank",
"type":"SelectorText",
"parentSelectors":[
"product"
],
"selector":"span.zg-badge-text",
"multiple":false,
"regex":"",
"delay":0
},
{
"id":"name",
"type":"SelectorText",
"parentSelectors":[
"product"
],
"selector":"div.p13n-sc-truncated",
"multiple":false,
"regex":"",
"delay":0
},
{
"id":"ratings",
"type":"SelectorText",
"parentSelectors":[
"product"
],
"selector":"a.a-size-small",
"multiple":false,
"regex":"",
"delay":0
},
{
"id":"rating",
"type":"SelectorText",
"parentSelectors":[
"product"
],
"selector":"span.a-icon-alt",
"multiple":false,
"regex":"",
"delay":0
},
{
"id":"price",
"type":"SelectorText",
"parentSelectors":[
"product"
],
"selector":"span.p13n-sc-price",
"multiple":false,
"regex":"",
"delay":0
},
{
"id":"image",
"type":"SelectorImage",
"parentSelectors":[
"product"
],
"selector":"img",
"multiple":false,
"delay":0
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment