Python script to scrape / download various data sources.
-
Clone this repo:
git clone git@github.com:yegorski/python-scrape-data.git cd python-scrape-data
-
Install Python script dependencies:
pip3 install -r requirements.txt
Downloads files from http://files.zillowstatic.com.
-
Make a
.env
file with the zillowstatic URL you want to download from:URL=http://files.zillowstatic.com/research/public_v2/zhvi/Metro_Zhvi_AllHomes.csv SAVE_TO=files/Metro_Zhvi_AllHomes.csv
-
Run
python3 zillowstatic.py
.
Downloads median-listing-price-1-bedroom
data from Kaggle.
-
Create a Kaggle account.
-
Make a
.env
file with your Kaggle credentials:KAGGLE_USERNAME=<username> KAGGLE_PASSWORD=<password> URL=https://www.kaggle.com/zillow/median-listing-price-1-bedroom/download SAVE_TO=files/listings.zip
-
Run
python3 kaggle.py
. -
Unzip and inspect the downloaded file.