Hard time scraping/capturing website tables

I am attempting to capture data from a website that is stored in tables. There are a total of 4 tables and the first two are capturing correctly, but the last two are returning as Empty DataFrames. I don’t know if it’s because the last two tables are buried too deep in the HTML or if it is because the tables are taking longer to load. I’ve also started trying out Selenium to see if that helps with the tables load times, but haven’t had luck there yet either.

Thanks

import sys import time import requests import pandas as pd  r = requests.get("https://netcapital.com/companies/ghost") dfs = pd.read_html(r.text) dfs 

Output

Add Comment
0 Answer(s)

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.