Coder Social home page Coder Social logo

thesis's Introduction

Real Estate Listings Aggregator and Scorer ๐Ÿ 

This project was created as part of a Bachelor's thesis.

This project scrapes Czech real estate platforms sreality.cz and bezrealitky.cz, unifies the scraped listings data, scores the listings based on user-defined preferences and notifies the user about new listings that match their selected criteria using a Discord webhook. The results are also accessible via a web app, where users can view the listings and set their preferences.

Features โœจ

  • Data Scraping ๐Ÿ“Š: Automates scraping of listings from sreality.cz and bezrealitky.cz.
  • Data Cleaning ๐Ÿงน: Unifies the data format from different sources.
  • Listing Scoring โš–๏ธ: Listings are scored based on user defined weights.
  • Notification System ๐Ÿ“ฌ: User is notified via Discord webhook about new listings that match their preferences.
  • Web Interface ๐Ÿ’ป: A Flask-based web application for viewing the listings and setting preferences.

Prerequisites ๐Ÿ› ๏ธ

  • Docker
  • Python - developed using Python 3.11 and 3.12.

Getting started ๐Ÿš€

Initialize and Update Submodules

git submodule init
git submodule update

Setup Python Environment

python3 -m venv .venv
pip install -r requirements.txt

Modify the .env.example file, rename it to .env and insert the discord webhook

cp userdata/.env.example userdata/.env
vim userdata/.env

Build Docker Containers

docker compose build --no-cache

Scrape the listings

docker compose up crawler

Start webapp and schedule scraping every 10 minutes

docker compose up -d webapp
(crontab -l 2>/dev/null; echo "*/10 * * * * /usr/bin/docker compose -f $(pwd)/docker-compose.yml up -d crawler") | crontab -

Acessing the web app

http://127.0.0.1:5000

Accessing logs ๐Ÿ“œ

docker compose logs webapp
docker compose logs crawler

thesis's People

Contributors

adamhradil avatar

Watchers

 avatar

thesis's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.