TheDen / badfood

Interactive map of restaurants in Sydney that have food penalties πŸ•πŸŒ―

Home Page:http://badfood.theden.sh/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

BadFood

Code Style License Code Style Github Pages HTML Javascript CSS Prettier Website Status

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.

Building

Data Crawler

Install the python3 requirements

pip install -r requirements.txt

Running

Data Crawling

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

Contributing

  • Issues and pull requests are welcome!
  • Thanks to Deedee lee for the BadFood logo

About

Interactive map of restaurants in Sydney that have food penalties πŸ•πŸŒ―

http://badfood.theden.sh/

License:GNU General Public License v3.0


Languages

Language:HTML 98.0%Language:Python 1.7%Language:Shell 0.3%