{"id":24538519,"url":"https://github.com/suned/house-price-predictor","last_synced_at":"2025-09-11T02:34:29.334Z","repository":{"id":272822357,"uuid":"401290974","full_name":"suned/house-price-predictor","owner":"suned","description":"Scrape and analyze sales prices from boliga.dk","archived":false,"fork":false,"pushed_at":"2025-02-24T19:09:33.000Z","size":29,"stargazers_count":50,"open_issues_count":1,"forks_count":6,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-01T21:43:12.462Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/suned.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-08-30T09:42:37.000Z","updated_at":"2025-02-24T19:09:36.000Z","dependencies_parsed_at":"2025-01-16T20:53:59.121Z","dependency_job_id":"9fa32253-777c-4e38-a5ab-d85e81176a9b","html_url":"https://github.com/suned/house-price-predictor","commit_stats":null,"previous_names":["suned/house-price-determinator"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/suned/house-price-predictor","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/suned%2Fhouse-price-predictor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/suned%2Fhouse-price-predictor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/suned%2Fhouse-price-predictor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/suned%2Fhouse-price-predictor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/suned","download_url":"https://codeload.github.com/suned/house-price-predictor/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/suned%2Fhouse-price-predictor/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274568272,"owners_count":25309281,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-11T02:00:13.660Z","response_time":74,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-01-22T15:13:45.495Z","updated_at":"2025-09-11T02:34:29.300Z","avatar_url":"https://github.com/suned.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# House Price Determinator 🏡 🤑\n\n## Requirements\nEnsure you have Python installed, then install the required dependencies using the following command:\n\n```bash\npip install -r requirements.txt\n```\n\n## Usage\nGenerate a `*.txt` file, which contains name of the streets that you wish to compare and use for price calculation. \n\nExample: \n```\nIngolfs Allé\nBreidablik Allé\nHeklas Allé\nGeysers Allé\nGimles Allé\nThingvalla Allé\nHøjdevangs Allé\nUlrich Birchs Allé\nDronning Elisabeths Allé\nChristian II's Allé\n```\n\nNow run `scrape_latest_sales_prices` with the `*.txt` file, a postal code and optionally a property type (house, terrace_house, villa_apartment, and summerhouse). \n\n```shell\n\u003e python -m scrape_latest_sales_prices examples/[FILENAME].txt [POSTAL CODE] *[PROPERTY_TYPE]*\n```\n\nFor example: \n```shell\n\u003e python -m scrape_latest_sales_prices examples/eberts_villaby.txt 2300 --property-type 'villa_apartment'\n```\n\nThis will generate a `*.csv`-file with the results of the scraping. You can now use that csv-file to calculate a suggested price based on the house's area: \n\n```shell\n\u003e python -m predict_sales_price eberts_villaby.csv 180\n```\n\n### Narrow search\nIt is possible to alter certain criterias in `predict_sales_price`, as it takes the following parameters: \n\n```\n    streets_csv (str): \n        Path to the CSV file containing sales data for various properties.\n    house_area (int): \n        Size of the house (in square meters) for which the price is to be estimated.\n    min_sales_year (int, optional): \n        The minimum year of property sales to include in the analysis. Defaults to `datetime.MINYEAR`.\n    max_sales_year (int, optional): \n        The maximum year of property sales to include in the analysis. Defaults to the current year.\n    min_area (int, optional): \n        The minimum size (in square meters) of properties to consider in the analysis. Defaults to 0.\n    max_area (int, optional): \n        The maximum size (in square meters) of properties to consider in the analysis. Defaults to 9999.\n    min_samples (int, optional): \n        The minimum number of sales samples required for the analysis. Defaults to 0.\n```\n\nFor example: \n```shell\n\u003e python -m predict_sales_price eberts_villaby.csv 180 --min-sales-year=2010 --max-sales-year=2023 --min-area=100 --max-area=150 --min-samples=10\n```\n\n## File Descriptions\n- **`scrape_latest_sales_prices.py`**: Main script for scraping sales data and estimating house prices.\n- **`predict_sales_price.py`**: Main script for predicting price of house given area size.\n- **`utils.py`**: Contains utility functions for processing and analyzing data. Useful for using functions in Python repl. \n- **`test_address_regex.py`**: Unit tests for validating address-related functions.\n- **`requirements.txt`**: Lists all the dependencies required to run the project.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsuned%2Fhouse-price-predictor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsuned%2Fhouse-price-predictor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsuned%2Fhouse-price-predictor/lists"}