amazon-scraper icon indicating copy to clipboard operation
amazon-scraper copied to clipboard

Empty results

Open xloem opened this issue 5 years ago • 5 comments

Running the script without changes gives me an output.jsonl that looks like this:

{"name": null, "price": null, "short_description": null, "images": null, "rating": null, "number_of_reviews": null, "variants": null, "product_description": null, "sales_rank": null, "link_to_all_reviews": null}
{"name": null, "price": null, "short_description": null, "images": null, "rating": null, "number_of_reviews": null, "variants": null, "product_description": null, "sales_rank": null, "link_to_all_reviews": null}
{"name": null, "price": null, "short_description": null, "images": null, "rating": null, "number_of_reviews": null, "variants": null, "product_description": null, "sales_rank": null, "link_to_all_reviews": null}

xloem avatar Oct 06 '20 08:10 xloem

Verify your selectors yml, this css selectors for website

ramirezemerick88 avatar Nov 02 '20 14:11 ramirezemerick88

The example doesn't work out of the box?

xloem avatar Nov 02 '20 20:11 xloem

For search: products: css: 'div[data-component-type="s-search-result"]' xpath: null multiple: true type: Text children: title: css: 'h2 a.a-link-normal.a-text-normal' xpath: null type: Text url: css: 'h2 a.a-link-normal.a-text-normal' xpath: null type: Link rating: css: 'div.a-row.a-size-small span:nth-of-type(1)' xpath: null type: Attribute attribute: aria-label reviews: css: 'div.a-row.a-size-small span:nth-of-type(2)' xpath: null type: Attribute attribute: aria-label price: css: 'span.a-price:nth-of-type(1) span.a-offscreen' xpath: null type: Text image: css: 'img.s-image' xpath: null type: Image

ramirezemerick88 avatar Nov 04 '20 11:11 ramirezemerick88

I'm sorry, I tried this project briefly some time ago and ended up finding other solutions to my purchasing situation. Is this project intended to be a working open source amazon scraping tool?

xloem avatar Nov 04 '20 11:11 xloem

I am also getting similar results as xloem above:

{"name": "Automate the Boring Stuff with Python, 2nd Edition: Practical Programming for Total Beginners", "price": null, "short_description": null, "images": null, "rating": null, "number_of_reviews": null, "variants": null, "product_description": null, "sales_rank": null, "link_to_all_reviews": "/Automate-Boring-Stuff-Python-2nd-ebook/product-reviews/B07VSXS4NK?reviewerType=all_reviews"} {"name": null, "price": null, "short_description": null, "images": null, "rating": null, "number_of_reviews": null, "variants": null, "product_description": null, "sales_rank": null, "link_to_all_reviews": null} {"name": null, "price": null, "short_description": null, "images": null, "rating": null, "number_of_reviews": null, "variants": null, "product_description": null, "sales_rank": null, "link_to_all_reviews": null}

Is there a way to fix this?

MojoMoe avatar Jul 23 '22 08:07 MojoMoe