Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could not download image of conceptual_captions? #77

Open
heyichang opened this issue Feb 4, 2023 · 0 comments
Open

Could not download image of conceptual_captions? #77

heyichang opened this issue Feb 4, 2023 · 0 comments

Comments

@heyichang
Copy link

headers = {
#'User-Agent': 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36',
'User-Agent':'Googlebot-Image/1.0', # Pretend to be googlebot
'X-Forwarded-For': '64.18.15.200'
}

try this url 'https://i.pinimg.com/736x/94/8e/5e/948e5e26c5e79a6b7db24accf918e98f--jean-skirts-cowboy-boots.jpg'

response = requests.get('https://i.pinimg.com/736x/94/8e/5e/948e5e26c5e79a6b7db24accf918e98f--jean-skirts-cowboy-boots.jpg', stream=False, timeout=10, allow_redirects=True, headers=headers)

get the error
ConnectTimeoutError

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant