reneboer / python-carnet-client

python script that emulated the VW WE Connect (formerly CarNet) web site
GNU General Public License v3.0
21 stars 9 forks source link

Updated to work with volkswagen we connect platform #7

Closed jaybora closed 5 years ago

jaybora commented 5 years ago

Update to work with new 'we connect' platform. This is an update for login procedure that has changed quite a lot. After login, the simple json pages to fetch data from, and to send updates to are unchanged. (apart from the base url)

birgersp commented 5 years ago

Finally got the chance to testing this. Works like a charm!

Maverick78de commented 5 years ago

I tried it, I got an error

Traceback (most recent call last): File "bin/carnet_rb.py", line 237, in <module> url = CarNetLogin(s,CARNET_USERNAME,CARNET_PASSWORD) File "bin/carnet_rb.py", line 100, in CarNetLogin login_action_url = auth_base_url + extract_login_action_url(r) File "bin/carnet_rb.py", line 48, in extract_login_action_url return login_action_url_re.search(r.text).group(1) AttributeError: 'NoneType' object has no attribute 'group'

bausi2k commented 5 years ago

I think they changed the login again! when you are logging in on the site, there is now a new screen, and changed urls as far as i recognized

Sneak-L8 commented 5 years ago

I got further by changing the texts to search for: login_action_url is just: action="([^"])" relay_state_token is now: <input type="hidden" id="input_relayState" name="relayState" value="([^"])"/> login_csrf is: <input type="hidden" id="csrf" name="_csrf" value="([^"]*)"/>

But now I fail after sending that data => 400 bad request. I'm working with JavaScript. I changed my old javascript code (ar-net) according to this this changes here. That's why a can't post an updated pathon code.