---
title: "Discussion on \"Complete Guide: How to Scrape Real Estate & Car Listings from OLX Brazil Using OLX Brazil Scraper\" | Hashnode"
description: "Discussion on \"Complete Guide: How to Scrape Real Estate & Car Listings from OLX Brazil Using OLX Brazil Scraper\". Learn how to scrape real estate and car listings from OLX Brazil using the OLX Brazil Scraper Apify Actor. Step-by-step tutorial with code examples."
url: "https://hashnode.com/posts/complete-guide-how-to-scrape-real-estate-car-listings-from-olx-brazil-using-olx-brazil-scraper/6acbcef31e90bc7cf876a49a"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Complete Guide: How to Scrape Real Estate & Car Listings from OLX Brazil Using OLX Brazil Scraper](https://reventadata.hashnode.dev/complete-guide-how-to-scrape-real-estate-car-listings-from-olx-brazil-using-olx-brazil-scraper?utm_source=hashnode&utm_medium=feed)

Learn how to scrape real estate and car listings from OLX Brazil using the OLX Brazil Scraper Apify Actor. Step-by-step tutorial with code examples.

Oct 11 · 11 min read · reventadata.hashnode.dev  
Updated Nov 19  
Read the article

-   [#web-scraping](https://hashnode.com/tag/web-scraping)
-   [#python](https://hashnode.com/tag/python)
-   [#api](https://hashnode.com/tag/api)
-   [#automation](https://hashnode.com/tag/automation)
-   [#apify](https://hashnode.com/tag/apify)

## Written by

[ReventaData](https://hashnode.com/@reventadata)

@reventadata

  
[View profile](https://hashnode.com/@reventadata)

Clean, structured data from public marketplace, jobs and real-estate sites. Creator of ReventaData on Apify.

Hi, I'm the engineer behind ReventaData. I build pay-per-event Apify Actors that turn public marketplace, classifieds, jobs and real-estate sites into clean, reliable datasets. Here on Hashnode, I share practical tutorials on collecting structured web data with Python and Apify, and on putting it to work: price tracking, lead lists and market analysis. Explore our turnkey scrapers: https://apify.com/reventadata

## Responses 2

Markdown supported · ⌘↵ to post

[ReventaData](https://hashnode.com/@reventadata)

[Oct 11](https://hashnode.com/posts/complete-guide-how-to-scrape-real-estate-car-listings-from-olx-brazil-using-olx-brazil-scraper/6acbcef31e90bc7cf876a49a/comment/6acbe04afb388dc742ab918f)

Great catch, @OnlineProxy! You're completely right on both points:

1.  **Price formatting**: For unpriced listings (`price: null`), evaluating `ad.get('price'):,` raises a `TypeError` in Python. A defensive formatter like `f"R$ {price:,.0f}".replace(",", ".") if price is not None else "Sob consulta"` avoids any crash and respects Brazilian currency formatting.
2.  **Run status verification**: Checking `if run.get("status") != "SUCCEEDED":` before touching the dataset prevents reading empty/partial results if the Actor timed out or failed.

I've updated the script in the guide to incorporate defensive null checks across price, city/state, and run status. Appreciate the sharp peer review!

[OnlineProxy](https://hashnode.com/@onlineproxyio)

[Oct 11](https://hashnode.com/posts/complete-guide-how-to-scrape-real-estate-car-listings-from-olx-brazil-using-olx-brazil-scraper/6acbcef31e90bc7cf876a49a/comment/6acbdc313daf9aafd6fe85f6)

two things stood out to me in the code. listings without a price will break the price formatting, even though the schema allows null, so it's safer to format only when a price exists. the script also doesn't check whether the run succeeded before reading the dataset so it can report success and then read an empty or partial result. the performance numbers would be easier to trust with sample sizes, test conditions and dates. i'd also like to see a quick check on an unpriced listing, a zero-result query and one search against the live OLX page, it would really strenghen the tutorial
