I have created a new token to no avail. The URL generated in filelist.txt initiates a download when opened in browser. Something happens at SESSION.get(file_link.link) on line 683 in file thingy_grabber.py
I debugged this a little more and was able to solve the issue. I think thingiverse made a change where it rejects UserAgent that says "python-requests". I changed it to say "firefox" (in this file "/home//.local/lib/python3.10/site-packages/requests/utils.py") and downloads started working again. This is not a permanent solution as an OS update would override the file in the future. Maybe we should override the UserAgent here?
The script has been working flawlessly until recently. It throws the following error and exits:
Unexpected status code 403 for https://api.thingiverse.com/files/2046728/download/?access_token=***
I have created a new token to no avail. The URL generated in filelist.txt initiates a download when opened in browser. Something happens at SESSION.get(file_link.link) on line 683 in file thingy_grabber.py
Any help would be appreciated.