Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of github.com:jacksonj04/leeds-city-council-mem…
…bers
- Loading branch information
Showing
2 changed files
with
31 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,22 @@ | ||
This is a scraper that runs on [Morph](https://morph.io). To get started [see the documentation](https://morph.io/documentation) | ||
# Leeds City Council Members Scraper | ||
|
||
A scraper which looks at the [table of councillors on the Leeds City Council website](https://democracy.leeds.gov.uk/mgMemberIndex.aspx?VW=TABLE&PIC=1&FN=), then at each individual councillor's page in turn to figure out their elected terms. | ||
|
||
This scraper [runs on Morph](https://morph.io/jacksonj04/leeds-city-council-members) on a daily basis. | ||
|
||
[![Maintainability](https://api.codeclimate.com/v1/badges/b65763a805de7e4711ea/maintainability)](https://codeclimate.com/github/jacksonj04/leeds-city-council-members/maintainability) | ||
|
||
## Why? | ||
|
||
The data is used to inform two comparisons with the data in Wikidata, with the aim of keeping Wikidata up to date. These are: | ||
|
||
* [A comparison of all _current_ councillors](https://www.wikidata.org/wiki/User:Jacksonj04/Leeds/Prompt) | ||
* [A comparison of _all_ councillor memberships](https://www.wikidata.org/wiki/User:Jacksonj04/Leeds/Prompt/All) | ||
|
||
In theory, neither of these pages should highlight any differences. | ||
|
||
## Mapping IDs | ||
|
||
Leeds City Council IDs need mapping to Wikidata IDs - this is done in [`lcc_id_map.py`](https://github.com/jacksonj04/leeds-city-council-members/blob/master/lcc_id_map.py). Missing IDs are flagged at the end of a scraper run. | ||
|
||
All IDs in this list are scraped, even if they are not current councillors. This lets us keep a historic comparison. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters