Actowiz Metrics Real-time
logo
analytics dashboard for brands! Try Free Demo
Real-Time Instashop Grocery Price Monitoring API Egypt

Introduction

Real estate platforms like Inmuebles24 dominate the Spanish and Mexican property markets. Analysts, investors, rental operators, real estate agencies, and valuation firms rely on this data for:

  • property pricing
  • rental trends
  • neighborhood demand
  • property type segmentation
  • investment benchmarks
  • location scoring

Inmuebles24 offers rich data:

  • Sale & rent prices
  • Bedrooms, bathrooms
  • Area in m²
  • Property type (house, apartment, studio)
  • Location hierarchy (City → Area → Neighborhood)
  • Listing agent info
  • Amenities
  • Photos & videos
  • Property description

This tutorial shows how to build a production-grade Inmuebles24 Data Extraction Engine using:

  • Python
  • Selenium
  • BeautifulSoup
  • Requests
  • Pandas

This is the exact scraping workflow Actowiz Solutions uses to power property dashboards for Spain + Mexico.

Let’s begin.

Step 1: Install Required Dependencies

pip install selenium
pip install beautifulsoup4
pip install pandas
pip install requests
pip install lxml
pip install undetected-chromedriver

Inmuebles24 loads content dynamically → Selenium required.

Step 2: Choose Target URLs (Spain + Mexico Examples)

Mexico

https://www.inmuebles24.com/casas-en-venta-en-ciudad-de-mexico.html

Spain

https://www.inmuebles24.com/casas-en-venta-en-madrid.html

You can modify these to scrape:

  • apartments
  • rentals
  • commercial properties
  • plots
  • luxury homes

Step 3: Launch Undetected Chrome (to avoid blocking)

import undetected_chromedriver as uc
from selenium.webdriver.common.by import By
from selenium.webdriver.common.keys import Keys
from time import sleep

browser = uc.Chrome()
browser.get("https://www.inmuebles24.com/casas-en-venta-en-ciudad-de-mexico.html")
sleep(5)

Step 4: Scroll Multiple Times to Load More Listings

for _ in range(12):
    browser.find_element(By.TAG_NAME, "body").send_keys(Keys.END)
    sleep(2)

Step 5: Extract Property Cards

Card CSS class often contains "posting-card". Let's locate all cards.

cards = browser.find_elements(By.XPATH, '//div[contains(@class,"posting-card")]')
mx_records = []

Step 6: Extract Basic Property Details

Each card contains:

  • Title
  • Price
  • Bedrooms
  • Bathrooms
  • Parking
  • Area (m²)
  • Location
  • URL

Let's extract these.

for card in cards:
    try:
        title = card.find_element(By.CLASS_NAME, "posting-card-title").text
    except:
        title = ""

    try:
        price = card.find_element(By.CLASS_NAME, "first-price").text
    except:
        price = ""

    try:
        location = card.find_element(By.CLASS_NAME, "posting-location").text
    except:
        location = ""

    try:
        details = card.find_element(By.CLASS_NAME, "posting-features").text
    except:
        details = ""

    try:
        url = card.find_element(By.TAG_NAME, "a").get_attribute("href")
    except:
        url = ""

    mx_records.append({
        "country": "Mexico",
        "title": title,
        "price_raw": price,
        "location": location,
        "details_raw": details,
        "url": url
    })

Step 7: Extract Detail Page Information (Deep Data)

Detail pages contain:

  • description
  • amenities
  • agent info
  • listing ID
  • construction year
  • maintenance fee
  • property type
  • images

Let’s scrape deep details.

7.1 Create Detail Scraper Function
import requests
from bs4 import BeautifulSoup

def scrape_inmuebles_detail(url):
    try:
        html = requests.get(url, timeout=10).text
        soup = BeautifulSoup(html, "lxml")

        description = soup.find("p", {"class": "posting-description-text"})
        description = description.text.strip() if description else ""

        specs = {}
        spec_blocks = soup.find_all("li", {"class": "icon-feature"})
        for sb in spec_blocks:
            key = sb.find("span").text.strip()
            val = sb.text.replace(key, "").strip()
            specs[key] = val

        amenities = []
        for li in soup.select(".amenities-list li"):
            amenities.append(li.text.strip())

        return {
            "description": description,
            "specifications": specs,
            "amenities": amenities
        }

    except Exception as e:
        return {}
7.2 Attach Deep Data to Each Card
for row in mx_records:
    row.update(scrape_inmuebles_detail(row["url"]))

Step 8: Repeat the Same Process for Spain (Madrid Example)

Open the Spain URL:

browser.get("https://www.inmuebles24.com/casas-en-venta-en-madrid.html")
sleep(5)

Scroll + extract the same way.

8.1 Scroll
for _ in range(10):
    browser.find_element(By.TAG_NAME, "body").send_keys(Keys.END)
    sleep(2)
8.2 Extract Spain Listings
cards = browser.find_elements(By.XPATH, '//div[contains(@class,"posting-card")]')
spain_records = []
8.3 Extract Spain Property Details
for card in cards:
    try:
        title = card.find_element(By.CLASS_NAME, "posting-card-title").text
    except:
        title = ""

    try:
        price = card.find_element(By.CLASS_NAME, "first-price").text
    except:
        price = ""

    try:
        location = card.find_element(By.CLASS_NAME, "posting-location").text
    except:
        location = ""

    try:
        details = card.find_element(By.CLASS_NAME, "posting-features").text
    except:
        details = ""

    try:
        url = card.find_element(By.TAG_NAME, "a").get_attribute("href")
    except:
        url = ""

    spain_records.append({
        "country": "Spain",
        "title": title,
        "price_raw": price,
        "location": location,
        "details_raw": details,
        "url": url
    })
8.4 Attach Deep Data for Spain
for row in spain_records:
    row.update(scrape_inmuebles_detail(row["url"]))

Step 9: Combine Spain + Mexico Listings

import pandas as pd

df = pd.DataFrame(mx_records + spain_records)
df.head()

Step 10: Normalize Price Values (MXN, EUR)

Prices appear like:

  • MXN $4,200,000
  • €320,000
  • $15,000 MXN/month

Let’s clean:

import re

def clean_price(val):
    if not val:
        return None

    nums = re.findall(r"\d[\d,]*", val)
    if not nums:
        return None

    return int(nums[0].replace(",", ""))

Apply:
df["price_num"] = df["price_raw"].apply(clean_price)

Step 11: Detect Currency Type

def detect_currency(val):
    if "€" in val:
        return "EUR"
    if "MXN" in val or "$" in val:
        return "MXN"
    return None

df["currency"] = df["price_raw"].apply(detect_currency)

Step 12: Convert All Prices to USD

from currency_converter import CurrencyConverter
c = CurrencyConverter()

def convert_to_usd(row):
    try:
        return c.convert(row["price_num"], row["currency"], "USD")
    except:
        return None

df["price_usd"] = df.apply(convert_to_usd, axis=1)

Step 13: Extract Bedrooms, Bathrooms, & Area

details_raw usually includes:

  • "3 Recámaras"
  • "2 Baños"
  • "140 m²"

Extract bedrooms:

def extract_beds(val):
    match = re.search(r"(\d+)\s?(rec|hab|bed)", val.lower())
    return int(match.group(1)) if match else None

Extract bathrooms:
def extract_baths(val):
    match = re.search(r"(\d+)\s?ba", val.lower())
    return int(match.group(1)) if match else None

Extract area:
def extract_area(val):
    match = re.search(r"(\d+)\s?m²", val.lower())
    return int(match.group(1)) if match else None

Apply:
df["beds"] = df["details_raw"].apply(extract_beds)
df["baths"] = df["details_raw"].apply(extract_baths)
df["area_m2"] = df["details_raw"].apply(extract_area)

Step 14: Build Your Property Intelligence Dataset

Final fields:

  • Country
  • Title
  • Price USD
  • Currency
  • Location
  • Beds
  • Baths
  • Area m²
  • Amenities
  • Specs
  • URL

Step 15: Export Dataset

df.to_csv("inmuebles24_property_data.csv", index=False)

Step 16: Visualize Data (Optional)

Price distribution:

import plotly.express as px
fig = px.box(df, x="country", y="price_usd", title="Price Distribution: Spain vs Mexico")
fig.show()

Technical Challenges in Inmuebles24 Scraping

1. Infinite scroll

Requires multiple scroll loops.

2. Spanish-language text

Regex must support Spanish real estate terms.

3. Mixed currency patterns

MXN $, EUR €, USD $.

4. Detail pages have dynamic HTML

Some units load via JS only.

5. Rate limiting

Delay required to avoid blocking.

Actowiz Solutions uses:

  • rotating proxies
  • session management
  • API reverse-engineering
  • Geo-specific routing

…to deliver clean data at scale.

When to Use Actowiz Solutions?

Choose Actowiz if you need:

  • Daily Spain + Mexico property updates
  • Price change detection
  • Neighborhood scoring
  • Rental/sale supply dashboards
  • Amenities extraction at scale
  • Image extraction + labeling
  • Multi-language parsing
  • Real estate forecasting models

We support:

  • Inmuebles24
  • Idealista
  • Fotocasa
  • Habitaclia
  • VivaReal
  • MercadoLibre
  • Zillow
  • Realtor.com
  • Apartments.com

Conclusion

In this tutorial, you learned how to:

  • scrape listings from Inmuebles24 (Spain + Mexico)
  • extract deep details (amenities, description, specs)
  • normalize price and convert currencies
  • extract beds/baths/area using regex
  • merge multi-country datasets
  • export analytics-ready files
  • visualize property markets

This lays the foundation for a complete Spain + Mexico real estate intelligence platform.

You can also reach us for all your mobile app scraping, data collection, web scraping, and instant data scraper service requirements!

Social Proof That Converts

Trusted by Global Leaders Across Q-Commerce, Travel, Retail, and FoodTech

Our web scraping expertise is relied on by 4,000+ global enterprises including Zomato, Tata Consumer, Subway, and Expedia — helping them turn web data into growth.

4,000+ Enterprises Worldwide
50+ Countries Served
20+ Industries
Join 4,000+ companies growing with Actowiz →
Real Results from Real Clients

Hear It Directly from Our Clients

Watch how businesses like yours are using Actowiz data to drive growth.

1 min
★★★★★
"Actowiz Solutions offered exceptional support with transparency and guidance throughout. Anna and Saga made the process easy for a non-technical user like me. Great service, fair pricing!"
TG
Thomas Galido
Co-Founder / Head of Product at Upright Data Inc.
2 min
★★★★★
"Actowiz delivered impeccable results for our company. Their team ensured data accuracy and on-time delivery. The competitive intelligence completely transformed our pricing strategy."
II
Iulen Ibanez
CEO / Datacy.es
1:30
★★★★★
"What impressed me most was the speed — we went from requirement to production data in under 48 hours. The API integration was seamless and the support team is always responsive."
FC
Febbin Chacko
-Fin, Small Business Owner
icons 4.8/5 Average Rating
icons 50+ Video Testimonials
icons 92% Client Retention
icons 50+ Countries Served

Join 4,000+ Companies Growing with Actowiz

From Zomato to Expedia — see why global leaders trust us with their data.

Why Global Leaders Trust Actowiz

Backed by automation, data volume, and enterprise-grade scale — we help businesses from startups to Fortune 500s extract competitive insights across the USA, UK, UAE, and beyond.

icons
7+
Years of Experience
Proven track record delivering enterprise-grade web scraping and data intelligence solutions.
icons
4,000+
Projects Delivered
Serving startups to Fortune 500 companies across 50+ countries worldwide.
icons
200+
In-House Experts
Dedicated engineers across scrapers, AI/ML models, APIs, and data quality assurance.
icons
9.2M
Automated Workflows
Running weekly across eCommerce, Quick Commerce, Travel, Real Estate, and Food industries.
icons
270+ TB
Data Transferred
Real-time and batch data scraping at massive scale, across industries globally.
icons
380M+
Pages Crawled Weekly
Scaled infrastructure for comprehensive global data coverage with 99% accuracy.

AI Solutions Engineered
for Your Needs

LLM-Powered Attribute Extraction: High-precision product matching using large language models for accurate data classification.
Advanced Computer Vision: Fine-grained object detection for precise product classification using text and image embeddings.
GPT-Based Analytics Layer: Natural language query-based reporting and visualization for business intelligence.
Human-in-the-Loop AI: Continuous feedback loop to improve AI model accuracy over time.
icons Product Matching icons Attribute Tagging icons Content Optimization icons Sentiment Analysis icons Prompt-Based Reporting

Connect the Dots Across
Your Retail Ecosystem

We partner with agencies, system integrators, and technology platforms to deliver end-to-end solutions across the retail and digital shelf ecosystem.

icons
Analytics Services
icons
Ad Tech
icons
Price Optimization
icons
Business Consulting
icons
System Integration
icons
Market Research
Become a Partner →

Popular Datasets — Ready to Download

Browse All Datasets →
icons
Amazon
eCommerce
Free 100 rows
icons
Zillow
Real Estate
Free 100 rows
icons
DoorDash
Food Delivery
Free 100 rows
icons
Walmart
Retail
Free 100 rows
icons
Booking.com
Travel
Free 100 rows
icons
Indeed
Jobs
Free 100 rows

Latest Insights & Resources

View All Resources →
thumb
Blog

How to Extract Real-Time Travel Mode Data Using APIs for AI Travel Apps

Extract real-time travel mode data via APIs to power smarter AI travel apps with live route updates, transit insights, and seamless trip planning.

thumb
Case Study

UK DTC Brand Detects 800+ MAP Violations in First Month

How a $50M+ consumer electronics brand used Actowiz MAP monitoring to detect 800+ violations in 30 days, achieving 92% resolution rate and improving retailer satisfaction by 40%.

thumb
Report

Track UK Grocery Products Daily Using Automated Data Scraping to Monitor 50,000+ UK Grocery Products from Morrisons, Asda, Tesco, Sainsbury’s, Iceland, Co-op, Waitrose, Ocado

Track UK Grocery Products Daily Using Automated Data Scraping across Morrisons, Asda, Tesco, Sainsbury’s, Iceland, Co-op, Waitrose, and Ocado for insights.

Start Where It Makes Sense for You

Whether you're a startup or a Fortune 500 — we have the right plan for your data needs.

icons
Enterprise
Book a Strategy Call
Custom solutions, dedicated support, volume pricing for large-scale needs.
icons
Growing Brand
Get Free Sample Data
Try before you buy — 500 rows of real data, delivered in 2 hours. No strings.
icons
Just Exploring
View Plans & Pricing
Transparent plans from $500/mo. Find the right fit for your budget and scale.
Get in Touch
Let's Talk About
Your Data Needs
Tell us what data you need — we'll scope it for free and share a sample within hours.
  • Free Sample in 2 HoursShare your requirement, get 500 rows of real data — no commitment.
  • 💰
    Plans from $500/monthFlexible pricing for startups, growing brands, and enterprises.
  • 🇺🇸
    US-Based SupportOffices in New York & California. Aligned with your timezone.
  • 🔒
    ISO 9001 & 27001 CertifiedEnterprise-grade security and quality standards.
Request Free Sample Data
Fill the form below — our team will reach out within 2 hours.
+1
Free 500-row sample · No credit card · Response within 2 hours

Request Free Sample Data

Our team will reach out within 2 hours with 500 rows of real data — no credit card required.

+1
Free 500-row sample · No credit card · Response within 2 hours