Skip to content
/ RASE Public

Rental Apartment Search Engine (RASE) makes it easy to search for cheap rentals in an area and at a price specified by the user. At the moment it only works for spanish regions.

Notifications You must be signed in to change notification settings

alb3rtov/RASE

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RASE

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.

Requeriments

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.

Install Tkinter

Windows

Installing python3 from python.org will automatically install Tcl/Tk, which of course, is needed by Tkinter.

Linux

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

Execute

Windows

First move to RASE directory typing cd RASE and then execute the program using python.exe .\app.py

Linux

First move to RASE directory typing cd RASE and then execute the program using python3 app.py

Compilation

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).

Download a compiled version of this program

You can download a compiled version in the releases page: https://github.com/alb3rtov/RASE/releases

Crawling websites and generate XLSX

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.

Why only works for Spain region?

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.

About

Rental Apartment Search Engine (RASE) makes it easy to search for cheap rentals in an area and at a price specified by the user. At the moment it only works for spanish regions.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages