Last active
February 18, 2020 22:17
-
-
Save princePeterHansen/19b885cdf8d37d0036b0e1d40e726bb3 to your computer and use it in GitHub Desktop.
Response with JSON like format
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" | |
} | |
], | |
"data": [ | |
{ | |
"title": "A Light in the ...", | |
"price": "£51.77", | |
"image": "media/cache/2c/da/2cdad67c44b002e7ead0cc35693c0e8b.jpg", | |
"link": "catalogue/a-light-in-the-attic_1000/index.html" | |
}, | |
{ | |
"title": "Tipping the Velvet", | |
"price": "£53.74", | |
"image": "media/cache/26/0c/260c6ae16bce31c8f8c95daddd9f4a1c.jpg", | |
"link": "catalogue/tipping-the-velvet_999/index.html" | |
}, | |
{ | |
"title": "Soumission", | |
"price": "£50.10", | |
"image": "media/cache/3e/ef/3eef99c9d9adef34639f510662022830.jpg", | |
"link": "catalogue/soumission_998/index.html" | |
}, | |
{ | |
"title": "Sharp Objects", | |
"price": "£47.82", | |
"image": "media/cache/32/51/3251cf3a3412f53f339e42cac2134093.jpg", | |
"link": "catalogue/sharp-objects_997/index.html" | |
}, | |
{ | |
"title": "Sapiens: A Brief History ...", | |
"price": "£54.23", | |
"image": "media/cache/be/a5/bea5697f2534a2f86a3ef27b5a8c12a6.jpg", | |
"link": "catalogue/sapiens-a-brief-history-of-humankind_996/index.html" | |
}, | |
. | |
. | |
. | |
. | |
. | |
. | |
] | |
} | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment