eskerda / pybikes

bike sharing + python = pybikes
https://citybik.es
GNU Lesser General Public License v3.0
552 stars 166 forks source link

Velobike_ru seems broken #471

Open Altonss opened 2 years ago

Altonss commented 2 years ago

For all 3 cities all is empty, which may be ok, but for Moscow the data dates back to 2022-03-10

eskerda commented 1 year ago

At the moment velobike is rejecting requests that do not come from a browser, by issuing a javascript challenge that generates a nonce that later returns a valid session id that must be included on the request. It's using anti ddos protection from qrator labs.

Only solution on this is either checking how long it takes for a valid session to expire and see if we can reasonably use that, or add some extra dependencies on the project to communicate with a js engine and solve these kinds of js challenges. So far this is the only one so I am inclining towards no. The final possibility would be trying to solve the challenge on python directly.

image