Skip to content

justinjohnso/giftcards_galore

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 

Repository files navigation

Giftcards Galore!

Python script to auto-buy Amazon giftcards

Based off of:
https://github.com/ageoldpun/amazon_gifts
http://pastebin.com/UW6eC3rn


Dependencies:

  • Selenium
  • Chrome Webdriver (download)
  • python-dotenv

Installation/Setup:

Install Selenium using pip install selenium
Download the Chrome Webdriver and ensure it can be found on your system PATH
Install python-dotenv using pip install python-dotenv

Variables:

These are environment variables:

  • AMAZON_USERNAME
  • AMAZON_PASSWORD
  • CARD_NUMBERS
  • GIFT_CARD_AMOUNT

You can define using whatever method works best for you (export in .bash_profile, define in Python console, or just define in the script), or you can create a .env file in the following format:

# .env file
[email protected]
AMAZON_PASSWORD=password
CC0=1234567890123456
CC1=7890123456789012
GIFT_CARD_AMOUNT=1.00

You need your card numbers because Amazon will ask to confirm each one for the first iteration of a given card.

These are arrays that correspond with the (0-indexed) list of cards on your Amazon Wallet page:

  • CARDS
  • ITERATIONS

Usage:

In terminal, run python giftcards_galore.py. Selenium will open a new Chrome window and start the script.

For testing purposes, I recommend starting with one iteration per card.

About

Python script to automate buying Amazon giftcards

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages