Giter Site home page Giter Site logo

mpsyko / glastoselenium Goto Github PK

View Code? Open in Web Editor NEW

This project forked from thomasms/glastoselenium

0.0 0.0 0.0 1.01 MB

A bot for booking Glastonbury tickets using selenium

License: GNU General Public License v3.0

Python 6.27% Shell 0.07% HTML 93.66%

glastoselenium's Introduction

glastoselenium

A python bot for booking glasto tickets

Resale update coming soon!

GitHub forks GitHub stars GitHub license HitCount

A script/package I used to book Glastonbury tickets in 2019 and 2020 using selenium.

It can refresh quicker than any human, and automatically fills in registration details to avoid any mistakes or delays.

The below plot shows the reason why. Demand for tickets has gone mad recently, and it is only expected to get worse for future years.

Figure of sellout times

The script usually requires a bit of tunning beforehand, but it works every time (for me anyway).

The end goal is to have a completely headless bot that can do everything automatically!!! We are not there yet, but hopefully will be soon.

Try:

python3 scripts/glasto2020.py

Requires a webdriver - only tested with chromedriver (http://chromedriver.chromium.org/)

Look in examples and script directories on how to use it.

Run:

python setup.py install

Then set the path to the driver via:

export CHROMEDRIVER=/path/to/chromedriver

Can use the package as:

import glasto as gl
...

Alternatively, the first version exists on PyPI and can be installed directly using pip:

pip install glasto

Some test sites are being added to the submodule test/sites - https://github.com/thomasms/testsites.

These mimic a real life web site that needs a lot of refreshing.

One React SPA exists so far.

Just run it locally via npm

cd test/sites
npm start

Then test the client script:

python test/testsite1.py

glastoselenium's People

Contributors

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