Confirmer les trajets pris avec l'abonnement MaxJeune de manière automatisée
Go to file
2024-12-17 12:00:01 +01:00
src The actual changed code 2023-12-05 16:51:56 +01:00
.gitignore Update .gitignore 2023-12-05 16:50:56 +01:00
README.md Add README 2024-12-17 12:00:01 +01:00
requirements.txt Initial commit 2023-12-01 19:07:59 +01:00

Auto confirm TGVMax travels

How to ?

  1. Copy src/example_config.py to src/config.py
  2. Fill in the blanks
  3. Use the following python code: (within python -i src/main.py)
travels = [Travel(i) for i in r_to_data(travel_consultation(s, headers))]
travels[0].confirm(s, headers)

However, the response from the server is the same if the travel is successfully validated or not, but I didn't had any issue for now. Be sure to check if you receive any mail warning that it is not confirmed !