I'm trying to scrape a table from a webpage using Selenium and BeautifulSoup but I'm not sure how to get to the actual data using BeautifulSoup.
webpage: https://leetify.com/app/match-details/5c438e85-c31c-443a-8257-5872d89e548c/details-general
I tried extracting table rows (tag <tr>) but when I call find_all, the array is empty.
When I inspect element, I see several elements with a tr tag, why don't they show up with BeautifulSoup.find_all() ??
I tried extracting table rows (tag <tr>) but when I call find_all, the array is empty.
Code:
from selenium import webdriver
from bs4 import BeautifulSoup
driver = webdriver.Chrome()
driver.get("https://leetify.com/app/match-details/5c438e85-c31c-443a-8257-5872d89e548c/details-general")
html_source = driver.page_source
soup = BeautifulSoup(html_source, 'html.parser')
table = soup.find_all("tbody")
print(len(table))
for entry in table:
print(entry)
print("\n")