ultralytics / google-images-download

Google/Bing Images Web Downloader
https://ultralytics.com
GNU Affero General Public License v3.0
294 stars 84 forks source link

Solved find_element_by_tag_name deprecated error #14

Closed FareedKhan-dev closed 7 months ago

FareedKhan-dev commented 1 year ago

I encountered a very basic issue within this repository (While running bing_scraper.py)

'WebDriver' object has no attribute find_element_by_tag_name.


Since find_element_by_tag_name has been depreciated in Selenium. Source 1: Official Documentation Link Source 2: GitHub Issue

The alternative approach is to use find_element(By.TAG_NAME, "your_html_tag"), as I have updated the bing_scraper.py, Kindly review it.

Thank you!

I have read the CLA Document and I sign the CLA

๐Ÿ› ๏ธ PR Summary

Made with โค๏ธ by Ultralytics Actions

๐ŸŒŸ Summary

Enhanced compatibility for Bing image scraper with latest Selenium practices.

๐Ÿ“Š Key Changes

๐ŸŽฏ Purpose & Impact

glenn-jocher commented 7 months ago

@FareedKhan-dev PR merged, thank you for your contributions!