Scripts and Jupyter notebooks to download and analyse unanswered Parliamentary written questions (PWQs) from TheyWorkForYou.
How to collect data
First collect the URLs of written answers from TheyWorkForYou:
./get_answer_urls.py --year 2023
Then scrape the raw data:
python scrape.py
How to run the analysis
Use the notebook with your own data stored locally.
How to cite
This repo is published under a CC-BY-SA licence, meaning that you may use the code and findings freely in your own research (including commercially) as long as you cite the authors clearly.
Please cite the repo as follows: Powell-Smith A., Centre for Public Data, Analysis of Unanswered Questions in the UK Parliament (2022), GitHub repository, https://github.com/centreforpublicdata/written-answers.
Also, if you remix, adapt, or build upon the material, you must license your modified material under a CC-BY-SA licence.