Skip to content

Latest commit

 

History

History
51 lines (34 loc) · 936 Bytes

README.md

File metadata and controls

51 lines (34 loc) · 936 Bytes

glastoselenium

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

It can refresh quicker than any human.

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