Giter Club home page Giter Club logo

Comments (4)

antoinevth avatar antoinevth commented on May 29, 2024

@benoitdemaegdt explain the reasons here : #11 (comment)

For now, there is no solution using this library. If you have any idea/skill/time, you can submit a PR 😉 !

from trainline-python.

tducret avatar tducret commented on May 29, 2024

I feel that the best we have to do is to migrate to thetrainline.com new APIs.

from trainline-python.

TitCaz avatar TitCaz commented on May 29, 2024

I tried to log in, with my personnal trainline account on the old api (https://www.trainline.fr/api/v5_1/account/signin), and I fall on another Exception : "errors":{"email":["Nous n’avons pas trouvé de compte associé à l’adresse e-mail et au mot de passe indiqués."]}}. It seems that there is a new database of accounts linked to this api, or that I didn't see anything...

        data_login = {"id":"1","email":"MYEMAIL","password":"MYPASSWORD", "facebook_id":None,"facebook_token": None,"google_code": None,"concur_auth_code": None,"concur_new_email": None,"concur_migration_type": None,"source": None,"correlation_key": None,"auth_token": None, "user_id": None}
        post_data_login = json.dumps(data_login)
        ret_login = c._post(url="https://www.trainline.fr/api/v5_1/account/signin", post_data=post_data_login)

EDIT:
Accounts' data come from "https://www.trainline.fr/business", it is free to create a business account.
I succeeded to connect before making a searching request, adding the authentication token sent back in the header's searching request. I post the solving code as soon as I fix an ultimate bug which prevent to have more than approximately 10 trains with this method.

from trainline-python.

antoinevth avatar antoinevth commented on May 29, 2024

This issue has been solved by #17. We should close it.

from trainline-python.

Related Issues (16)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.