If one tries to run python scrape.py with the data.csv in the repo, the following error occurs:
Traceback (most recent call last):
File "scrape.py", line 76, in <module>
urls_to_visit = generate_baseurl()
File "scrape.py", line 50, in generate_baseurl
monthsyears = fill_in_the_blanks()
File "scrape.py", line 39, in fill_in_the_blanks
last_scrape = get_last_scrape_date('data.csv')
File "scrape.py", line 28, in get_last_scrape_date
i = r.fieldnames.index('Scrape_Date')
ValueError: 'Scrape_Date' is not in list
data.csv has no headers in it, so the CSV DictReader isn't able to identify column names. It's not clear looking at the file what the headers are, unfortunately.
If one tries to run
python scrape.py
with thedata.csv
in the repo, the following error occurs:data.csv
has no headers in it, so the CSV DictReader isn't able to identify column names. It's not clear looking at the file what the headers are, unfortunately.