Enhanced compatibility for Bing image scraper with latest Selenium practices.
๐ Key Changes
Imported By class from the selenium.webdriver.common.by module.
Replaced the deprecated find_element_by_tag_name with the updated find_element method, utilizing the By class for specifying the element search criteria.
๐ฏ Purpose & Impact
Purpose: The update ensures that the Bing scraper in the repository is using the latest Selenium methods, maintaining compatibility with newer versions of the Selenium package.
Impact: Users of the scraper will benefit from code that adheres to the current best practices, potentially resulting in more reliable scraping and less maintenance work due to deprecated functionality. ๐ ๏ธ๐
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 inSelenium
. Source 1: Official Documentation Link Source 2: GitHub IssueThe alternative approach is to use
find_element(By.TAG_NAME, "your_html_tag")
, as I have updated thebing_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
By
class from theselenium.webdriver.common.by
module.find_element_by_tag_name
with the updatedfind_element
method, utilizing theBy
class for specifying the element search criteria.๐ฏ Purpose & Impact