Skip to content

TheDen/badfood

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

90 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

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 ๐Ÿ•๐ŸŒฏ

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published