-
Notifications
You must be signed in to change notification settings - Fork 341
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
Option to ignore SSL certificate #397
base: main
Are you sure you want to change the base?
Option to ignore SSL certificate #397
Conversation
@@ -43,7 +44,10 @@ def download_image(row, timeout, user_agent_token, disallowed_header_directives) | |||
user_agent_string += f" (compatible; {user_agent_token}; +https://github.com/rom1504/img2dataset)" | |||
try: | |||
request = urllib.request.Request(url, data=None, headers={"User-Agent": user_agent_string}) | |||
with urllib.request.urlopen(request, timeout=timeout) as r: | |||
ctx = ssl.create_default_context() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you are not using the new option here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oups my bad, should be fixed :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@rom1504 Can we merge?
@rom1504 It would be nice to have the ignore_ssl_certificate option soon for avoiding SSL errors when downloading any dataset. What modifications are still needed to merge this PR into main? |
No description provided.