Skip to content

A simple Python script to extract data from eGift cards sent by various Blackhawk Network affiliates

License

Notifications You must be signed in to change notification settings

stevenmirabito/egc-extractor

Repository files navigation

eGift Card Extractor

This script will attempt to extract the card type, amount, number, and PIN given the claim emails sent by various Blackhawk Network affiliates and write it to a CSV. The script will also take a screenshot of each card and save it to screenshots in the current working directory.

Installation

Download or clone this repo and install ChromeDriver. Copy config.sample.py to config.py and update the configuration as needed, ensuring that CHROMEDRIVER_PATH is a fully-qualified path to the ChromeDriver binary. Install the dependencies with pipenv install.

Caveats

Different eGCs may have slightly different page layouts, which might break this script. To modify the script for a card with a different layout, inspect the element and copy its XPath, then replace the appropriate XPath in the script with the one from the page.

About

A simple Python script to extract data from eGift cards sent by various Blackhawk Network affiliates

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages