Skip to content

Commit

Permalink
Fix for "Error:: URL can't contain control characters. (found at leas…
Browse files Browse the repository at this point in the history
…t ' ')"
  • Loading branch information
nikitoshina authored Sep 5, 2024
1 parent c6e39ec commit 16b5013
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 16b5013

Please sign in to comment.