Code Monkey home page Code Monkey logo

google-image-scraper's Introduction

Google Image Scraper

A library created to scrape Google Images.
If you are looking for other image scrapers, JJLimmm has created image scrapers for Gettyimages, Shutterstock, and Bing.
Visit their repo here: https://github.com/JJLimmm/Website-Image-Scraper

Pre-requisites:

  1. Google Chrome
  2. Python3 packages (Pillow, Selenium, Requests)
  3. Windows OS (Other OS is not tested)

Setup:

  1. Open command prompt
  2. Clone this repository (or download)
    git clone https://github.com/ohyicong/Google-Image-Scraper
    
  3. Install Dependencies
    pip install -r requirements.txt
    
  4. Edit your desired parameters in main.py
    search_keys         = Strings that will be searched for
    number of images    = Desired number of images
    headless            = Chrome GUI behaviour. If True, there will be no GUI
    min_resolution      = Minimum desired image resolution
    max_resolution      = Maximum desired image resolution
    max_missed          = Maximum number of failed image grabs before program terminates. Increase this number to ensure large queries do not exit.
    number_of_workers   = Number of sectioned jobs created. Restricted to one worker per search term and thread.
    
  5. Run the program
    python main.py
    

Usage:

This project was created to bypass Google Chrome's new restrictions on web scraping from Google Images. To use it, define your desired parameters in main.py and run through the command line:

python main.py

Youtube Video:

IMAGE ALT TEXT

IMPORTANT:

Although it says so in the video, this program will not run through VSCode. It must be run in the command line.

This program will install an updated webdriver automatically. There is no need to install your own.

Please like, subscribe, and share if you found my project helpful!

google-image-scraper's People

Contributors

crispinstichart avatar dependabot[bot] avatar duskvirkus avatar fbarretto avatar insaiyancvk avatar itsgoldeneyes avatar ohyicong avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

google-image-scraper's Issues

Issues saving images

Thanks for the very helpful video and code. For some reason, and though I see the code iterating over all the images in the browser (I specified 1000), only 5 are saved out of the 1000 in my folder. Is there a reason for this?

Also, it seems that the kernel gets stuck (remains in busy) while no other images are being saved to the folder.

code:
`from GoogleImageScrapper import GoogleImageScraper
import os

webdriver_path = os.getcwd()+"\webdriver\chromedriver.exe"
image_path = os.getcwd()+"\photos"
#add new search key into array ["cat","t-shirt","apple","orange","pear","fish"]
search_keys= ['crash collision incident i 95 florida']
number_of_images = 1000
headless = False
#min_resolution = (width,height)
min_resolution=(0,0)
#max_resolution = (width,height)
max_resolution=(1920,1080)
for search_key in search_keys:
image_scrapper = GoogleImageScraper(webdriver_path,image_path,search_key,number_of_images,headless,min_resolution,max_resolution)
image_urls = image_scrapper.find_image_urls()
image_scrapper.save_images(image_urls)`

Output
[INFO] Scraping for image link... Please wait. [INFO] 0. https://www.news4jax.com/resizer/o6Sq5_Mhw7hrZKPVAasf2RpowJw=/800x450/smart/filters:format(jpeg):strip_exif(true):strip_icc(true):no_upscale(true):quality(65)/cloudfront-us-east-1.images.arcpublishing.com/gmg/MFWYNNUSL5BO3MAGCV4CIXZR7U.jpg [INFO] 1. https://www.news4jax.com/resizer/UEA1HcqsBXSy1OSaQIcKE25O1Hk=/800x450/smart/filters:format(jpeg):strip_exif(true):strip_icc(true):no_upscale(true):quality(65)/cloudfront-us-east-1.images.arcpublishing.com/gmg/WLTKQX7YX5FOVEEHNIO652LQGU.jpg [INFO] 2. https://www.sun-sentinel.com/resizer/mRv49fbuHY1VlFVqQgrqfVSMJEE=/415x262/top/arc-anglerfish-arc2-prod-tronc.s3.amazonaws.com/public/676TIO5J4BFMDADZMNP7I7GDZU.JPG [INFO] 3. https://www.news4jax.com/resizer/lIsqH3kiuDjpJHKztWcdOYGpU7s=/800x450/smart/filters:format(jpeg):strip_exif(true):strip_icc(true):no_upscale(true):quality(65)/cloudfront-us-east-1.images.arcpublishing.com/gmg/PRZHYYJLFZBQPH2DPWPYMGJNTY.jpg [INFO] 4. https://www.news4jax.com/resizer/O9kHEVuZk4ugM4sUqJztffZ4lnI=/425x238/smart/filters:format(jpeg):strip_exif(true):strip_icc(true):no_upscale(true):quality(65)/cloudfront-us-east-1.images.arcpublishing.com/gmg/3OA7XLUA4JDTJMJXT5ZYAZ3DHQ.jpg [INFO] 5. https://www.miamiherald.com/latest-news/xmy4la/picture250435526/alternates/FREE_1140/crash.jpeg [INFO] 6. https://d1vhqlrjc8h82r.cloudfront.net/06-18-2020/t_9e20dede06ec4445836bd838022173ca_name_image.jpg [INFO] 7. https://spacecoastdaily.com/wp-content/uploads/2021/04/Crash-I-95-Viera.jpg [INFO] 8. https://miami.cbslocal.com/wp-content/uploads/sites/15909786/2019/04/crash-4.jpg?w=640&h=360&crop=1 [INFO] 9. https://d1vhqlrjc8h82r.cloudfront.net/04-05-2021/t_e9f9a160a4bb492a9ba249c0d74b90d1_name_image.jpg [INFO] 10. https://www.gannett-cdn.com/presto/2020/09/14/NDNJ/3f9032f5-6b1a-4a5a-b1ea-0c32412160cb-DTB_I-95_Crash_03.jpg?width=660&height=439&fit=crop&format=pjpg&auto=webp [INFO] 11. https://www.gannett-cdn.com/presto/2019/12/23/PBRE/9d6599fe-92b8-4ab3-8c9a-9637842cd838-christmas_crash_1.jpeg?auto=webp&crop=269,152,x0,y72&format=pjpg&width=1200 [INFO] 12. https://media.nbcmiami.com/2021/05/051921-tesla-crash-miami-dade-county.jpg?quality=85&strip=all&resize=1200%2C675 [INFO] 13. https://media.firstcoastnews.com/assets/WTLV/images/7d252128-2245-49b7-ba12-cdf54f9c7c8c/7d252128-2245-49b7-ba12-cdf54f9c7c8c_1920x1080.jpg [INFO] 14. https://d1vhqlrjc8h82r.cloudfront.net/04-26-2020/t_519d35809cea472d9bc379f991d0d70e_name_image.jpg [INFO] 15. https://www.sun-sentinel.com/resizer/81Dcj8qUajHm7jvBaUX-urN7o1E=/415x230/top/arc-anglerfish-arc2-prod-tronc.s3.amazonaws.com/public/XDFGUV7XLJAM7E5NA34ZNVNRF4.JPG [INFO] 16. https://miami.cbslocal.com/wp-content/uploads/sites/15909786/2019/09/Black-Nission-I-95-Accident.jpg?w=640&h=360&crop=1 [INFO] 17. https://miami.cbslocal.com/wp-content/uploads/sites/15909786/2021/05/Chase-2.jpg?w=640&h=360&crop=1 [INFO] 18. https://media.firstcoastnews.com/assets/WTLV/images/3b51b46d-a2fc-421a-9968-ef5d916d4b68/3b51b46d-a2fc-421a-9968-ef5d916d4b68_1140x641.jpg [INFO] 19. https://www.sun-sentinel.com/resizer/1Rshe7voHSd1bUfzfUMKbkQ9NQ8=/415x232/top/www.trbimg.com/img-5c34b52d/turbine/fl-1546958121-4ya0n6dvj0-snap-image [INFO] 20. https://www.clickorlando.com/resizer/EY5QPjck5-e6eNrSQpNXkgJku-0=/640x360/smart/filters:format(jpeg):strip_exif(true):strip_icc(true):no_upscale(true):quality(65)/arc-anglerfish-arc2-prod-gmg.s3.amazonaws.com/public/WHWRPALXURAQLGTV63AT2DKPMA.jpg [INFO] 21. https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcRApnqVhGGRlipTvvQqdOcrZJSPpB55CJ5GpA&usqp=CAU [INFO] 22. https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQ3fJ0SpYAEmQevH5gld57MZ-NnNYPpAJ18cw&usqp=CAU [INFO] 23. https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQzXNkLnSrzOUP9B1Hqo_zCpaa4qccXNoqcfg&usqp=CAU [INFO] 24. https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcSslyEX_215G-9R4rJ1a9TZ9aSvyFdyOOoZAQ&usqp=CAU [INFO] 25. https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQ7rNSRn5bQFtMF77Fyk30d6m1NbrwRHcOXrw&usqp=CAU [INFO] 26. https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTpxt1DMvHOIogFYaoAD4HajsEbBC12UF0CBQ&usqp=CAU [INFO] 27. https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQIHAGBgfegzN-GeCCH28T1xRdaFSdm9EE3Iw&usqp=CAU [INFO] 28. https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcStRNyWNH5edqym9E6yKD642mU6uxLxdFO-Hw&usqp=CAU [INFO] 29. https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcSdCqvhbgtbEGMBBBUQz2UGGpREvLpe6sEavA&usqp=CAU [INFO] 30. https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQSMpn8Tn2MDmPbB0B6vB3frrsUalH-XxowvA&usqp=CAU [INFO] 31. https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcSs-1Hi4dk3XFyBomHhaIMjNh85WNpMwE9d8A&usqp=CAU [INFO] 32. https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcSDPEZi5BAzgaa9taAhTceTVDQHWCv8SkhsXg&usqp=CAU [INFO] 33. https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQKHqIbdQ5l-oI4VdHdMbilHcD4nd2L4zuESQ&usqp=CAU [INFO] 34. https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQilFT3F0Ck1Sili635SpOjmJ0a-odi8UBZwA&usqp=CAU [INFO] 35. https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcR4IQF951rx--MAsM5YWcwd3dyIfFjOW7vMGg&usqp=CAU [INFO] 36. https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcSaSWj0uV1JZv_hUeOyje48UBqkXF8VxArPKw&usqp=CAU [INFO] 37. https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTQwfb4rpErh7SvU8smXegt3U4_w_625W3tlw&usqp=CAU [INFO] 38. https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcT8SUuIKEttDYJSrQq98csd7Wo_W8VDUgq3GQ&usqp=CAU [INFO] 39. https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcS8pxgAeolQScnAzMAl5ophxA3h6WWZFWHxlw&usqp=CAU [INFO] 40. https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTtptVO19FZTkI2eRX7D3O8AySAaySP1nGMfQ&usqp=CAU [INFO] 41. https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcRJAegRUc8ugX072cFF7eFjrdHte85LYfKQbw&usqp=CAU [INFO] 42. https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcROkCC2hnRw_IdBAKqe6VGI0TNwmSqGL480pg&usqp=CAU [INFO] 43. https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcSmRNy6SFpcSQxyEwn_neK4d2XJAGo3_TWpaw&usqp=CAU [INFO] 44. https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQA8Oa5SIy-C2CLgj8az1B220msQWL416BuXg&usqp=CAU [INFO] 45. https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcRODONJRyjKPQueoB_m3_vf6wvYt650pfBNRA&usqp=CAU [INFO] 46. https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQ2erHFoYpS2bBMS3tP0DRXb5yt247KX8WugQ&usqp=CAU [INFO] 47. https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcSCNFNNHYJc8RM5kMexjhk2bAdykn0HJWIlrw&usqp=CAU [INFO] 48. https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcRRsiagq1h9ugLw_detJym7kKDHnZtxGnup1Q&usqp=CAU [INFO] 49. https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcSLswklBJT7zt6vgiTmujeSFn2j9rZ8PZksAg&usqp=CAU [INFO] 50. https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQCFB53SrqeEsEAvvAtM-ry-GEZnm--BJrYnQ&usqp=CAU [INFO] 51. https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcSYAKwEztQQ_c7OQTe22eiwkZIe-C2mZDQqhg&usqp=CAU [INFO] 52. https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcT9NZ_JjOPxbBxbmWH7YL_qaCwyiXmgcCe9gQ&usqp=CAU [INFO] 53. https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcSyTgaoiQIh8txUufdb3fnqqbHhURiROhvbeg&usqp=CAU [INFO] 54. https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcR4YWRkuzua6d9mZKSRZ6SWpQ6d44jIsHxueQ&usqp=CAU [INFO] 55. https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcRd-odGaV6-qXqNNA-eghyyN_UidNBLCVZ-5Q&usqp=CAU [INFO] 56. https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcRCYsQ-Gq6ZdKiEZZEYRTtoBFPUd1JqQt4a-Q&usqp=CAU [INFO] 57. https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcRwXt9PBWc7MAGJxwHyEckK89w8uYcagxJEnw&usqp=CAU [INFO] 58. https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQFTLq1yCRDBSpNrcPvyx5eCd4yM2XyqPXfSg&usqp=CAU [INFO] 59. https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTFidExJ5amOFJS_H2KaFCNxhTBRqBcrW5RDQ&usqp=CAU [INFO] 60. https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTlVk_KowIsv6rk1XDbXYupVbymgSJYTaIUlg&usqp=CAU [INFO] 61. https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcScLagKmw4uqbcM6mOW7nvAF4I9qVRW4f44Uw&usqp=CAU [INFO] 62. https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTo6Z67gtAbBtsqRtipig4ZZQGRzJMQUolpew&usqp=CAU [INFO] 63. https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcSO3Vd7AjftCds6-g-fNo2T4eR4CyEB5Iw-Bw&usqp=CAU [INFO] 64. https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTkmhc2K5tMwxpMhloAr7qhS6kp1dTvxQrhLw&usqp=CAU [INFO] 65. https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcRDpwdetGwDIyhUR3oRTGUq88-Xa3W-b58K8Q&usqp=CAU [INFO] 66. https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTduPXjMQOUpLCLgD8yFBcQJMaM3odxhppr1A&usqp=CAU [INFO] 67. https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQbsGSkCOWP_cbtTbcIg5XEOuuZe31cWKN1kg&usqp=CAU [INFO] 68. https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcRWSGODp_BfrJWQ3tj6PJb1Evq6F3c9kNLqng&usqp=CAU [INFO] 69. https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcRkEKUAsV05eVoQRU-Vg6bnDd3DzWrs4opTOA&usqp=CAU [INFO] 70. https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTjvUOPcLKzcxb6Jp_K5GJe2Wy74M6nzVY7JA&usqp=CAU [INFO] 71. https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQmAYGPdSiIJg_ZXj89d28SvskmEJ7rXYbDog&usqp=CAU [INFO] 72. https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTPoz314F28ZeHRy8uVLjv2Z_Or6n7rHhKRBQ&usqp=CAU [INFO] 73. https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTwvT05YCGEuvEnQFe-eKHVWYeKyZEYkJ9WJA&usqp=CAU [INFO] 74. https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcS2N9eN3-EFN-io3bI_UMhtZl6epTQenRV9KQ&usqp=CAU [INFO] 75. https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcR6oZH1TM4in_n659o36iT3Ej1wJ9ngG8TQ3Q&usqp=CAU [INFO] 76. https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTLZJZcZe4AMIxWbpXSxyz82GohcfmRpF8qSg&usqp=CAU [INFO] 77. https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcRA_bNkoSEJ7oZHlmy_Nf1icmVK6nHfC2bulA&usqp=CAU [INFO] 78. https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcS_Ccd5HJjNqAW1qG4Epzr9a0FI3LBEL3M0Eg&usqp=CAU [INFO] 79. https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcR2Ir5_msSSf7cAc3S9S82x4NaOi7ZA-ExVTg&usqp=CAU [INFO] 80. https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTZhaPT0hjpOkZob0JsVXrauDPC8jTCy7nPIw&usqp=CAU [INFO] 81. https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQ1eja06IMndbO4rcbhy5pQBS1MrxnAmjH1Kw&usqp=CAU [INFO] 82. https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcSczbGG_27OmMM2kCFMb3XYWq_OKpAz--KsRw&usqp=CAU [INFO] 83. https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTbPDH8hPBY3DD7xux3ODffsU1GEdqaXFuzaA&usqp=CAU [INFO] 84. https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTDJ-yYgUZfO0QATgH5y5tLWK6XGOS9fLWXzQ&usqp=CAU [INFO] 85. https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTfI6lDBZ4I84YpsWCzsp2q53RtWxb_CYU_Bw&usqp=CAU [INFO] 86. https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcRn0h04XlLbneVwv6OhkaxbaHWrvQqefokx_Q&usqp=CAU [INFO] 87. https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcSXUpTYaLPf4MEdS93BPvbbIZyzlLnFf27QUQ&usqp=CAU [INFO] 88. https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcRoRwRxP6WQQeo9t5MHn19i5agNuxfuQ_4RqA&usqp=CAU [INFO] 89. https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcS1gF0Mv5nIus-qSZ4x5NhfV148CPFDOQS5IA&usqp=CAU [INFO] 90. https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcSfshEuTVruh9t_hm9mn1v3XeNzmJ7RXbbpvw&usqp=CAU [INFO] 91. https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcRIrpsQ6RNOsUl3NhoNvUHvGIjTZZEyWQ0VQg&usqp=CAU [INFO] 92. https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTdqR5XCdU-DZS_-N5PVuvldSLCJaufUHKh9g&usqp=CAU [INFO] 93. https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQ9UYtQyCASOOk-1u73K_eGcT2oeeUJaVSWtA&usqp=CAU [INFO] 94. https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcSkDp-BUHklEHDqVcalv3nhpCBo_PphbJCkVA&usqp=CAU [INFO] 95. https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcR-OXW344NGwW8qNgJtdVVhPesUCksEwSGQPQ&usqp=CAU [INFO] 96. https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcSbX4KDje-roHT-6r_yhMIw2OdEShuAthJyew&usqp=CAU [INFO] 97. https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTWNRgqWiMCvEZHIXRhybYGj6lhX0DeYAL8_w&usqp=CAU [INFO] 98. https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcRdPXA3KWY2UnK9XOHTW0dGKVu-rAQ4Ww5Mog&usqp=CAU [INFO] 99. https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTFG46NAKU_6g5RsGrSMZIL1IZ89_wgfaQdYA&usqp=CAU [INFO] Unable to get link [INFO] 100. https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTlrTWC6j-iiqfQq4gxLPbbfudAi8DuMgXocQ&usqp=CAU [INFO] 101. https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTx_lJlN1HZaUen7d_0vKhI5pdsgVCHMA3sGQ&usqp=CAU [INFO] 102. https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQ2AMusoLV2AE_AOkqDnJ9OVf2__pnMZU4PlQ&usqp=CAU [INFO] 103. https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQ9UYtQyCASOOk-1u73K_eGcT2oeeUJaVSWtA&usqp=CAU [INFO] 104. https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcSkDp-BUHklEHDqVcalv3nhpCBo_PphbJCkVA&usqp=CAU [INFO] 105. https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQSsK2Fib3NBlLOzOFv9gZTQJ_cnkR_tAzTAw&usqp=CAU [INFO] 106. https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTDs9YMbjBCpBtXj3NG-5olrO7NmuZIMHNTkw&usqp=CAU [INFO] 107. https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcRwONt7VcfqnSyfXUAH4xIjOB6ylrnz_NC2OA&usqp=CAU [INFO] 108. https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTOGJ36LGKnCCf9K1spSuptO357aQh3fVVggA&usqp=CAU [INFO] 109. https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcT26Xrzg87sQQH3OErSuawxleZK6Qqvs4GlDw&usqp=CAU [INFO] 110. https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcSB0Gd3tZzMOvW8K5QwlirYGkBzz6BS7VIeLA&usqp=CAU [INFO] 111. https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcRizYQzJrIOOgIT1vW4sVuw5x-VSCV3tqbPsA&usqp=CAU [INFO] 112. https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcSa749IYz77Q4ALRiIELG4TVWbulRuptqZ7DQ&usqp=CAU [INFO] 113. https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcRnSQBNiHLwBq-X_5OtPY_4qFrG7iA6n2sECw&usqp=CAU [INFO] 114. https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQmM3dX0KJWrxO0R-PXgoksqVq0Y4jIX8f9ZQ&usqp=CAU [INFO] 115. https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTxwu7SPjkbjnBe1F9LdSDo3rFLkWLJNmrz_Q&usqp=CAU [INFO] 116. https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcT6NESoCyfDBjZ-nDQEoFqn0F8dkraaeCJgKg&usqp=CAU [INFO] 117. https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcROZHxwNA3lnRzgZcHbEy9MieK4FjBLv6Rjcg&usqp=CAU [INFO] 118. https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQWdscptcnuRMOY3QDpqChjSiv1qIvcQPdNVA&usqp=CAU [INFO] 119. https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcRy9yXQKZF-aCJsAXCpLxjo4TkINzl47RjAXA&usqp=CAU [INFO] 120. https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcRhKzldF77Ah_Ju-xu-1etAwdVwuJwjy5EFnA&usqp=CAU [INFO] 121. https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQDiZUxQftfL3RYzAdnCUQcn79hxioj8Fj4Jw&usqp=CAU [INFO] 122. https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQShRP9ucZi_X3IOkAt6j0MDFCOYIWgGHXEOg&usqp=CAU [INFO] 123. https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQTrCYKog_QmpnXHDQ2Bq5jIV8NuW9nLg3vhQ&usqp=CAU [INFO] 124. https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcSy1CqbOsEe1rgkEFbmhlyJJiezydbrUzVo-A&usqp=CAU [INFO] 125. https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcSRj5m6YMmq07u7fLZflmw79xNQfLtylHNpPQ&usqp=CAU [INFO] 126. https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTlZU7SaEwi3ZtDiA9KQ2NCUGH56qa2IABoXQ&usqp=CAU [INFO] 127. https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcSBQttE6F3HHlDTybq4PKz9ZqPc40vh9Rg27A&usqp=CAU [INFO] 128. https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcRJKsK6Tt5Mq3ANc-SSJrz0uLa4WG5ugrmB2w&usqp=CAU [INFO] 129. https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcT15FwLX25I_QM0GSlvpHVQS5ZL_mCnsrMfhg&usqp=CAU [INFO] 130. https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQAmhFpI8xXysgRmcC3yfMLUybuiR9dFpsHoA&usqp=CAU [INFO] 131. https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQ0ZmYE0cjJirIuiimEW56VDDfoP9nqxhHd2A&usqp=CAU [INFO] 132. https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcR4VVJOFdyUhdsn6gU3edNoT3HmfAH48rAnYA&usqp=CAU [INFO] 133. https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcT3YHTNWPZgzqJWInInYTZ1erSJntEr2P7rEQ&usqp=CAU [INFO] 134. https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcRPaUV6dqobcus_wTOuP-A-vSGxFVMitHjn8Q&usqp=CAU [INFO] 135. https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcT0DFspQX9ns9_gGakC6llApUo0pePdm55k-A&usqp=CAU [INFO] 136. https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQ1IL7GKBQWn3M6hiMsTlhoXprUF_rqanDw8Q&usqp=CAU [INFO] 137. https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcRpyItZh3PI3sFCZ5d0Pc5KcQdFkOC69OCxtA&usqp=CAU [INFO] 138. https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcRd0DXARG4bd8GcDfWuFXD3XvVCYuv_lwbAFg&usqp=CAU [INFO] 139. https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcRjSmthZfCO7-VGpBtjpYIklDh8nlfAmrqcEA&usqp=CAU [INFO] 140. https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTUPmpQGG2QHHqDTsvGNoktianp0uRouSzMhw&usqp=CAU [INFO] 141. https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQwtfWwWRyxg9_5mGZPd4CCVF4P5BnAzyGy-A&usqp=CAU [INFO] 142. https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcRrD3D5j9ji8v8bu4sUBx-rTa6NOVOZOmESVA&usqp=CAU [INFO] 143. https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcRgcVH6C9mXZawchPN68frwEdSsQSd6_pJiZw&usqp=CAU [INFO] 144. https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcSqT8NL_TO6xMP6Q25bI_167PtTFObZCqmixw&usqp=CAU [INFO] 145. https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcR1fLameL8MSPaNXqwU65C3IW_vKRjFb2XU3A&usqp=CAU [INFO] 146. https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcRUjOIPkSaKptFNy4J2kiGCr6KjIoIBrwJJNQ&usqp=CAU [INFO] 147. https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcS2w1M6n-99nhR_zgA_XqWaoSfXw6FTRmkfMQ&usqp=CAU [INFO] 148. https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcRZ1RgEP06tyIfv_kE6vNSlGu1-QNbcUCrzbA&usqp=CAU [INFO] 149. https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcT7-w11_0V3gi5WYeCAJ69PszfBFvWV_wbWQg&usqp=CAU [INFO] 150. https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcSTPNrxTJNSwn95TEFiM0r4a1XDDAFeVsLPew&usqp=CAU [INFO] 151. https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcSdt3XuyMHrtuGPhpy89ugSU2BwiilqaurTtg&usqp=CAU [INFO] 152. https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQgnmu4L6p3yaVLCUgBQPy8AA_OpbDrh2_2BA&usqp=CAU [INFO] 153. https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcRimGgXN3nxNLIig51Gxz8QcSgA2zjoXL5vGw&usqp=CAU [INFO] 154. https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcSHzODh4U709NnljN8voj_m7_m5Hn9hW2YA_w&usqp=CAU [INFO] 155. https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTt_WYiOwv1AUQpDPaIzHsXlU42fqDpItGVvA&usqp=CAU [INFO] 156. https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQKPxwwtcFh3yNVT6UJWiTa7bP_fnUj24kp1w&usqp=CAU [INFO] 157. https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcSD_dnhoOlb_R9wYlIXJnCEIcuBuGhfpr2nuQ&usqp=CAU [INFO] 158. https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQrJFBbXJkHpTbYviktbLTLO_LdjG7oVIdNng&usqp=CAU [INFO] 159. https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcSDBsRSN-qeow3uvOVHnUGiRP_yNKH0Rf_u4g&usqp=CAU [INFO] 160. https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTnuK5DW6pqIL9F_mrbXR2wjTrGEkEox2ohvw&usqp=CAU [INFO] 161. https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTYMd5CFxpERndjHunNYGYEbcfuD96aDtlKGw&usqp=CAU [INFO] 162. https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcRe6V6AOBVDahajv5ldeZO6km_CREgVtqKJow&usqp=CAU [INFO] 163. https://www.sun-sentinel.com/resizer/rkb2BX-SlT2yKWPuG8K5Am0ZFmA=/415x264/top/cloudfront-us-east-1.images.arcpublishing.com/tronc/IUPVFXCSJ5EVHNFGOWD6ZXVLJE.JPG [INFO] 164. https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcSoe65oi7d3Eg4pV7xYMIKntBzbu5dH4EyI7g&usqp=CAU [INFO] 165. https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQOX4DldeHwb51pDwE5b74ZWV7cR8INw_GYPA&usqp=CAU [INFO] 166. https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcRSE9Jr3WD-U8knsiWKyu14xS-SV-Rmo0vSaw&usqp=CAU [INFO] 167. https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcRnWKnp6N2VbYND8_CCucfWzxghlOy5YgV73A&usqp=CAU [INFO] 168. https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQJJc0gfpcTcuZImiI4yWpt03CKKyxkMLBTEw&usqp=CAU [INFO] 169. https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQaZU5nxLwQ_z-pd7XR6CacRwRuFhfke6UVCA&usqp=CAU [INFO] 170. https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcRoEvKlIwYFKSUVMl-mv1kMOOfmVxqe3_7D2g&usqp=CAU [INFO] 171. https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTWazHuMeooVtoVeuyrEihUTNif9LSTfEGiKQ&usqp=CAU [INFO] 172. https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTZ_UmM1yQjmJkEpzaEp9AL0AliqXy2bNGI5Q&usqp=CAU [INFO] 173. https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQkEszuzkjjvvvDzN5_pJ-7iC7M7YRTwF6KvA&usqp=CAU [INFO] 174. https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcRt35JE5g_cV8k7wHAc6oJxglg9xzOrxZbFZw&usqp=CAU [INFO] 175. https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcRRwV3x_Umv9zPizpATWeE6gWGMxThJ_Hjxfg&usqp=CAU [INFO] 176. https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQmWhDwEQEY_BiVdXHqprNBmJb8gZWvp5V2VA&usqp=CAU [INFO] 177. https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTtBi2tI9Ek7EXGxI3g65GwjOk0E9ZJ4OKDwA&usqp=CAU [INFO] 178. https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcS0e7W6XJrakAFR_q70sn9Pg0JfL8lA4U0oQQ&usqp=CAU [INFO] 179. https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQ91jLpZEl3h34gBbrDT_PajS5UNqqE1XtIUg&usqp=CAU [INFO] No more photos. [INFO] Google search ended [INFO] Saving Image... Please wait... [INFO] 0 .Image saved at: E:\1- Educational\1- FIU\4- Fall 2021\CAP 6150 -Advanced Sensor & loT Data Analysis with Deep learning\4- Project\Data\Img_scrp\Google-Image-Scraper-master\photos\crash collision incident i 95 florida0.jpg [INFO] 1 .Image saved at: E:\1- Educational\1- FIU\4- Fall 2021\CAP 6150 -Advanced Sensor & loT Data Analysis with Deep learning\4- Project\Data\Img_scrp\Google-Image-Scraper-master\photos\crash collision incident i 95 florida1.jpg [INFO] 2 .Image saved at: E:\1- Educational\1- FIU\4- Fall 2021\CAP 6150 -Advanced Sensor & loT Data Analysis with Deep learning\4- Project\Data\Img_scrp\Google-Image-Scraper-master\photos\crash collision incident i 95 florida2.jpg [INFO] 3 .Image saved at: E:\1- Educational\1- FIU\4- Fall 2021\CAP 6150 -Advanced Sensor & loT Data Analysis with Deep learning\4- Project\Data\Img_scrp\Google-Image-Scraper-master\photos\crash collision incident i 95 florida3.jpg [INFO] 4 .Image saved at: E:\1- Educational\1- FIU\4- Fall 2021\CAP 6150 -Advanced Sensor & loT Data Analysis with Deep learning\4- Project\Data\Img_scrp\Google-Image-Scraper-master\photos\crash collision incident i 95 florida4.jpg [INFO] 5 .Image saved at: E:\1- Educational\1- FIU\4- Fall 2021\CAP 6150 -Advanced Sensor & loT Data Analysis with Deep learning\4- Project\Data\Img_scrp\Google-Image-Scraper-master\photos\crash collision incident i 95 florida5.jpg

Not working in the Linux

In the linux while running the main.py script it has the following issue
[INFO] Image path not found. Creating a new folder.
[INFO] downloading chromedriver ver: 114.0.5735.16: https://chromedriver.storage.googleapis.com/114.0.5735.16/chromedriver_linux64.zip
[INFO] lastest chromedriver downloaded
[WARN] unable to download lastest chromedriver. the system will use the local version instead.
[INFO] Image path not found. Creating a new folder.
[WARN] unable to download lastest chromedriver. the system will use the local version instead.

class names changed?

Hi!
I love your code that I use from times to times since a long time.
I just tried it today and it seems that Google class names changed.
From the initial "python main.py" (of the last version) images tab is empty. I tryed to test possible class names from hand made example but I did not fix it.
Do you have the same problem from your site?
Best,
Greg

Error: net_error -113

For each file got this error, any help? Creates folder for request, but doesn't load any files.

[INFO] 2. https://3.bp.blogspot.com/-Z8yTLTu6GmQ/Vtq1ZXM1V5I/AAAAAAAAHF4/ldSnKFyBtxM/s2048-Ic42/Abdominea-minimiflora-02.jpg
[0508/212137.996:ERROR:ssl_client_socket_impl.cc(999)] handshake failed; returned -1, SSL error code 1, net_error -113

Whole log:

DevTools listening on ws://127.0.0.1:54574/devtools/browser/1ce146e0-de8c-4ffa-8eb9-c96967f03f3b
[INFO] Scraping for image link... Please wait.
[0508/213035.148:INFO:CONSOLE(1081)] "%c%s color: red; background: yellow; font-size: 24px; WARNING!", source: https://www.gstatic.com/_/mss/boq-search/_/js/k=boq-search.VisualFrontendUi.en_US.a94XfkQhYQk.es5.O/am=wNN_ALBDkH6NQCAAQjpAAoJYAMVjAgBQYA4R3AQ4KokCBCAEAGicHEAAFgAEBgAAAACAAgAAH4ABAAAAAACFdx4YCAAAAAAAAAAAIFQxAAAAAAAAADQRAAAAAAAB/d=1/excm=_b,_tp,searchview/ed=1/dg=0/wt=2/esmo=1/rs=AH7-fg67SHbLJCG-oKXW1j25TGH8pvxv9A/m=_b,_tp (1081)
[0508/213035.150:INFO:CONSOLE(1081)] "%c%s font-size: 18px; Using this console may allow attackers to impersonate you and steal your information using an attack called Self-XSS.
Do not enter or paste code that you do not understand.", source: https://www.gstatic.com/_/mss/boq-search/_/js/k=boq-search.VisualFrontendUi.en_US.a94XfkQhYQk.es5.O/am=wNN_ALBDkH6NQCAAQjpAAoJYAMVjAgBQYA4R3AQ4KokCBCAEAGicHEAAFgAEBgAAAACAAgAAH4ABAAAAAACFdx4YCAAAAAAAAAAAIFQxAAAAAAAAADQRAAAAAAAB/d=1/excm=_b,_tp,searchview/ed=1/dg=0/wt=2/esmo=1/rs=AH7-fg67SHbLJCG-oKXW1j25TGH8pvxv9A/m=_b,_tp (1081)
[INFO] 0. https://upload.wikimedia.org/wikipedia/commons/thumb/6/66/Abdominea_minimiflora.jpg/220px-Abdominea_minimiflora.jpg
[INFO] 1. https://www.researchgate.net/profile/Lv-Averyanov/publication/314035327/figure/fig1/AS:465679162843138@1488037972985/Abdominea-minimiflora-Hook-f-JJ-Sm-a-c-plant-in-flowers-inflorescence-and.png
[0508/213043.489:ERROR:ssl_client_socket_impl.cc(999)] handshake failed; returned -1, SSL error code 1, net_error -113
[0508/213043.935:ERROR:ssl_client_socket_impl.cc(999)] handshake failed; returned -1, SSL error code 1, net_error -113
[INFO] 2. https://3.bp.blogspot.com/-Z8yTLTu6GmQ/Vtq1ZXM1V5I/AAAAAAAAHF4/ldSnKFyBtxM/s2048-Ic42/Abdominea-minimiflora-02.jpg
[0508/213045.570:ERROR:ssl_client_socket_impl.cc(999)] handshake failed; returned -1, SSL error code 1, net_error -113
[0508/213046.003:ERROR:ssl_client_socket_impl.cc(999)] handshake failed; returned -1, SSL error code 1, net_error -113
[0508/213047.729:ERROR:ssl_client_socket_impl.cc(999)] handshake failed; returned -1, SSL error code 1, net_error -113
[0508/213048.193:ERROR:ssl_client_socket_impl.cc(999)] handshake failed; returned -1, SSL error code 1, net_error -113

Unable to get link

Hello, I tried your "main.py" but it doesn't work for me. It opens a new Chrome windows but the command lines show this
_[INFO] Image path not found. Creating a new folder.

DevTools listening on ws://127.0.0.1:53648/devtools/browser/5ba3586f-546e-4cf6-9b26-1b36e7df57cd
[INFO] Scraping for image link... Please wait.
[INFO] Unable to get link
[2800:10376:1121/180742.721:ERROR:device_event_log_impl.cc(215)] [18:07:42.720] USB: usb_service_win.cc:104 SetupDiGetDeviceProperty({{A45C254E-DF1C-4EFD-8020-67D146A850E0}, 6}) failed: Element not found. (0x490)
[2800:10376:1121/180742.727:ERROR:device_event_log_impl.cc(215)] [18:07:42.727] USB: usb_device_handle_win.cc:1048 Failed to read descriptor from node connection: A device attached to the system is not functioning. (0x1F)
[2800:10376:1121/180742.729:ERROR:device_event_log_impl.cc(215)] [18:07:42.729] USB: usb_device_handle_win.cc:1048 Failed to read descriptor from node connection: A device attached to the system is not functioning. (0x1F)
[2800:10376:1121/180742.787:ERROR:device_event_log_impl.cc(215)] [18:07:42.787] Bluetooth: bluetooth_adapter_winrt.cc:1164 RequestRadioAccessAsync failed: RadioAccessStatus::DeniedByUserWill not be able to change radio power.
[INFO] Unable to get link
[INFO] Unable to get link
[INFO] Unable to get link
[INFO] Unable to get link
[INFO] Unable to get link
[INFO] Unable to get link
[INFO] Unable to get link
[INFO] Unable to get link
[INFO] Unable to get link
[INFO] No more photos.
[INFO] Google search ended
[INFO] Saving Image... Please wait...
[INFO] Download Completed. Please note that some photos are not downloaded as it is not in the right format (e.g. jpg, jpeg, png)__

needless to say no image is downloaded. Do you know what I can change?

Skip images whose urls start with "https://encrypted-tbn0.gstatic.com/" because we are not able to download them

Hi, thanks for this helpful tool and the Youtube tutorial!
I am experiencing the same issue with #4
It seems that we can't download images whose url starts with "https://encrypted-tbn0.gstatic.com/".
(It will say they are downloaded, but they aren't.)
So sometimes we request say 1000 images but only 5 are downloaded.
I found this and modified the code in GoogleImageScraper.py line 103-104.
It now skips those images we are not able to download, which suits my needs.

for image in images:
                    #only download images that starts with http
                    src = image.get_attribute("src")
                    if(src[:4].lower() in ["http"]) and not (src.startswith("https://encrypted-tbn0.gstatic.com/")):
                        print("[INFO] %d. %s"%(count,image.get_attribute("src")))
                        image_urls.append(image.get_attribute("src"))
                        count +=1
                        break

Starting the scraper from a given point.

Hi there,

This is a great repo works really well! I was just wondering how you would go about adding the functionality that could resume scraping a search from a given point... In order to not get restricted, I am looking to scrape a number of images from a search, take a break for sometime then start again from the point that I previously left it at.

Many thanks!

support for gif

Can this be used to scrape GIF files from google images? Right now I only get the static image from the thumbnail, but I'd like the entire gif. Thank you!

Download from a specific link

Hi

Thank you so much for this code it's been amazing for downloads!!

I would like to find out, is there a way to get main.py to only download images linked to a specific website (Https://takelot.com)?

Our search links are descriptions that usually (70%) of the time download from that website, though we need all of them to download from that website, as the stock we get is linked to it.

So question is, can we specify where the images download? If you need a copy of the code please let me know

Thank you :)

handshake failed when downloading images

Hi, I encountered this handshake failure when downloading images, do you have any idea why this happens? thanks in advance!

[20700:21364:0123/151322.581:ERROR:ssl_client_socket_impl.cc(960)] handshake failed; returned -1, SSL error code 1, net_error -202

Unable to get link

When headless is True the script is unable to bypass the license agreement pop-up in chrome.
When headless is False I can accept it manually and the script continues to get links but does not download the images into the folder.

Not working and no error message

Followed the readme step by step but nothing happens when I launch the script in my terminal, the folders are created and then nothing.

Env : Ubuntu 20.04.5 LTS running on WSL

[macOS] chromedriver can't launch - "unable to download lastest chromedriver. the system will use the local version instead"

Without modifying anything and running the python3 main.py from Terminal, I get this:

python3 main.py
[INFO] installing new chromedriver
[INFO] downloading chromedriver ver: 110.0.5481.77: https://chromedriver.storage.googleapis.com/110.0.5481.77/chromedriver_mac64.zip
[WARN] unable to download lastest chromedriver. the system will use the local version instead.
[INFO] installing new chromedriver
[INFO] downloading chromedriver ver: 110.0.5481.77: https://chromedriver.storage.googleapis.com/110.0.5481.77/chromedriver_mac64.zip
[WARN] unable to download lastest chromedriver. the system will use the local version instead.

I can see the Chrome icon bouncing in the dock, but then stopping, and it repeats again. Is this some permission issue?
Also I can see it downloaded webdriver/chromedriver and webdriver/chromedriver_mac64.zip

2 things

Whilst I was asking for "Concept Cars" it was downloading them as it should but then this error popped up, it still continued to do its job though but I wondered if its something I can fix?

[1122/093618.911:INFO:CONSOLE(0)] "Mixed Content: The page at 'https://www.google.com/search?q=concept%20car&source=lnms&tbm=isch&sa=X&ved=2ahUKEwie44_AnqLpAhUhBWMBHUFGD90Q_AUoAXoECBUQAw&biw=1920&bih=947#imgrc=b7uOzF4DcMfOsM' was loaded over HTTPS, but requested an insecure element 'http://cdn.cnn.com/cnnnext/dam/assets/190710104659-bentley-exp-100-gt-1.jpg'. This request was automatically upgraded to HTTPS, For more information see https://blog.chromium.org/2019/10/no-more-mixed-messages-about-https.html", source: https://www.google.com/search?q=concept%20car&source=lnms&tbm=isch&sa=X&ved=2ahUKEwie44_AnqLpAhUhBWMBHUFGD90Q_AUoAXoECBUQAw&biw=1920&bih=947#imgrc=b7uOzF4DcMfOsM (0)

Also, I just went to find the images and only 1 appears in: Google-Image-Scraper\photos\concept car

I have other folders per the search terms and they're empty but according to cmd it has recieved other images, i can't locate them though currently.:
image

Why using time.sleep inside code?

I have seen the code uses time.sleep function which makes processing too slow and annoying. I have tested the code without this function it works fast and without any error.

It would be nice if this function can be removed in headless mode using arguments.

google colab scraper

Hi, this repo is awesome!!

I was wondering if you can have a ipynb notebook version that can directly save scrapped images on google drive.

I will try to produce that too and sumbit a pull request.

Thank you again for your awesome code samples.

[Typo] juypter_main.ipynb

Hello!
Not a huge problem just a typo. In jupyter_main.ipynb the line two of first cell has "rom GoogleImageScrapper import GoogleImageScraper", just change "rom" to "from.

Use it with local files

Can i use it with my own files, to detect and crop the face then save the images. if not in which part of the code is crop happening, id like to make it cropping from localfolder.

Issue when running the code

Unfortunately, when I run the code, the folder is created, but the pictures do not load and google chrome doesn't open neither. Could you please suggest what could be the reason?

Does not work on Linux

It work on windows. But when I run it on linux I get a loop:

[INFO] installing new chromedriver [INFO] downloading chromedriver ver: 107.0.5304.62: https://chromedriver.storage.googleapis.com/107.0.5304.62/chromedriver_linux64.zip [INFO] lastest chromedriver downloaded [INFO] installing new chromedriver [INFO] downloading chromedriver ver: 107.0.5304.62: https://chromedriver.storage.googleapis.com/107.0.5304.62/chromedriver_linux64.zip [INFO] lastest chromedriver downloaded [INFO] installing new chromedriver [INFO] downloading chromedriver ver: 107.0.5304.62: https://chromedriver.storage.googleapis.com/107.0.5304.62/chromedriver_linux64.zip [INFO] lastest chromedriver downloaded [INFO] installing new chromedriver [INFO] downloading chromedriver ver: 107.0.5304.62: https://chromedriver.storage.googleapis.com/107.0.5304.62/chromedriver_linux64.zip [INFO] lastest chromedriver downloaded

chrome closing

chrome open but it close and dont search or save any image

Stops searching for image URLs

When the code executes the following block

try:
#find and click image
imgurl = self.driver.find_element_by_xpath('//*[@id="islrg"]/div[1]/div[%s]/a[1]/div[1]/img'%(str(indx)))
imgurl.click()
missed_count = 0
except Exception:
#print("[-] Unable to click this photo.")
missed_count = missed_count + 1
if (missed_count>10):
print("[INFO] No more photos.")
break

And it hits google's "Related searches" it stops the code.
image

stuck on consent page

It was working fine 2 days ago and now it gets stuck at consent.google.com page and gets stuck at "[INFO] Unable to get link"
when i press accept all on the consent page it doesnt save and i wanna be able to put it on headless mode and not have to click on accept all all the time.
anyway to skip the page?

only thing i changed about the code was the terms it was searching for (thats not the problem tho)

edit: using chrome 103 with the corresponding chromedriver

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.