Skip to content

A simple Python script to extract data from eGift cards purchased from Staples.com

License

Notifications You must be signed in to change notification settings

Zaperking/staples_egc_extractor

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Staples eGift Card Extractor

This script will attempt to extract the card type, amount, number, and PIN given the claim emails sent by Staples.com 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 pip install -r requirements.txt.

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 purchased from Staples.com

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%