This folder includes a scraper for Imovelweb.com.br real estate listings using Python requests and Scrape.do for bypassing Imovelweb's DataDome protection and JavaScript rendering requirements with Brazilian geo-targeting.
Find extended technical guide here. 📘
scrapePropertyInfo.py: Scrapes detailed property information from Imovelweb listings including name, square meters, and pricing with Brazilian geo-targeting and full JavaScript rendering.
- Python 3.7+
requestslibrary
Install with:pip install requestsbeautifulsoup4library
Install with:pip install beautifulsoup4- A Scrape.do API token for accessing Imovelweb bypassing DataDome protection (free 1000 credits/month)
-
Copy the full property URL from Imovelweb, example:
https://www.imovelweb.com.br/propriedades/casa-no-condominio-east-village-disponivel-para-venda-2986272608.html -
In the script, replace:
token = "<your_token>" target_url = urllib.parse.quote_plus("<target_property_url>")
-
Run the script:
python scrapePropertyInfo.py
The script will display property information in the console:
Listing Name: Casa no Condomínio East Village
Square Meters: 180
Sale Price: R$ 850.000- Property name: Targets
h1header element - Square meters: Uses regex pattern
(\d+)\s*m²on property type heading - Price extraction: Uses regex pattern
R\$\s*[\d.,]+on price value div - Brazilian geo-targeting: Uses
geoCode=brparameter for regional access
render=true: JavaScript rendering required for dynamic contentgeoCode=br: Brazilian geo-targeting (REQUIRED)
Imovelweb uses DataDome protection that is automatically bypassed using Scrape.do's premium proxy network and anti-bot detection evasion.
403 or 429: DataDome protection triggered; Scrape.do automatically handles this
JavaScript rendering required: Property pages need render=true for full content access
Brazilian geo-targeting needed: Content only accessible from Brazil via geoCode=br
Regex pattern failures: Property format may vary for different listing types
This scraper works with all Imovelweb property categories including:
- Houses and condominiums
- Apartments and studios
- Commercial properties
- Land and lots
- New construction projects
- Rotating premium proxies & geo-targeting
- Built-in header spoofing
- Handles redirects, CAPTCHAs, and JavaScript rendering
- Bypasses DataDome protection
- Brazilian geo-targeting capabilities
- Full JavaScript rendering support
- 1000 free credits/month