Skip to content

Commit

Permalink
Merge pull request #62 from nikitoshina/master
Browse files Browse the repository at this point in the history
Fix for Error:: URL can't contain control characters ' '
  • Loading branch information
gurugaurav authored Oct 16, 2024
2 parents c6e39ec + 16b5013 commit 8f7926f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions bing_image_downloader/bing.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ def run(self):
print("[%] No more images are available")
break
links = re.findall('murl":"(.*?)"', html)
links = [link.replace(" ", "%20") for link in links]
if self.verbose:
print("[%] Indexed {} Images on Page {}.".format(len(links), self.page_counter + 1))
print("\n===============================================\n")
Expand Down

0 comments on commit 8f7926f

Please sign in to comment.