I am trying to scrape the texts from a website with BeutifulSoup + python-requests. But it is only getting []
as an output.
from bs4 import BeautifulSoup
import requests
import urllib.request
page = requests.get("https://www.adsbhub.org/stations.php")
soup = BeautifulSoup(page.content, "lxml")
table = soup.find_all('table', id="jqGridUsers")
print(table)
The above gives me a table that I need to scrape values.
Output:
[<table id="jqGridUsers"></table>]
But when I try to extract the data and find tr
in the table it returns an empty list.
What am I doing wrong?