cschnaars / FEC-Scraper-Toolbox

Python tools to scrape, load and manage campaign finance data housed on the Federal Election Commission website
22 stars 6 forks source link

Getting run time exception : TypeError: 'SRCDELIMITER' is an invalid keyword argument for this function #5

Open ahmedmohiduet opened 8 years ago

ahmedmohiduet commented 8 years ago

A part of my logs giving: processing... 168192.fec Traceback (most recent call last): File "parse_reports.py", line 4471, in filehdr = parse_data_row(filehdr, SRCDELIMITER) File "parse_reports.py", line 485, in parse_data_row for x in csv.reader([data], SRCDELIMITER=',', quotechar='"'): TypeError: 'SRCDELIMITER' is an invalid keyword argument for this function

Am I missing something here!

mindcrime commented 8 years ago

Wait, I think I may know what is happening. I was running this before with no errors, and just now I saw this error for the first time. At first I thought nothing had changed, but I just realized that I changed my download date range to include 1 more year of history than previously. I went from grabbing everything from Jan 1 2009 to now, to grabbing everything from Jan 1 2008 to now. I suspect the 2008 data is different, and this is causing the problem.

mindcrime commented 8 years ago

I'm re-running my download/processing now, will update this if I can definitely identify what's going on.