https://github.com/bjacobel/bosfoodfails
Tweeting health code violations of Boston restaurants.
https://github.com/bjacobel/bosfoodfails
govtech lambda open-data twitter
Last synced: about 2 months ago
JSON representation
Tweeting health code violations of Boston restaurants.
- Host: GitHub
- URL: https://github.com/bjacobel/bosfoodfails
- Owner: bjacobel
- Created: 2015-12-29T04:17:33.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2017-03-12T15:53:34.000Z (over 9 years ago)
- Last Synced: 2025-12-26T18:49:20.079Z (6 months ago)
- Topics: govtech, lambda, open-data, twitter
- Language: Python
- Homepage: https://twitter.com/bosfoodfails
- Size: 479 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
###bosfoodfails
Get recent "food establishment" inspection violations and tweet them to [@bosfoodfails](https://twitter.com/bosfoodfails).
Uses AWS Lambda, AWS KMS, AWS DynamoDB and the Socrata API ([data.cityofboston.gov](https://data.cityofboston.gov)'s Open Data vendor).
####Deploy to Lambda:
./deploy.sh
Cron settings for event source: `cron(*/20 0-2,12-23 ? * * *)`
####KMS secret management:
Encrypt:
aws --profile bjacobel kms encrypt --key-id --plaintext "" --query CiphertextBlob --output text | base64 --decode > ./secrets/
Decrypt:
with open('./secrets/', 'rb') as f:
print(kms.decrypt(
CiphertextBlob=f.read()
)['Plaintext'])