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

Scottish Parliament Written Answers #176

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from
Draft

Scottish Parliament Written Answers #176

wants to merge 3 commits into from

Conversation

struan
Copy link
Member

@struan struan commented Aug 20, 2024

Fetches and parses Scottish Parliament written answers.

Uses the same framework as the main parser, only a bit simpler.

There's no headings or departments so it doesn't do anything nice for major and minor headings.

I've done a test on all of August and it seems to work fine, and it imports into my local TWFY, but I suspect there's going to be some corners to iron out.

It currently doesn't attempt to clean up the question or answer HTML so that might need adding in, and I'm not completely sure the search is grabbing all the questions we want because I don't totally understand the types of questions.

In theory it doesn't need to visit all the question pages because they are all in the main HTML it turns out but I did not realise that till I'd done each URL.

Fixes #185

@struan struan force-pushed the sp-wrans-2024 branch 4 times, most recently from cb503a4 to a3ec5cc Compare August 21, 2024 15:16
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.

Add Scottish Written Questions
1 participant