Parses Publix BOGO items based on search terms and publishes them to producers like Twitter and console.
- Python 3.10.x
- (Optional) Twitter API Credentials
- Clone the repository
- Install the dependencies
pip install -r requirements-dev.txt
- Copy file
config.template.ini
and save it assrc/config.ini
- Modify the relevant information in
config.ini
- Fill out the URL for parsing the Publix Ads (Go to the Publix Ads page and scroll to the bottom for "WEEKLY AD ACCESSIBILITY". One of the pages in that area is what is currently being used)
- Execute
main.py
pip install -r requirements-minimum.txt
- run tests
- execute program to use the Console Producer
pip freeze > requirements.txt
- Clone the repository
- Install the dependencies
pip install -r requirements.txt
- Copy file
config.template.ini
and save it assrc/config.ini
- Modify the relevant information in
config.ini
- Fill out the URL for parsing the Publix Ads (Go to the Publix Ads page and scroll to the bottom for "WEEKLY AD ACCESSIBILITY". One of the pages in that area is what is currently being used)
- Test it out
cd src
and executepython -c 'from publix_bogos.main import *; lambda_handler("", "");'
- Zip the project files
cd src
andzip -r ~/bogo.zip publix_bogos config.ini -x "*__pycache__*"
- Add projects dependencies (
site-packages
). cd tosite-packages
(python -m site
) and execute this commandzip -r ~/bogo.zip .
Property | Description |
---|---|
level | Set logging level. ex. DEBUG, INFO, WARN, or ERROR |
Property | Description |
---|---|
url | URL for parsing the Publix Ads. Go to the Publix Ads page and scroll to the bottom for "WEEKLY AD ACCESSIBILITY". Choose one of the pages withing Accessibility to use the copy and paste the url into this property. |
keywords | Keywords to use to match for notification. Separate keywords with a comma (ex beer,lager,ale,pilsner,ipa ). |
prefix_text | Text to put at the beginning of the notification |
postfix_text | Text to put at the end of the notification |
no_bogo_text | Text to use if there are no keyword matches |
producers | Names of producers to enable. Choose from: 'twitter_producer', 'logging_producer', etc. |
If the section does not exist the output will only be to the console. If you would like to post to twitter apply for a developer account and enter in required info in this section.