Skip to content

An automated python crawler using Splinter for reserving tickets on a popular Chinese ticket selling website.

License

Notifications You must be signed in to change notification settings

y95847frank/AutomatedTicketBot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AutomatedTicketBot

An automated python bot that reserves kktix tickets.

GitHub forks GitHub stars GitHub license HitCount

Goal

This python bot can reserve concert tickets in kktix website using Splinter. The bot would start two minutes before the scheduled time. It log in to the home page automatically. When the website starts selling tickets, the bot would refresh the webpage and automatically fills in registration details. The bot not only refresh webpage faster than any human, but also is able to avoid any mistakes or delays.

Execution

To book tickets in kktix, you need to fill your account and concert information in cofig.yml beforehead. Or, you can update these arguments with script/updateConfig.py, which is an interative program. Here is the script for booking concert tickets in kktix.

Try:

python3 scripts/concert2021.py

Installation

The bot requires a webdriver. I only tested with chromedriver (http://chromedriver.chromium.org/), but it should work well with other webriver.

Install AutomatedTicketBot package via:

python setup.py install

Then, set the path and account information via:

python3 scripts/updateConfig.py -d config.yml

Eventually, use the package as:

import AutoTicketsBot as tBot
...

Test

There's a testing program in the tests directory (https://github.com/y95847frank/AutomatedTicketBot/tree/main/tests).

Test the bot:

python tests/test.py

About

An automated python crawler using Splinter for reserving tickets on a popular Chinese ticket selling website.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages