Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tuna-f1sh/bristol-choking
Scrapes air pollution data from the Bristol Air Quality website and displays it on a single page with binary yes or no based on the mean yearly legal limits.
https://github.com/tuna-f1sh/bristol-choking
air-quality flask pollution python scraping
Last synced: about 1 month ago
JSON representation
Scrapes air pollution data from the Bristol Air Quality website and displays it on a single page with binary yes or no based on the mean yearly legal limits.
- Host: GitHub
- URL: https://github.com/tuna-f1sh/bristol-choking
- Owner: tuna-f1sh
- License: mit
- Created: 2018-01-28T15:57:11.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2021-05-10T10:38:05.000Z (over 3 years ago)
- Last Synced: 2024-10-15T10:18:41.599Z (3 months ago)
- Topics: air-quality, flask, pollution, python, scraping
- Language: HTML
- Homepage: http://www.isbristolchoking.uk
- Size: 109 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# About
**20/01/2019: [Features in GCN 'How Toxic Is City Cycling? | GCN Investigates'](https://www.youtube.com/watch?v=ySzmo_sScQk)**
Source for my web app: [Is Bristol Choking](http://www.isbristolchoking.uk). Scrapes air pollution data from
the Bristol Air Quality website and displays it on a single page with binary
yes or no based on the legal limits.I rolled this together in a couple of mornings and free hours to learn Flask
and Python web app technologies. For this reason it is fairly rough around the
edges.## Systems Used
* [Flask](http://flask.pocoo.org/)
* [Bootstrap 4](https://v4-alpha.getbootstrap.com/) - example 'album' used as a template.
* [Flask SocketIO](https://flask-socketio.readthedocs.io/en/latest/) - for
async scraping on user loading page.
* [CSS Coding Animation](https://github.com/Chippd/css_loading_animation) -
used for loading placeholder.## Run
Create .env file with Google Maps API key or set environment variable.
```
pipenv install
pipenv run gunicorn app:app
```Visit [localhost:8000](http://localhost:8000) to see the site.