Skip to content

A smart and simple tool to search offers on the popular Italian website subito.it

License

Notifications You must be signed in to change notification settings

daqh/dubito-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dubito Logo

Dubito

Dubito is a Python package that allows you to track Subito insertions. It's a simple tool that allows you to track subito insertions by specifying a query and some filters. It's useful if you want to track a specific product or if you want to track a product in a specific region or any product for a specific query.

This project was inspired by the subito-it-searcher project, and its aim is to introduce notable improvements.

Installation

To install the package you can use pip:

pip install git+https://github.com/daqh/dubito-cli

Running the command:

dubito --help

The result will be:

usage: dubito [-h] [-l {INFO,DEBUG,WARNING,ERROR,CRITICAL}] {query,generate,find,analyze,fetch} ...

Get Subito insertions from a query or a url.

positional arguments:
  {query,generate,find,analyze,fetch}
                        sub-command help
    query               Get Subito insertions from a query or a url.
    generate            Generate a Dubito project.
    find                Find a query in the database.
    analyze             Analyze a query.
    fetch               Fetch a newspaper.

options:
  -h, --help            show this help message and exit
  -l {INFO,DEBUG,WARNING,ERROR,CRITICAL}, --log-level {INFO,DEBUG,WARNING,ERROR,CRITICAL}
                        Log level.

Enjoy the program! :)

Getting started

Create a new Dubito Project

dubito generate

This will create two sqlite databases, in the current folder, to store insertions and newspaper data.

Data Extrapolation

usage: dubito query [-h] (-q QUERY | --url URL) [--install-cache]

options:
  -h, --help            show this help message and exit
  -q QUERY, --query QUERY
                        The query to search.
  --url URL             The url to search.
  --install-cache       Install the cache.

Data selection

usage: dubito find [-h] query

positional arguments:
  query       The query to search.

options:
  -h, --help  show this help message and exit

Where query is an SQL query used to select the data:

dubito find "select s.id, s.title, s.price from subito_insertion as s where s.title like '%iphone 12 mini%' and s.price > 100 order by s.price" > result.csv

Data visualization

usage: dubito analyze [-h] keywords [keywords ...]

positional arguments:
  keywords    The keywords to analyze.

options:
  -h, --help  show this help message and exit

About

A smart and simple tool to search offers on the popular Italian website subito.it

Topics

Resources

License

Stars

Watchers

Forks