I found I was missing a bunch of Senate votes, and it looks like I'm having an error in the scrape process. It might be a problem w/ my environment missing some dependencies or something, since I'm not a Python guy. Maybe you guys can see the problem.
Here is an example...
./run votes --vote_id=s195-110.2008 --force
Going to fetch 1 votes from congress #110 session 2008
Errors for 1 items:
[s195-110.2008] Exception:
Traceback (most recent call last):
File "tasks/utils.py", line 100, in process_set
results = fetch_func(id, options, *extra_args)
File "tasks/vote_info.py", line 57, in fetch_vote
parse_senate_vote(dom, vote)
File "tasks/vote_info.py", line 174, in parse_senate_vote
"congress": int(dom.xpath("number(document/document_congress)")),
ValueError: cannot convert float NaN to integer
ValueError: time data '' does not match format '%B %d, %Y, %I:%M %p'
[s2-110.2008] Exception:
Traceback (most recent call last):
File "tasks/utils.py", line 100, in process_set
results = fetch_func(id, options, *extra_args)
File "tasks/vote_info.py", line 57, in fetch_vote
parse_senate_vote(dom, vote)
File "tasks/vote_info.py", line 148, in parse_senate_vote
vote["record_modified"] = parse_date(dom.xpath("string(modify_date)"))
File "tasks/vote_info.py", line 145, in parse_date
return datetime.datetime.strptime(d, "%B %d, %Y, %I:%M %p")
File "/usr/local/lib/python2.7/_strptime.py", line 325, in _strptime
(data_string, format))