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

Error:: URL can't contain control characters. (found at least ' ') #30

Open
Lightfoe1 opened this issue Jun 6, 2022 · 0 comments
Open

Comments

@Lightfoe1
Copy link

When using the download() function, I came accross multiple control character errors. This is caused by a url containing a blank space.

I temporarily solved it by changing these two lines to replace " " with "%20" inside bing.py:
self.seen.add(link.replace(" ", "%20"))
self.download_image(link.replace(" ", "%20"))

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