Skip to content

christianbomholt/housing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Repo for scraping house prices

How to run

The runner scrapes by default prices for Copenhagen (Zipcodes 1000-2000) and launches a flask app with these prices

python -m virtualenv
pip install -r requirements.txt
chmod u+x run.sh
./run.sh

To change zip codes

Change the zip_range in the functions

@click.command('scrape')
@with_appcontext
def scrape_command():
    """Clear the existing data and create new tables."""
    click.echo('Starting scrape.')
    scrape\
        .get_current_sales(loop_range=range(1,25),zip_range=[1000,2001])\
        .to_csv(filename, index=False)
    click.echo('Done!')
@click.command('scrape_hist')
@with_appcontext
def scrape_hist_command():
    """Clear the existing data and create new tables."""
    click.echo('Starting scrape.')
    houses = scrape\
        .get_historic_sales(loop_range=range(1,500),zip_range=[1000,2001])\
        .drop_duplicates()

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages