{"id":18777678,"url":"https://github.com/shilongdai/apartment_scraper","last_synced_at":"2025-10-13T06:39:51.603Z","repository":{"id":51292877,"uuid":"493917866","full_name":"shilongdai/Apartment_Scraper","owner":"shilongdai","description":"Python webscraper for apartments.com","archived":false,"fork":false,"pushed_at":"2023-03-21T01:30:44.000Z","size":8400,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-09-01T23:39:36.458Z","etag":null,"topics":["bs4","csv","json","python","selenium","webscraping"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/shilongdai.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2022-05-19T04:20:08.000Z","updated_at":"2024-07-21T21:03:31.000Z","dependencies_parsed_at":"2025-09-07T06:00:46.284Z","dependency_job_id":null,"html_url":"https://github.com/shilongdai/Apartment_Scraper","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/shilongdai/Apartment_Scraper","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shilongdai%2FApartment_Scraper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shilongdai%2FApartment_Scraper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shilongdai%2FApartment_Scraper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shilongdai%2FApartment_Scraper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shilongdai","download_url":"https://codeload.github.com/shilongdai/Apartment_Scraper/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shilongdai%2FApartment_Scraper/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279013972,"owners_count":26085429,"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-10-13T02:00:06.723Z","response_time":61,"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":["bs4","csv","json","python","selenium","webscraping"],"created_at":"2024-11-07T20:13:16.161Z","updated_at":"2025-10-13T06:39:51.598Z","avatar_url":"https://github.com/shilongdai.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Apartment_Scraper\n\nThis is a python + selenium + bs4 based webscraper used to extract apartment data from apartments.com. The final output is a json file with the desired apartment informations, and a csv file with apartments in vector forms.\n\n## Sample Output\n\nThe sample output from scanning one apartment can be found in the repository at sample_compile.json and sample_compile.csv\n\n## Usage\n\nFirst, edit the config.ini file to point the _DRIVER_ field to the path of the chromedriver. Then, update the _URL_TEMPLATE_ to be pointed to the search result page of apartments.com for a given area. The two placeholder %d in the templates are used to narrow down the price range of the search results so that the 28 page limitation is avoided.\n\nAfter the config is done, execute the script:\n\n```\npython scrape.py\n```\n\nIt will output a urls.json file containing the url to all the individual apartment pages.\n\nThen, create a pages directory in the current working directory and execute:\n\n```\npython download.py urls.json pages/\n```\n\nThis will download the html of all the apartment pages in the urls.json file.\n\nAfter the download is complete, create an extract directory in the current working directory and execute:\n\n```\npython extract.py pages/ extract/\n```\n\nThis will extract all the relevant strings from the html page and write the results to the extract directory in json format.\n\nFinally, after the extraction is complete, run:\n\n```\npython compile.py extract/\n```\n\nto format the data and output a final .json and .csv file.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshilongdai%2Fapartment_scraper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshilongdai%2Fapartment_scraper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshilongdai%2Fapartment_scraper/lists"}