Skip to content

Instantly share code, notes, and snippets.

View adelaide01's full-sized avatar

Adelaide Chen adelaide01

View GitHub Profile
@adelaide01
adelaide01 / .block
Created March 28, 2020 19:07
d3 test
license: mit
@adelaide01
adelaide01 / .block
Created March 28, 2020 19:07
d3 test
license: mit
Scraping: Seminole - Supervisor of Elections
Writing results to JSON...
Updating the database...
True CDB1QRVM4 1572840708.000900
:red_siren: Error scraping Seminole - Supervisor of Elections
```Traceback (most recent call last):
File "/Users/adelaide/Desktop/elections-master/scripts/update.py", line 43, in updateRaceInfo
level=data[race]['level']
File "/Users/adelaide/Desktop/elections-master/virtualenv/lib/python3.7/site-packages/django/db/models/manager.py", line 82, in manager_method
return getattr(self.get_queryset(), name)(*args, **kwargs)
@adelaide01
adelaide01 / SimpleFolderProcess.py
Created October 21, 2019 18:17
batch processing in Python for Abbyy fine reader
#!/usr/bin/python
# Usage: process.py <input file> <output file> [-l <Language>] [-pdf|-txt|-rtf|-docx|-xml]
import shutil
import time
from os import listdir
from os.path import isfile, join