Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/stevenmirabito/egc-extractor

A simple Python script to extract data from eGift cards sent by various Blackhawk Network affiliates
https://github.com/stevenmirabito/egc-extractor

Last synced: 12 days ago
JSON representation

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

Awesome Lists containing this project

README

        

# 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](https://sites.google.com/a/chromium.org/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.