BadFood shows a map of restaurants in Sydney that have been given a penalty from The Department of Primary Industries Food Authority, specifically from the public penalty notice and prosecutions lists.
Install the python3 requirements
pip install -r requirements.txt
To crawl the data from the notice list webpage, and store in in JSON format
GOOGLE_API_KEY="<YOUR_API_KEY>" scrapy runspider spiders/spider_notice_list.py -s USER_AGENT='Mozilla/5.0' -o notice_list.json
For the prosecutions list
GOOGLE_API_KEY="<YOUR_API_KEY>" scrapy runspider spiders/spider_prosecutions_list.py -s USER_AGENT='Mozilla/5.0' -o prosecutions_list.json
- Issues and pull requests are welcome!
- Thanks to Deedee lee for the BadFood logo