Skip to content

Latest commit

 

History

History
48 lines (32 loc) · 2.2 KB

README.md

File metadata and controls

48 lines (32 loc) · 2.2 KB

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