Skip to content

This project may be used to receive notifications in Telegram when a new product will be listed for some category (https://reverb.com)

Notifications You must be signed in to change notification settings

borys25ol/reverb-telegram-notifier

Repository files navigation

Reverb Telegram Notifier

forthebadge made-with-python

Code style: black Checked with mypy Imports: isort Pre-commit: enabled

Description

This project can be used to receive notifications in Telegram when a new product will be listed for some category (https://reverb.com)

Developing

Install pre-commit hooks to ensure code quality checks and style checks

$ make install_hooks

Then see Configuration section

You can also use these commands during dev process:

  • To run mypy checks

    $ make types
    
  • To run flake8 checks

    $ make style
    
  • To run black checks:

    $ make format
    
  • To run together:

    $ make lint
    

Configuration

Replace .env.example with real .env, changing placeholders

TELEGRAM_BOT_TOKEN=<token>
TELEGRAM_CHAT_ID=<public/group-id>
MONGO_URI=<mongo-uri>
MONGO_DB=<mongo-collection>
MONGO_PRODUCT_COLLECTION=<mongo-collection>
MONGO_SCRAPING_LINKS_COLLECTION=<mongo-collection>

Local install

Setup and activate a python3 virtualenv via your preferred method. e.g. and install production requirements:

$ make ve

For remove virtualenv:

$ make clean

Local run

Run spider locally:

$  scrapy crawl reverb.com

Run docker containers:

$  make docker_up

About

This project may be used to receive notifications in Telegram when a new product will be listed for some category (https://reverb.com)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published