Skip to content

Daft.ie research with public transport time information

License

Notifications You must be signed in to change notification settings

9highlander/Daft-Scripts

Repository files navigation

DaftScripts - daft.ie search with public transport time

A script with GUI that use daftlisting library to enable interaction with Daft.ie and call Google Maps API to know the distance with public transport. I make the script for personal purpose because when i search for a home the commuting time factor is an important factor. However at the moment this script is more a code exercise for exercise with API calling , pandas and other things.

Installation

Install virtualenv (optional)

python -m pip install virtualenv

Create a Virtual Environment

python -m venv venv
Code Explanation
-m executes module venv
env name of the virtual environment

Activate environment

source venv/bin/activate

Install requirements

pip install -r requirements.txt

Getting Started

Insert Google Maps Api(optional)

If you choose to use Google Maps Api you need to insert your API key in the json file(Daftscript/api/api/qpi_maps). There is already an example file api_maps_example.json , you can just rename it api_mapse.json. Note than .gitignore file already excludes api_mapse.json file.

image

Make sure to consider the date and time you give to google maps api because affect the time calculated.

Start the script

Simply run main.py and compile the search fields. You can save your input searches file for future usure.

image

image

See results

The results saved as a map in an html page (made with folium). You can choose if open directly the results map in yout default browser or not.

image

Releases

No releases published

Packages

No packages published