Skip to content

Python script to automate buying Amazon giftcards

Notifications You must be signed in to change notification settings

AFTERWAKE/giftcards_galore

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 

Repository files navigation

Note: Amazon changed the layout and IDs of their giftcard reload page, so this script is currently broken. Feel free to make an issue and/or fork the script if you want to make fixes yourself.


Giftcards Galore!

Python script to auto-buy Amazon giftcards

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


Dependencies:


Installation/Setup:

Install Selenium using pip install selenium
Download the Chrome Webdriver and put it in a location of your choice

Variables:

These are environment variables that you can define using whatever method works best for you (export in .bash_profile, define in Python console or just define in the script):

  • AMAZON_USERNAME
  • AMAZON_PASSWORD
  • CARD_NUMBERS
  • CHROME_DRIVER

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

CHROME_DRIVER is the location of your Chrome Webdriver (line 31). Example: /Users/Spock/Downloads/webdrivers/chromedriver

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 either starting with one iteration per card, or commenting out line 57.

About

Python script to automate buying Amazon giftcards

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%