Created
January 4, 2021 11:41
-
-
Save LeeMeng2020/96b872ea0c975687a3354764b07e53c9 to your computer and use it in GitHub Desktop.
Amazon UK bestsellers with pagination
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"_id": "amazon-uk-bestsellers-paginate", | |
"startUrl": ["https://www.amazon.co.uk/gp/bestsellers/books/"], | |
"selectors": [{ | |
"id": "Item wrappers", | |
"type": "SelectorElement", | |
"parentSelectors": ["_root", "Next page"], | |
"selector": "ol li div.aok-relative", | |
"multiple": true | |
}, { | |
"id": "Next page", | |
"type": "SelectorElementClick", | |
"parentSelectors": ["_root"], | |
"selector": "div > ol[id*='ordered-list']", | |
"multiple": false, | |
"delay": "4500", | |
"clickElementSelector": "ul.a-pagination li.a-last a", | |
"clickType": "clickMore", | |
"discardInitialElements": "discard", | |
"clickElementUniquenessType": "uniqueHTML" | |
}, { | |
"id": "Title", | |
"type": "SelectorText", | |
"parentSelectors": ["Item wrappers"], | |
"selector": "a.a-link-normal div[title],a.a-link-normal div[aria-hidden][data-rows]", | |
"multiple": false, | |
"regex": "" | |
}, { | |
"id": "Link", | |
"type": "SelectorLink", | |
"parentSelectors": ["Item wrappers"], | |
"selector": "span > a.a-link-normal", | |
"multiple": false | |
}, { | |
"id": "Author", | |
"type": "SelectorText", | |
"parentSelectors": ["Item wrappers"], | |
"selector": "div[class^='a-row'] > a.a-link-child,span[class^='aok-inline-block'] > div:nth-of-type(1) span", | |
"multiple": false, | |
"regex": "" | |
}, { | |
"id": "Position", | |
"type": "SelectorText", | |
"parentSelectors": ["Item wrappers"], | |
"selector": "span.zg-badge-text", | |
"multiple": false, | |
"regex": "(?<=#)\\d+" | |
}] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In reply to
https://forum.webscraper.io/t/merge-property-lists-across-pages/6975