30-Days-of-Python icon indicating copy to clipboard operation
30-Days-of-Python copied to clipboard

name 'table_data_dicts' is not defined

Open rezaizadijahromi opened this issue 4 years ago • 1 comments

Traceback (most recent call last): File "scrape.py", line 96, in run(start_year=start, years_ago=count) File "scrape.py", line 77, in run finished = parse_and_extract(url, name=start_year) File "scrape.py", line 56, in parse_and_extract table_data_dicts.append(row_dict_data) NameError: name 'table_data_dicts' is not defined

rezaizadijahromi avatar Aug 08 '20 20:08 rezaizadijahromi

To remove this error you should have to define the empty dictionary as follows- table_data_dicts = { }

ritik1234 avatar Oct 01 '20 05:10 ritik1234