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

[capitolweb] scraper and parser refactor #27

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

will-horning
Copy link

This PR changes a bunch of things in the parser and scraper:

  1. I removed the celery stuff, that would only really be useful if we were doing more large scale (and by necessity distributed) pre-compute jobs. Both scraper and parser are run through custom manage.py commands.
  2. I separated the worker app into two apps: scraper and parser.
  3. Added some thin test coverage for both scraper and parser.
  4. Refactored the big parser function into a class that lazily computes each field using django's cached_property decorator.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant