You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried to add an amazon product with the following:
python3 main.py -a -c smartphones -u https://www.amazon.de/-/en/Google-Pixel-Pro-Smartphone-Obsidian/dp/B0DG9DD9VN
which returned:
Product info is not valid - see logs for more info
The logfile has the following info:
2025-01-19 22:21:08,046 : INFO : scraper.add_product : Adding product with category 'smartphones' and url 'https://www.amazon.de/-/en/Google-Pixel-Pro-Smartphone-Obsidian/dp/B0DG9DD9VN'
2025-01-19 22:21:11,064 : ERROR : scraper.domains : Could not get all the data needed from url: https://www.amazon.de/-/en/Google-Pixel-Pro-Smartphone-Obsidian/dp/B0DG9DD9VN
Traceback (most recent call last):
File "/home/user/amazon/scraper/scraper/domains.py", line 37, in get_product_info
price = self._get_product_price()
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/user/amazon/scraper/scraper/domains.py", line 257, in _get_product_price
return float(
^^^^^^
ValueError: could not convert string to float: '€1106.18'
To solve the issue i added replace("€", "") in line 257 of the domains.py, but shouldn't the script autodetect the currency?
The text was updated successfully, but these errors were encountered:
I tried to add an amazon product with the following:
which returned:
The logfile has the following info:
To solve the issue i added
replace("€", "")
in line 257 of thedomains.py
, but shouldn't the script autodetect the currency?The text was updated successfully, but these errors were encountered: