Restaurants And Bikes

Python script to find bikes and places in BCN

Python (Python 2) script where you can find places/locals in barcelona with the closest Bicing (Barcelona bike service) stations.

To make the search, you can make an union or intersection selection, which is, for instance: Bar or Restaurant in the name, or Bar and Music in the name.

The file rdf2csv.py is used to create a CSV file with all the information about locals in barcelona, from the restaurants.rdf document extracted from an official website of barcelona. This CSV is splited with TAB and semicolon. File consultaCSV.py is the main core of the script; It reads ur query and gives you an HTML table as a result of your search. You can either ask for places which contain all the words you specify or places with any of the names you specify, with tuples or lists.

"['bar','Bar']"

Previous query would give you as a result all places with name bar or Bar (it’s case sensitive). The result for a query of bars or caffes would give as a result something like the following table:

The code and repository can be found in the following link:

https://github.com/noxerr/FindBikes-Restaurants

Leave a Reply

Your email address will not be published. Required fields are marked *