EricJMarti / inventory-hunter

⚡️ Get notified as soon as your next CPU, GPU, or game console is in stock
MIT License
1.12k stars 262 forks source link

£ causing float issues #110

Closed Kieranwest closed 3 years ago

Kieranwest commented 3 years ago

Hey, awesome scraper tool you got here just trying to work through a couple issues involving UK sites.

Amazon scraper half works but reports a float error due to the currency. I've tried to fix this myself by using getText() and stripping the first character from the string returning only the value, I.E from £17.99 to 17.99. Using the logger I'm able to see a clean output but the script still seems to think the Item is out of stock. Add to cart is finding the correct tag too.

Not sure if you can point me in the general direction of your work flow. Finding it hard to follow.

image

Kieranwest commented 3 years ago

Turns out Amazon UK uses Add to Basket instead of Add to cart hence the requirements was not met for the scalper.