objaverse-xl icon indicating copy to clipboard operation
objaverse-xl copied to clipboard

Download error: shell only

Open anikimmel opened this issue 4 months ago • 6 comments

Hello!

image

I have a download error that occurs only when I try to download in any shell (Windows, Ubuntu) etc.

I have a fix, which is to add headers to the request that mimic the request sent out by colab (it is not reproducible in colab because the headers appear to be modified by colab itself).

headers = {'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36 Edg/121.0.0.0'}
response = requests.get(url, headers=headers, stream=True)

However, I'd rather not have to edit thingiverse.py myself, it'd be nice if it worked from the pip install alone without modifications.

Thanks!

anikimmel avatar Feb 28 '24 14:02 anikimmel