Git Product home page Git Product logo

tg-channel-watcher's Introduction

tg-channel-watcher

telethon version license last commit

Introduction

This project is the combination of two simple Python 3 scripts that I originally wrote for myself, and then I decided to make public so that everyone could make use of and improve them.

Any contribution to the project is highly appreciated and welcome, however, please try to follow the PEP8 specification in order to keep the code clean, tidy and consistent.

The two components of tg-channel-watcher (which are also the two original separate projects) are:

  • forwarder: checks all the messages sent in a list of channels and forwards (to yourself or to someone else) the ones matching a set of regexes,

  • downloader: downloads all the media (images and/or documents) sent in a list of channels, except for the formats specified in a blacklist.

Getting started

After you have cloned the repository, run the command pip3 install -Ur requirements.txt to install all the required dependencies. You may want to use a virtual environment for that.

Before running the script, create a configuration file with your settings using the file example.ini as reference. Then, run the script with the configuration file as first parameter, like that ./main.py config.ini, or without any parameter to use the config.ini file in the same directory.

tg-channel-watcher's People

Watchers

 avatar

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.