-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathlaunch.bat
28 lines (19 loc) · 1021 Bytes
/
launch.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
@echo off
cd house-scraper
REM install requirements
python -m venv .venv
python -m pip install -r requirements.txt
REM fotocasa scraping
.\.venv\Scripts\python.exe scraper/__main__.py -f
REM idealista scraping (poor district)
.\.venv\Scripts\python.exe scraper/__main__.py -i --urls-idealista https://www.idealista.com/venta-viviendas/madrid/villaverde/
ren .\dataset\idealista.csv idealista-poor.csv
ren .\dataset\idealista-maps idealista-maps-poor
REM idealista scraping (rich district)
.\.venv\Scripts\python.exe scraper/__main__.py -i --urls-idealista https://www.idealista.com/venta-viviendas/madrid/barrio-de-salamanca/
ren .\dataset\idealista.csv idealista-rich.csv
ren .\dataset\idealista-maps idealista-maps-rich
REM mixing floor plans from poor and rich district (idealista)
if not exist ".\dataset\idealista-maps\" mkdir .\dataset\idealista-maps
robocopy .\dataset\idealista-maps-poor .\dataset\idealista-maps\ /COPYALL /E
robocopy .\dataset\idealista-maps-rich .\dataset\idealista-maps\ /COPYALL /E