Scottish Parliament Written Answers #176
Draft
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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