Gertje823 / Vinted-Scraper

This is a tool to scrape/download images and data from Vinted & Depop using the API and stores the data in a SQLite database.
GNU General Public License v3.0
91 stars 21 forks source link

Maximum amount of retries reached #6

Closed exuded closed 2 years ago

exuded commented 2 years ago

Hi, thanks for your script! Unfortunately it doesn't work for me. When I launch the script with Python Launcher, the terminal error is: `During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/Users/e/Downloads/Vinted-Scraper-main/scraper.py", line 342, in session, params = vinted_session() File "/Users/e/Downloads/Vinted-Scraper-main/scraper.py", line 42, in vinted_session ua = UserAgent() File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/fake_useragent/fake.py", line 69, in init self.load() File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/fake_useragent/fake.py", line 75, in load self.data = load_cached( File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/fake_useragent/utils.py", line 250, in load_cached update(path, use_cache_server=use_cache_server, verify_ssl=verify_ssl) File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/fake_useragent/utils.py", line 245, in update write(path, load(use_cache_server=use_cache_server, verify_ssl=verify_ssl)) File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/fake_useragent/utils.py", line 187, in load ret = json.loads(get( File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/fake_useragent/utils.py", line 84, in get raise FakeUserAgentError('Maximum amount of retries reached') fake_useragent.errors.FakeUserAgentError: Maximum amount of retries reached`

Can you help out? :)

Gertje823 commented 2 years ago

It has something to do with the fake_useragent module. I removed the fake_useragent module and replaced it with a static user agent string. Could you download the latest version and see if it solves your issue?