This is a little script, complete with a task scheduler, that will fill out and submit the Life over Likes sweepstakes form every day.
Ensure that the selenium chrome driver is installed. Downloads can be found here: https://chromedriver.storage.googleapis.com/index.html For Mac, the latest did not work for me, so based on a recommendation from StackOverflow I installed version 2.27 and that worked. To install, download and unpack the zip file, and then move the executable to /usr/local/bin/chromedriver
.
You will need to create a .env
file with the following variables, providing the correct values of course:
FIRST_NAME=John
LAST_NAME=Doe
[email protected]
ZIP_CODE=12345
You will need nvm
previously installed.
When the above steps have been met, run the following commands:
nvm install
npm install
npm run schedule
Running npm schedule
will schedule the task to run every day at the same time, two minutes in the future from when you run the schedule command. This makes it so that after scheduling the task, the first run will happen within the next two minutes.
Note that scheduling is only supported for Mac right now.
Other commands that are available:
npm run reschedule
npm run unschedule
npm start