Skip to content

Conversation

@GeoWill
Copy link
Contributor

@GeoWill GeoWill commented Jun 12, 2021

Port of https://github.com/wdiv-scrapers/dc-base-scrapers

Rational is to only have maintain one set of tooling/checks/deployment stuff around scraping 'types of thing' from multiple councils.
We will have to do this quite well for the reps work, so we might as well reap the benefits for polling stations - which neede some love anyway.

@GeoWill GeoWill force-pushed the WiP-pollingstations-refactor branch 2 times, most recently from 693ffb8 to d6a29c3 Compare June 14, 2021 11:30
GeoWill added 5 commits June 14, 2021 12:31
Our current scraping model deals with all the stations and all the
districts, so for now I'm just going to reimplement that here. If
there's some advantage to scraping individual stations/districts that
can be handled down the line.
@GeoWill GeoWill force-pushed the WiP-pollingstations-refactor branch from d6a29c3 to e8d89c0 Compare June 14, 2021 11:34
from lgsf.path_utils import load_scraper, load_council_info


class Command(PerCouncilCommandBase):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Feels like a large chunk of this file could be refactored in to a common file - it's largely the same as the councillors one, and it would be good to keep the outputs and interfaces as similar as we can I think.

This can be an issue of course, not needed for this PR

from lgsf.polling_stations.scrapers.xml_scrapers import GmlScraper


class Scraper(GmlScraper):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FWIW, I think this is really nice and readable. Not convinced that having two classes (PollingScraper and DistrictsScraper) would be any easier for a developer to work on. There might be other reasons to have them of course.

@GeoWill GeoWill force-pushed the WiP-pollingstations-refactor branch from 52f858f to 60c43df Compare June 15, 2021 08:12
@GeoWill GeoWill mentioned this pull request Jul 8, 2021
@symroe symroe force-pushed the master branch 2 times, most recently from 7dc5520 to 0cc3fbe Compare June 24, 2025 20:12
@symroe symroe force-pushed the master branch 7 times, most recently from ef3fb0d to f564c99 Compare October 25, 2025 09:20
@symroe symroe force-pushed the master branch 3 times, most recently from 1e6bca7 to b6d2c5f Compare November 5, 2025 15:59
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.

3 participants