Issue
from selenium import webdriver
driver = webdriver.Chrome(executable_path=r"C:\Users\chromedriver.exe")
driver.get("https://www.bestbuy.com/site/promo/health-fitness-deals")
tag = driver.find_elements_by_tag_name('h4')
for a in tag:
for link in a.find_elements_by_tag_name('a'):
print(link.get_attribute("href"))
Main Page that is being loaded by the website :
The page that I want to scrape : https://www.bestbuy.com/site/promo/health-fitness-deals
Solution
you can use this link instead https://www.bestbuy.com/site/promo/health-fitness-deals?intl=nosplash
so basically you'll add intl=nosplash
to the link
Answered By - unknown989
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.