Skip to content

Captcha (Auth Token)

Duy Pham Le edited this page Dec 20, 2024 · 8 revisions

Since TX DPS implements auth endpoint changes the app is not working anymore.

I have implement a few options here.

Manually

This option is the most stable one. But the drawbacks is the auth token is expired every 20 minutes and you have to regenerate it yourself.

Guide avaliable here

Browser Solving

Important

This strategy currently not working with Github Codespaces. If you want to use this app on Codespaces consider using solver options.

This one will actually spins up a broswer, enter the user infomation to get the auth token.

Set captcha section like this:

  captcha:
    # Avaliable options: solver or browser
    strategy: 'solver'
    # solverOptions:
    #   # Avaliable options: capsolver
    #   solverService: ''
    #   # solverApiToken: ''
    #   solverApiToken: ''

External Solver (require payment)

Important

I tried with 2captcha but it didn't work. So it will really depends on the quality of the solving service.

This one will use an external captcha solving service (like capsolver) to solve it. Price is cheap (around $0.0030 per solve). 1 solve last around 20 minutes, so if a booking take 5 hours will cost you around 15 solves (around $0.045).

If you don't have a Capsolver's account, create here (referral link).

Setup in your config.yml file:

  captcha:
    # Avaliable options: solver or browser
    strategy: 'solver'
    solverOptions:
      # Avaliable options: capsolver, 2captcha
      solverService: 'capsolver'
      solverApiToken: '<YOUR_TOKEN>'
Clone this wiki locally