Coder Social home page Coder Social logo

pyautobankamerideals's Introduction

pyAutoBankAmeriDeals

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.

Account

The account credentials are stored in a json file account_login.json

{
    "username": "",
    "password": ""
}

Usage

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 

JSON Output Format

{
    "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" 
            }
        }
    }
}

HTML Output Format

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:

    TIMESTAMP
    CREATED
    2024-05-16 22:58:39
    MODIFIED
    2024-05-18 09:57:29
    DEALS
    1-800-Flowers.com
    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

pyautobankamerideals's People

Contributors

kyrlon avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.