Open vwadia opened 1 year ago
Hi @vwadia, Not completly sure why you are getting error while using python3. But I tried the same code to download images in a folder and everytime I get this as an output, along with an empty folder " Item no.: 1 --> Item name = Tom Hanks Evaluating... Total Image Links = 0
Total time taken: 2.445718288421631 Seconds Starting Download...
Everything downloaded! 0 ----> total Errors "
when I looked for the error and research a bit found that "it has been reported that Google has implemented a new security feature that restricts automated download requests like this one. As a result, web scraping from Google has become very difficult, and in some cases impossible. If you are using this script, you may need to look for alternative ways to download images from Google."
Hi shivangi3001! Thank you for the heads up. That does explain a lot. However I tried changing the URL so the search would go through bing rather than google and still no luck. There are plenty of other search engines to try so I will see if any of them work.
Hi @vwadia and @shivangi3001,
I have worked on resolving the issue. You can review my changes in the repository here: Bing Image Downloader.
Hi Prateek! I'm running this from Windows 10, Chrome Version 109.0.5414.75, and Python 3.7/2.7 (I've tried both) and when using with 3.7 I get an error
Item no.: 1 --> Item name = Tom Hanks Evaluating...