Created
February 17, 2020 22:14
-
-
Save princePeterHansen/f64cc0f2601a5d933b7df4b329bb9d47 to your computer and use it in GitHub Desktop.
Scraping http://books.toscrape.com with proxybot service
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
[ | |
{ | |
"selector": "article.product_pod", | |
"get": "json", | |
"extract": [ | |
{ | |
"selector": "h3", | |
"get": "text", | |
"as": "title" | |
}, | |
{ | |
"selector": ".product_price p.price_color", | |
"get": "text", | |
"as": "price" | |
}, | |
{ | |
"selector": "img", | |
"get": "attribute", | |
"attribute": "src", | |
"as": "image" | |
}, | |
{ | |
"selector": "a", | |
"get": "attribute", | |
"attribute": "href", | |
"as": "link" | |
} | |
] | |
} | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment