Giter VIP home page Giter VIP logo

glasto-smasher's Introduction

glasto-smasher

A node.js puppeteer bot that will reload a page until a provided phrase disappears

Install Dependencies

Recommend install on Linux or Mac, Windows is possible but you will need to install WSL2 and setup an X Server.

node.js

Install node.js for your platform

yarn

Install the yarn package manager

Git

Install Git

Running the app

Open your terminal and clone the repo

git clone [email protected]:jps/glasto-smasher.git

Navigate to the cloned repo

cd glasto-smasher

Install the dependencies

yarn

Test mode

A test site is available, by pulling and running https://github.com/thomasms/testsites

Open a second terminal and enter each of the following

git clone https://github.com/thomasms/testsites
cd testsites
yarn
yarn start

Once started the site will report a url that it's running on this can be added to the test script below

Now you can run the script local with

yarn smash --url http://localhost:3000/ --phrase 'Number of hits'

Game day

You will need to input the url of holding page, this will be the page that is reloaded e.g. https://glastonbury.seetickets.com/event/glastonbury-2020-deposits/worthy-farm/1450000 you won't know this until the day!

Next you will need to put in a piece of text that will only appear on the loading page, this will be something like this page will refresh automatically you can also add an xpath here e.g //text()[contains(.,'this page will refresh automatically')]

Giving us either:

yarn smash --url 'https://glastonbury.seetickets.com/event/glastonbury-2020-deposits/worthy-farm/1450000' --phrase 'this page will refresh automatically'

Or for xpath:

yarn smash --url 'https://glastonbury.seetickets.com/event/glastonbury-2020-deposits/worthy-farm/1450000' --xpath "//text()[contains(.,'this page will refresh automatically')]"

The application will now reload and hand over control when it gets through, good luck!

glasto-smasher's People

Contributors

jps avatar

Watchers

 avatar  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.