Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mpenkov/prezident2018
Scrape izbirkom.ru for election results, perform some basic exploratory data analysis
https://github.com/mpenkov/prezident2018
Last synced: 20 days ago
JSON representation
Scrape izbirkom.ru for election results, perform some basic exploratory data analysis
- Host: GitHub
- URL: https://github.com/mpenkov/prezident2018
- Owner: mpenkov
- Archived: true
- Created: 2018-03-11T10:46:01.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-03-23T03:23:24.000Z (over 6 years ago)
- Last Synced: 2024-07-31T19:18:22.821Z (4 months ago)
- Language: HTML
- Homepage:
- Size: 14.2 MB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# prezident2018
Collecting and analyzing results of the 2018 Russian presidential election.
A copy of the most recently collected results is in scrapyproject/results.json.gz
## Scraping
You'll need the required packages first:
pip install -r requirements.txt
To scrape the results, run:
cd scrapyproject
scrapy runspider -t lines prezident2018/spiders/myspider.py -o results.json## Testing
py.test scrapyproject
## Analyzing
See the following Jupyter notebooks:
- Introduction.ipynb: describes the data set and shows some examples of working with it
- Graphs.ipynb: some graphing examples
- Turnout.ipynb: analyzing the election turnout