Im trying to grab information from the NYSE, specifically the class "flex_tr" with the html path of https://www.nyse.com/quote/XNGS:AAPL
html->body->div->div.sticky-header__main->div.landing-section->div.idc-container->div->div->div.row->div.col-lg-12.col-md-12->div.d-widget.d-vbox.d-flex1.DataTable-nyse->div.d-container.d-flex1.d-vbox.d-nowrap.d-justify-start.data-table-container.d-noscroll->div.d-flex1->div.d-vbox->div.d-flex-1.d-scroll-y->div.contentContainer->div.flex_tr
There are a ton of rows that this should be grabbing but i'm unable to get the contents of any currently. I've tried soup.find_all("div", class_="flex_tr")
and also soup.find_all("div", {"class": "flex_tr"})
and nothing seems to be able to grab the information.
from selenium import webdriver
from bs4 import BeautifulSoup
driver = webdriver.Chrome("C:\Program Files (x86)\Google\Chrome\Application\chromedriver.exe")
driver.get('https://www.nyse.com/quote/XNGS:AAPL')
content = driver.page_source
soup = BeautifulSoup(content, 'html.parser')
flex_tr = soup.find_all(class_="flex_tr")
print(flex_tr)
driver.close()