Closed abrie closed 2 years ago
did a test run locally and got an error (I'm glad to look into it, but just sharing along for now)
% source venv/bin/activate
% pip install -r requirements.txt
% python3 dekalb_scraper.py --output csv > dekalb_scrape_202201180929.csv
Output:
Scraping Dekalb County court cases per judicial officer...
ID Name
282 Adams, Gregory A.
Traceback (most recent call last):
File "dekalb_scraper.py", line 149, in <module>
run(args.output)
File "dekalb_scraper.py", line 123, in run
for fields in fields_of_interest
File "dekalb_scraper.py", line 123, in <listcomp>
for fields in fields_of_interest
TypeError: unsupported operand type(s) for |: 'dict' and 'dict'
Which version of Python are you using? The |
operand is only present in Python 3.9+.
mine is 3.7.9
Options:
thoughts on which approach is bettter?
going forward w/ running a test using Python 3.9 (it's working so far) - will document that requirement in README. note to self: using virtualenv to run different Python versions
Succeeded, merging
This PR addresses the missing fields noted in Issue #5. It adds CaseNumber and JudicialOfficer.