Inspired by features of BankofAmerica-Web-Scraper. The module utilizes Selenium to login to your Bank of America Cash Back BankAmeriDeals® account, select all available deals, activate them, and scrape the selected deals. The scraped deals can be output in either JSON or HTML format.
The account credentials are stored in a json file account_login.json
{
"username": "",
"password": ""
}
Install dependencies from the requirements.txt
. Preferred method is within a virtual environment and if using VScode, you can run the task Build Python Env
to create pyvenv and install modules within that environment. To run the program:
python3
{
"1TIMESTAMP": {
"CREATED": "2024-05-16 22:58:39",
"MODIFIED": "2024-05-18 09:57:29"
},
"DEALS": {
"1-800-Flowers.com": {
"days_left": "43 day(s) left",
"deal_info": "10% Cash Back",
"description": "10% Cash Back Offer subject to merchant and program terms. For Cash Back Online Shopping Offers..etc...",
"expiration_date": "06/30/24",
"external_link": {
"link": "https://l.cardlytics.com/?r=64nrD&xt=eTbOA%2FF0XEeqUQgxEOfyvIve7H2%2BmVc7S8W244id%2FG0J30LFyVhVm7fsCTg8njLM",
"text": "Shop Now"
},
"image_png": {
"binary_data":
"01101001010101100100....00100"
}
}
}
}
The deals will be displayed in collapse detail tags with button features in the HTML output, enabling users to view or hide all deal details. The fields displayed in the JSON example are displayed in collapsible detail tags in the example below:
- CREATED
- 2024-05-16 22:58:39
- MODIFIED
- 2024-05-18 09:57:29
- Days Remaining
- 43 day(s) left
- Expiration Date
- 06/30/24
- Deal Info
- 10% Cash Back
- Description
- 10% Cash Back Offer subject to merchant and program terms. For Cash Back Online Shopping Offers: If a merchant processes your order in separate transactions,.....
- External Deal Link
- Shop Now