Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save princePeterHansen/f64cc0f2601a5d933b7df4b329bb9d47 to your computer and use it in GitHub Desktop.
Save princePeterHansen/f64cc0f2601a5d933b7df4b329bb9d47 to your computer and use it in GitHub Desktop.
Scraping http://books.toscrape.com with proxybot service
[
{
"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