Giter VIP home page Giter VIP logo

pollev-hack's Introduction

pollev-hack

Project Description

This program is intended to open up an online multiple-choice poll, namely https://pollev.com/<POLL_ID>, choose the first choice, and submit a response.

Background Information

My class is from 14:50 to 15:20 (50 minutes) every Monday, Wednesday, and Friday. The poll is posted anytime between these times. Therefore, I set my cron job to begin a Cypress run at 14:50, and I configured Cypress to keep the test running for 1 hour.

Installation and Set-Up

Installation

  • Install Cypress
  • Install Crontab
  • Clone this repository

Modify Variables

  • Set your PROJ\_HOME in cron-runner.sh
  • Set the correct POLL_URL in cypress/integration/runner.js
  • Set the USERNAME in cypress/integration/runner.js that you'd like to submit with
  • Set the correct TIMEOUT in cypress/integration/runner.js
    • Example: my class duration is 50 minutes. I choose 60 minutes, and I start the cron job 5 minutes before class (cron can sometimes start late).

Create a Cron Job

Open your crontab user file

$ crontab -e

Now, add your PATH and scheduled time (I start my job at 14:45 every MWF)

PATH=<COPIED_FROM_YOUR_PATH>

45 14 * * 1,3,5 /PATH/TO/cron-runner.sh

Future Goals

  • Instead of writing to a log file, it would be nice to using the unix mail command. Then, you can get emails whenever the job successfully submitted a poll response.

pollev-hack's People

Contributors

johnedquinn avatar

Watchers

 avatar

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.