Rental Apartment Search Engine (RASE) makes it easy to search for cheap rentals in an particular area and at a price specified by the user. A XLSX file is automatically generated with the information extracted from the selected websites.
Use the command pip install -r requeriments.txt
to install all the required modules.
For Linux users, in order to install the xlsxwriter
correctly, you must install it from your package manager. For Debian/Ubuntu just type sudo apt-get install python-xlsxwriter
. If this doesn't work, and still getting a ImportError: No module named xlsxwriter, you must to clone de official repository of xlsxwriter and then install it using sudo python3 setup.py install
. If you still getting any issue with xlsxwriter
module visit the official website.
Installing python3 from python.org will automatically install Tcl/Tk, which of course, is needed by Tkinter.
For Debian/Ubuntu distributions use the command: sudo apt-get install python3-tk
For more information visit the official Tk website
DO NOT USE python 3.10 version, instead use 3.9 or less for both OS
First move to RASE directory typing cd RASE
and then execute the program using python.exe .\app.py
First move to RASE directory typing cd RASE
and then execute the program using python3 app.py
If you want to compile the python code you need to use pyinstaller, so first you need to download the pyinstaller module for your OS (it will install automatically if you use requeriments.txt)
Type this command to compile the code:
pyinstaller.exe --onefile --windowed --name RASE --icon=img/icon.ico .\app.py
It will generate a EXE file in the dist directory, you have to move this EXE file to the main directory (RASE).
You can download a compiled version in the releases page: https://github.com/alb3rtov/RASE/releases
This program use requests and BeautifulSoup to scrap the websites and get all the information. In order to save this information, the xlsxwriter module is used. The fields that contain the XLSX file are: apartment address, price, telephone number, website URL, real estate agency or private and other info. I recommend reading this article on the legality of web crawling.
At this moment, this program only works on Spain communities and provinces. This is because the websites used only list flats, houses and apartments of Spain and the JSON files used for users to select the regions only have the provinces and towns/villages of Spain. The JSON files used are from the pselect of IagoLast but the provincias.json file has been modified to sort alphabetically. Perhaps in the future I can upgrade so that it can be used in all countries.