https://github.com/theden/badfood
Interactive map of restaurants in Sydney that have food penalties 🍕🌯
https://github.com/theden/badfood
bad food penalty python restaurant spider sydney
Last synced: 11 days ago
JSON representation
Interactive map of restaurants in Sydney that have food penalties 🍕🌯
- Host: GitHub
- URL: https://github.com/theden/badfood
- Owner: TheDen
- License: gpl-3.0
- Created: 2017-04-08T10:00:57.000Z (over 8 years ago)
- Default Branch: main
- Last Pushed: 2024-10-07T14:02:55.000Z (about 1 year ago)
- Last Synced: 2025-07-25T03:29:19.053Z (3 months ago)
- Topics: bad, food, penalty, python, restaurant, spider, sydney
- Language: HTML
- Homepage: http://badfood.theden.sh/
- Size: 5.41 MB
- Stars: 11
- Watchers: 1
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://badfood.theden.sh)
[](https://github.com/TheDen/badfood/issues)
[](/LICENSE)





[](https://github.com/prettier/prettier)
[](https://badfood.theden.sh/)[BadFood](http://badfood.theden.sh) shows a map of restaurants in Sydney that have been given a penalty from [The Department of Primary Industries Food Authority](http://www.foodauthority.nsw.gov.au/), specifically from the public [penalty notice](http://www.foodauthority.nsw.gov.au/penalty-notices/default.aspx?template=results) and [prosecutions](http://www.foodauthority.nsw.gov.au/offences/prosecutions) lists.
## Building
### Data Crawler
Install the python3 requirements
```shell
pip install -r requirements.txt
```## Running
### Data Crawling
To crawl the data from the notice list webpage, and store in in JSON format
```shell
GOOGLE_API_KEY="" scrapy runspider spiders/spider_notice_list.py -s USER_AGENT='Mozilla/5.0' -o notice_list.json
```For the prosecutions list
```shell
GOOGLE_API_KEY="" scrapy runspider spiders/spider_prosecutions_list.py -s USER_AGENT='Mozilla/5.0' -o prosecutions_list.json
```## Contributing
- Issues and pull requests are welcome!
- Thanks to [Deedee lee](http://github.com/deedeedeeps) for the BadFood logo