eskerda / pybikes

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

Missing Italian Bike Sharing systems #28

Closed traversaro closed 1 year ago

traversaro commented 9 years ago

Hi @eskerda ! @xrmx mentioned on Twitter that he could be interested (not at the moment, but in the future) in adding some scrapers for bike sharing systems in Italy that are not based on Bicincittà system and that are not present in PyBikes. I had some old notes on the Bike sharing systems that have websites that are suitable to scrape, but I had never the time to implement a scaper for this systems. @xrmx thought I could share this information here, so anyone interested in implementing a scaper could find an easy list of system suitable for writing a scraper.

In particular the BKWare system is quite cool because it provides information on every single bicycle.

Some existing indipendent systems are now being migrated to Bicincitta', so I guess It's also time for an update to the Bicincitta' metadata as suggested in https://github.com/eskerda/PyBikes/issues/19 .

xrmx commented 9 years ago

From a quick look: napoli is still in beta but it's trivial to scrape, verona and riva looks a bit more painful.

eskerda commented 9 years ago

What's funny in Napoli, is that there's an extra endpoint to check for stations individually http://www.bikesharingnapoli.it/wp-content/themes/bikesharing/apis/apis.php?stationid=148&stationidrequest and also there's this too http://www.bikesharingnapoli.it/wp-content/themes/bikesharing/apis/apis.php?pdi_types&pdi_lan=en

Could be interesting to see if there's something else on that endpoint. Is there an official Napoli android app to decompile?

For Riva, we just take the declaration of Gmaps.map.markers as a JSON and hope that quotes are escaped.

For Verona, it looks like the map page should be visited to set the cookie on the next POST request to https://www.bikeverona.it/WS/GService.asmx/GetGoogleObject.

Nothing is more painful than Bicincittà ;)

njoylab commented 9 years ago

Hi, Napoli just went out of beta

This is the endpoint their app is using for a JSON response http://www.movinap.it/_CI/api_v1/station/getAllStationsInfo

I'm not really into python, but if nobody wants to implement it I could try maybe with some suggestions on the project.

Best

eskerda commented 9 years ago

Hey, thanks for the info. Just added the system on the referenced commit.

Feed available at http://api.citybik.es/v2/networks/bike-sharing-napoli

njoylab commented 9 years ago

Hi @eskerda Bike Sharing Napoli is asking me if it's possible to hide the "demo" stations CleaNap demo LumiLab CleaNap demo 2 CleaNap demo 3

I suppose that everything with "demo" in the name could be skipped. I could prepare a pull request if you don't have time

Thanks!

eskerda commented 9 years ago

Hmmmmm..... yes but, wouldn't that be the job of Bike Sharing Napoli itself?

On 21 May 2015 at 17:02, Emiliano Saurin notifications@github.com wrote:

Hi @eskerda https://github.com/eskerda Bike Sharing Napoli is asking me if it's possible to hide the "demo" stations CleaNap demo LumiLab CleaNap demo 2 CleaNap demo 3

I suppose that everything with "demo" in the name could be skipped. I could prepare a pull request if you don't have time

Thanks!

— Reply to this email directly or view it on GitHub https://github.com/eskerda/PyBikes/issues/28#issuecomment-104311427.

njoylab commented 9 years ago

You are definitely right. I answered them asking not to send those stations,but I don't think they will do it.. let's see

Altonss commented 2 years ago

Bikeverona has a working gbfs feed here: https://gbfs.urbansharing.com/bikeverona.it/gbfs.json so this could be integrated easily, we just need to handle correctly the bikes with childseats as it has been done for Bikemi (Milano, IT) in #456 :) EDIT: the number of bikes with childseats is not displayed in the feed, so we could just add the feed without any problem :)