Giter Club home page Giter Club logo

life-over-likes's Introduction

Life over Likes

This is a little script, complete with a task scheduler, that will fill out and submit the Life over Likes sweepstakes form every day.

Usage

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.