Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DB handler updates #78

Merged
merged 61 commits into from
Oct 9, 2020
Merged

DB handler updates #78

merged 61 commits into from
Oct 9, 2020

Conversation

Acesonnall
Copy link
Owner

@Acesonnall Acesonnall commented Oct 9, 2020

  • DB handler support for latest scrapers
  • converted latest scrapers passing phase 2 to work with db handler
  • added function to set schema in mongodb
  • added code to dump upload issues to a json file
  • Iowa phase 2 complete and added to db
  • Wisconsin phase 2 complete and added to db

Acesonnall and others added 30 commits September 11, 2020 22:36
…results later and documentation to wisconsin later as well
…gs to get it to work on your OS. For Arkansas scrapper, I sectioned everything out into individual functions to reduce complexity. Will document methods at a later time.
…as specific by env vars. Also ran IDE and Black formatter and made other small updates to other files.
… they abide by formatting rules. Does not currently work for loading city election office data, but that's an easy fix. We didn't have any test data yet for that so I didn't want to get too ahead of myself.
# Conflicts:
#	scrapers/michigan/michigan_scraper.py
#	scrapers/ohio/Ohio_Formatted.py
#	scrapers/ohio/ohio_scraper.py
#	scrapers/zip_county_mapping/zip_to_county.py
…es can be installed with ```pip install -r requirements.txt```. Updated some documentation.
* arizona scraper phase 2 complete.

* california scraper complete

Co-authored-by: Paulo Nascimento <pnascimento@uchicago.edu>
* north carolina done; florida init

* Revert "north carolina done; florida init"

This reverts commit 8d7cf96.

* north carolina scraper

* ohio scraper

* maine scraper

* Adding end of line character

Adding new line to end of file to comply with PEP8 rules.

* Adding end of line character

Adding new line to end of file to comply with PEP8 rules.

* florida scraper

* initial michigan scraper

* adding git ignore - completed michigan scraper

* florida phase 2

* finished north carolina | maine in progress | slight tweak to michigan

Co-authored-by: riya <riyaagar96@gmail.com>
Co-authored-by: Omar Taylor <omtaylor@iastate.edu>
* removed misleading print msg from AZ | state initials -> full names for CA & NC

* fixed misnamed field for california | added "X County Election Office"
* arizona scraper phase 2 complete.

* california scraper complete

* Minnesota scraper phase 2 complete

Co-authored-by: Paulo Nascimento <pnascimento@uchicago.edu>
* arizona scraper phase 2 complete.

* california scraper complete

* Minnesota scraper phase 2 complete

* texas phase 2 is done

Co-authored-by: Paulo Nascimento <pnascimento@uchicago.edu>
…results later and documentation to wisconsin later as well
…as specific by env vars. Also ran IDE and Black formatter and made other small updates to other files.
… they abide by formatting rules. Does not currently work for loading city election office data, but that's an easy fix. We didn't have any test data yet for that so I didn't want to get too ahead of myself.
…results later and documentation to wisconsin later as well
…as specific by env vars. Also ran IDE and Black formatter and made other small updates to other files.
… they abide by formatting rules. Does not currently work for loading city election office data, but that's an easy fix. We didn't have any test data yet for that so I didn't want to get too ahead of myself.
…results later and documentation to wisconsin later as well
…as specific by env vars. Also ran IDE and Black formatter and made other small updates to other files.
… they abide by formatting rules. Does not currently work for loading city election office data, but that's an easy fix. We didn't have any test data yet for that so I didn't want to get too ahead of myself.
…as specific by env vars. Also ran IDE and Black formatter and made other small updates to other files.
… they abide by formatting rules. Does not currently work for loading city election office data, but that's an easy fix. We didn't have any test data yet for that so I didn't want to get too ahead of myself.
…results later and documentation to wisconsin later as well
…as specific by env vars. Also ran IDE and Black formatter and made other small updates to other files.
… they abide by formatting rules. Does not currently work for loading city election office data, but that's an easy fix. We didn't have any test data yet for that so I didn't want to get too ahead of myself.
# Conflicts:
#	definitions.py
#	scrapers/florida/florida_scraper.py
#	scrapers/north_carolina/north_carolina_scraper.py
#	scrapers/ptv_db_handler.py
…es server. Feel free to build off of this or just use for reference and delete things not needed.
…es server. Feel free to build off of this or just use for reference and delete things not needed.
…es server. Feel free to build off of this or just use for reference and delete things not needed.

Also texas is passing validator
# Conflicts:
#	lib/scrapers/florida/florida_scraper.py
#	lib/scrapers/georgia/georgia_scraper.py
#	lib/scrapers/michigan/michigan_scraper.py
#	lib/scrapers/north_carolina/north_carolina_scraper.py
#	lib/scrapers/texas/texas_scraper.py
…rs that completed phase 2 to work with db handler
…rs that completed phase 2 to work with db handler
…lections. Updates to scrapers that completed phase 2 to work with db handler
@Acesonnall Acesonnall merged commit bfc4c05 into master Oct 9, 2020
Operation: Save the 2020 Election automation moved this from Under Review to Done Oct 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

[DB Handler] Add Support For More States Format Wisconsin Scraper Output Format Iowa Scraper Output
3 participants