Skip to main content

zapimoveis-scraper is a Python package that works as a crawler and scraper using beautifulsoup4 to get data from zap imoveis

Project description

Zap Imoveis Scraper

zapimoveis-scraper is a Python package that works as a crawler and scraper using beautifulsoup4 to get data from zap imóveis.

Installation

Use the package manager pip to install zapimoveis-scraper.

    pip install zapimoveis_scraper

Usage

import zapimoveis_scraper as zap

# returns a list with objects containing scraped data
zap.search(localization="go+goiania++setor-oeste", num_pages=5) 

Available search parameters:

  • localization (string): location in which the search will be performed
  • num_pages (int): Number of pages to scrape
    • default: 1
  • acao (string): type of contract. Possible values: 'venda', 'aluguel', 'lancamentos'
    • default: 'aluguel'
  • tipo (string): type of property. Possible values: 'imoveis', 'apartamentos', 'casas'
    • default: 'casas'
  • dictionaty_out (boolean): Specifies the method output (list of objects or dictionary)
    • default: False
  • time_to_wait (float): time to wait until the script scrapes the next page
    • default: 0

Scraped attributes:

The objects returned from search contain the following attributes:

  • description: property description
  • price: property price (monthly)
  • condo_fee: property condo fee (monthly)
  • bedrooms: number of bedrooms on property
  • bathrooms: number of bathrooms on property
  • total_area_m2: property area (square meters)
  • vacancies: parking spots available on property
  • address: property address
  • link: link of the property

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

zapimoveis_scraper-0.4.0.tar.gz (6.8 kB view hashes)

Uploaded Source

Built Distribution

zapimoveis_scraper-0.4.0-py2.py3-none-any.whl (7.3 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page