Skip to content

Latest commit

 

History

History
62 lines (40 loc) · 2.06 KB

File metadata and controls

62 lines (40 loc) · 2.06 KB

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 daft_script.py (daft_scripts/daft/scripts.py) or maintest.py(tests/main_test.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