{"id":18647244,"url":"https://github.com/ttitcombe/parliamentarypetitionparser","last_synced_at":"2025-11-05T06:30:28.003Z","repository":{"id":115040356,"uuid":"177978338","full_name":"TTitcombe/ParliamentaryPetitionParser","owner":"TTitcombe","description":"A handy code wrapper to retrieve and parse data from the UK Parliamentary Petitions website","archived":false,"fork":false,"pushed_at":"2019-03-28T08:15:49.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-12-27T12:11:35.738Z","etag":null,"topics":["choropleth","data-mining","data-science","parliament","parliamentary-data","political-science","politics","python","uk-politics"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/TTitcombe.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-03-27T11:16:30.000Z","updated_at":"2019-03-28T08:45:10.000Z","dependencies_parsed_at":null,"dependency_job_id":"90b7bc18-c023-4e58-a1b8-3e4fa9b7952c","html_url":"https://github.com/TTitcombe/ParliamentaryPetitionParser","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TTitcombe%2FParliamentaryPetitionParser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TTitcombe%2FParliamentaryPetitionParser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TTitcombe%2FParliamentaryPetitionParser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TTitcombe%2FParliamentaryPetitionParser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TTitcombe","download_url":"https://codeload.github.com/TTitcombe/ParliamentaryPetitionParser/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239449585,"owners_count":19640535,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["choropleth","data-mining","data-science","parliament","parliamentary-data","political-science","politics","python","uk-politics"],"created_at":"2024-11-07T06:25:21.393Z","updated_at":"2025-11-05T06:30:27.958Z","avatar_url":"https://github.com/TTitcombe.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ParliamentaryPetitionParser\nA handy code wrapper to retrieve and parse data from the [UK Parliamentary Petitions website](https://petition.parliament.uk/).\n\nThis code accepts petition numbers, and automatically collects, parses, and saves data associated with that petition.\nThe data collected and parsed from the petition can be saved in a time-separated manner to allow analysis of the petition's evolution over time.\n\n## Requirements\nThis repo is written for Python 3. Python 2 compatibility is not guaranteed.\nSee requirements.txt for a list of python packages this code depends on.\n\n## How To Use\n*This repo is in the early stages of development*\n1. Clone this repo and install the required packages.\n2. Find out the petition number of the petition for which you would like to collect data\n3. Find the path to the directory to which you would like data to be saved, *relative to the top-level* **ParliamentaryPetitionParser** *directory*. This defaults to **data/**.\n4. In the **ParliamentaryPetitionParser** directory, run `python -m src.petition --petition_number=NUM --output_dir=DIR`, \nwhere NUM is the petition number and DIR is the save directory.\n5. Check your output directory location. You will have two files: **constituency** and **country**, which\nare prefixed by year_month_day_hour_minute_ and suffixed by the petition number.\n\nYou can also set **ParliamentaryPetitionParser** to collect data every X minutes. To do this, run\n`python -m src.petition --petition_number=NUM --output_dir=DIR --frequency=X`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fttitcombe%2Fparliamentarypetitionparser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fttitcombe%2Fparliamentarypetitionparser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fttitcombe%2Fparliamentarypetitionparser/lists"}