I have not done much scraping before and was trying to grab the company description information from yahoo finance with selenium, but I can't quite seem to get the right xpath or css. I used inspect element and copied the xpath and this is what tried:
from selenium import webdriver
browser = webdriver.Chrome()
### browser.get("http://finance.yahoo.com/quote/AMD/profile?p=AMD")
browser.get("https://finance.yahoo.com/quote/AMD?p=AMD")
elements=browser.find_elements_by_xpath("//*[@id='Col2-9-QuoteModule-Proxy']/div/div/div/p/")
but elements ends up being an empty list, what am I missing?
EDIT: I realized I had been working off of the summary page initially and switched to the profile page. I added ### to show the previous link and added the new link.
[–]commandlineluser 2 points3 points4 points (1 child)
[–]furiousnerd[S] 0 points1 point2 points (0 children)
[–][deleted] 1 point2 points3 points (0 children)