I am new to Python and I am trying to get information on stock market prices from a website. If I use the following code:
data = [[td.text.strip() for td in tr.findChildren('td')]
for tr in table.findChildren('tr')]
I get the following error:
AttributeError: 'NoneType' object has no attribute 'findChildren'
Not sure how to go about fixing this. Any help would be appreciated.