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.
python -m pip install virtualenv
python -m venv venv
Code | Explanation |
---|---|
-m |
executes module venv |
env |
name of the virtual environment |
source venv/bin/activate
pip install -r requirements.txt
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.
Make sure to consider the date and time you give to google maps api because affect the time calculated.
Simply run main.py and compile the search fields. You can save your input searches file for future usure.
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.