pybikes icon indicating copy to clipboard operation
pybikes copied to clipboard

Missing Italian Bike Sharing systems

Open traversaro opened this issue 9 years ago • 8 comments

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.

  • [ ] BikeVerona (Verona) : https://www.bikeverona.it/stationsmap
  • [ ] BKWare (Now powering just Riva del Garda, it was used by Trento but it seems that they switched to Bicincitta') : http://riva.unbit.it/
  • [ ] Maglie In Bici (Maglie, now offline?) : http://www.maglieinbici.it/
  • [x] Bike Sharing Napoli (Napoli) : http://www.bikesharingnapoli.it/en/mappa-stazioni/

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 .

traversaro avatar Oct 22 '14 20:10 traversaro

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

xrmx avatar Oct 23 '14 09:10 xrmx

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à ;)

eskerda avatar Oct 23 '14 15:10 eskerda

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

njoylab avatar Feb 04 '15 12:02 njoylab

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

eskerda avatar Feb 04 '15 14:02 eskerda

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!

njoylab avatar May 21 '15 15:05 njoylab

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

  • Y no olviden vitaminarse y supermineralizarse!

On 21 May 2015 at 17:02, Emiliano Saurin [email protected] 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.

eskerda avatar May 21 '15 15:05 eskerda

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

njoylab avatar May 22 '15 11:05 njoylab

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 :)

Altonss avatar Apr 23 '22 10:04 Altonss