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

[WIP] Refactor for scraped #18

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

Conversation

chrismytton
Copy link
Contributor

This moves the scraper to use Scraped subclasses. This should make maintaining the scraper much easier.

Part of everypolitician/everypolitician-data#16427

This maps between a Spanish date and an ISO representation of that date.
Following links with session information doesn't work correctly with
Ruby's open-uri, so rather than using Capybara this simply strips away
the session information.
This is the scraper class for the individual pages. It's a rough port of
the old procedural version, but tidied up to take advantage of Scraped's
class approach.
This is responsible for getting the lists of members and handling
pagination.
This switches over to the new Scraped-based classes.
…factor

This branch contains a fix for the AbsoluteUrl decorator where an
exception is raised when an invalid `mailto:` link is encountered. We've
bumped into that issue, so point to that branch to avoid it for now.
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