UPDATE March, 2022: I am getting a lot of emails about this recently, hence this update. I no longer have time nor interest in maintaining this any longer, it is too hard to test, given that I never really know what the website will look like until the sale. In addition the interest in tickets is just too high, and getting through to the site, even with multiple bots and machines, is just too damn hard and not worth the hassle. While I still believe that Glastonbury is one of the greatest festivals on the planet, I have been enough times in my life to now let it pass. I will leave the code here for those interested but I am no longer confident it will get the job done. Good luck!
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.
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