Skip to content

Latest commit

 

History

History
49 lines (33 loc) · 2.02 KB

File metadata and controls

49 lines (33 loc) · 2.02 KB

Python checks CodeQL analysis Test coverage

Zillow Clone Scraper and Form Auto-Filler

This Python script scrapes apartment listings from a Zillow clone site and optionally submits the address, price, and link of each listing into a Google Form or Google Sheet.

Features

  • Scrapes addresses, prices, and links from listings
  • Submits each listing to a Google Form or Google Sheet

Requirements

  • Python 3.11 or higher
  • Linux, Windows, macOS

How to Use

  1. Clone the repository

  2. Open terminal and navigate to the cloned directory

  3. Install python dependencies

    pip install .
    patchright install
  4. Create a folder called env in the project directory with one or more files each containing the following contents:

    CONFIG_NAME=<NAME SHOWN WHEN REFERRING TO THIS CONFIG (OPTIONAL)>
    SEARCH_URL=<URL OF THE ZILLOW CLONE TO SCRAPE>
    FORM_URL=<YOUR GOOGLE FORMS URL (OPTIONAL)>
    SHEET_URL=<YOUR GOOGLE SHEETS DOC URL (OPTIONAL)>
    SHEET_NAME=<NAME OF SHEET IN GOOGLE SHEETS DOC TO ADD TO (OPTIONAL)>
  5. If using batch submission to a Google Sheet, add your Google Service Worker authentication file in the project root as ".service_account.json".

  6. Run the script:

    python -m src/main.py

The script will open a Chrome window, scrape data from each page of the Zillow clone, and submit each entry into your form.