Skip to content

gianpy15/rs-subito-alert

Repository files navigation

Subito.it Scraper

This is my first project in Rust.

I want to build a tool for scrape Subito.it website based on some custom searches and periodically send telegram notifications for every new entry found.

I'm studying Rust, suggestions and PRs are more than welcome.

Hexagonal Architecture

Since I've studied recently Hexagonal architecture, I'm trying to apply it to this project. Here's the outline:

Hexagon

Flows

  • Add new search
  • Get all the searches
  • Perform the scrape
  • Get results

Ports

  • Application
  • Notification
  • Scraper
  • DataBase
  • Serialization

Adapters

  • Application Entry Point
  • Notification (telegram)
  • Scraper Agent
  • Query Engine
  • Serializer

TODO

  • Better messages for list and scrape results.
  • Reset Apllication in cli.
  • Set Scrape interval in cli.
  • Print help message in bot start.
  • User Management for indipendent notifications.

About

Scraping and alerting for subito.it website

Resources

Stars

Watchers

Forks

Packages

No packages published