Enhancements to Bing image scraping in Ultralytics' Google Images Download tool.
📊 Key Changes
Imported By class from selenium.webdriver.common.by.
Modified image scraping code to use By.TAG_NAME instead of find_element_by_tag_name.
🎯 Purpose & Impact
Purpose: To align with the latest Selenium best practices which recommend using the By class for locating elements.
Impact: Ensures the scraper's compatibility with newer versions of Selenium, increasing the tool's reliability and maintainability. This may improve user experience by providing more consistent results when downloading images. 🔄🔍📈
find_elementby and find_elementsby are deprecated
element = browser.find_element(By.TAG_NAME, 'body')
🛠️ PR Summary
Made with ❤️ by Ultralytics Actions
🌟 Summary
Enhancements to Bing image scraping in Ultralytics' Google Images Download tool.
📊 Key Changes
By
class fromselenium.webdriver.common.by
.By.TAG_NAME
instead offind_element_by_tag_name
.🎯 Purpose & Impact
By
class for locating elements.