/giveaway-grabber

Automated Amazon Giveaways using Node & Puppeteer 🎁

Primary LanguageJavaScriptMIT LicenseMIT

npm version

giveaway-grabber 🎁

This script will loop through all the Amazon giveaways and try to submit entries for them.

Wanted a reason to experiment with Puppeteer, so here goes.

Note: does not support entries that require following someone.

Installation

You can install giveaway-grabber using npm:

$ npm install -g giveaway-grabber

Or, you can clone this repo and run via npm start.

Usage

As CLI:

$ gg --username=fake@example.com --password=123456

If cloned:

Copy .env.example to .env, adding your own Amazon username and password.

$ npm install
$ npm start

Note that the script will crash if the Chrome window is minimized! Check the console to monitor feedback.

If it does happen to die, re-start it on any page like:

$ gg --username=fake@example.com --password=123456 --page=34

OR:

$ npm start -- --page=34

If you have two factor authentication enabled, add --2FA flag:

$ gg --username=fake@example.com --password=123456 --2FA

OR:

$ npm start -- --2FA

The script will wait for you to enter your code.

CAPTCHAs

Every so often Amazon will present a CAPTCHA. The script will pause at this point and wait for you to enter it. The console will warn you with an ENTER CAPTCHA message.

Questions

If you have any questions, just open an issue.

Disclaimer

This project is not associated with Amazon in any way. I just created it for my own experimentation, so use at your own risk.