How davrafa/idealista-data-pipeline works
This repository implements an Idealista real-estate data pipeline: it fetches listing HTML, parses listings into a 38-column export schema, stores them in PostgreSQL, and writes a semicolon-delimited delivery file. Separate scripts upload that file to S3 and retrieve validator refusal files. The README documents PostgreSQL staging and schema mapping; the sampled source shows the main runtime calls. The daily workflow and database setup files are present in the tree but were not sampled, so their orchestration details are not inferred.
Main entry points: pipeline.py HTML fetch · upload.py S3 upload · data_file.txt Delivery file · check.py Refusal-file check
Components 12
Ingestion and mapping
- HTML fetch
src/pipeline.py - Listing parser
src/pipeline.py - Export schema
src/pipeline.py
Staging and export
- PostgreSQL listings
src/pipeline.py - Tabular export
src/pipeline.py - Delivery file
data_file.txt
Delivery and validation
- S3 upload
src/upload.py - Data marketplace S3
- Refusal-file check
src/check.py - Validator refusal file
src/erro_validador.txt
Other components
- Pipeline operator
- Idealista listings
Connections 11
- Pipeline operator → HTML fetch: runs pipeline
src/pipeline.py - HTML fetch → Idealista listings: requests HTML
src/pipeline.py - HTML fetch → Listing parser: passes HTML
src/pipeline.py - Listing parser → Export schema: maps fields
src/pipeline.py - Listing parser → PostgreSQL listings: saves listings
src/pipeline.py - Tabular export → PostgreSQL listings: reads listings
src/pipeline.py - Tabular export → Delivery file: writes rows
src/pipeline.py - S3 upload → Delivery file: uploads file
src/upload.py - S3 upload → Data marketplace S3: sends to
src/upload.py - Refusal-file check → Data marketplace S3: lists and downloads
src/check.py - Data marketplace S3 → Validator refusal file: returns refusal file