when i execute the code: python main.py -a -c Magnifiers -u "https://www.amazon.com/Eye-Candy-Magnifier-Anti-Glare-Brightness/dp/B0BHM5YSR6"
the info is : Product info is not valid - see logs for more info
And the info in logfile is:
2024-02-03 23:09:32,680 : INFO : scraper.add_product : Adding product with category 'Magnifiers' and url 'https://www.amazon.com/Eye-Candy-Magnifier-Anti-Glare-Brightness/dp/B0BHM5YSR6'
2024-02-03 23:09:36,323 : ERROR : scraper.domains : Could not get all the data needed from url: https://www.amazon.com/Eye-Candy-Magnifier-Anti-Glare-Brightness/dp/B0BHM5YSR6
Traceback (most recent call last):
File "D:\github\scraper\scraper\domains.py", line 38, in get_product_info
currency = self._get_product_currency()
File "D:\github\scraper\scraper\domains.py", line 284, in _get_product_currency
json.loads(parsed_url.replace("/af/sp-detail/feedback-form?pl=", ""))
File "C:\Program Files\Python310\lib\json\__init__.py", line 346, in loads
return _default_decoder.decode(s)
File "C:\Program Files\Python310\lib\json\decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "C:\Program Files\Python310\lib\json\decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
I pull the code today,I dont know how to resolve this problem
when i execute the code:
python main.py -a -c Magnifiers -u "https://www.amazon.com/Eye-Candy-Magnifier-Anti-Glare-Brightness/dp/B0BHM5YSR6"
the info is :Product info is not valid - see logs for more info
And the info in logfile is:I pull the code today,I dont know how to resolve this problem