Giter VIP home page Giter VIP logo

redditspybot's Introduction

redditSpyBot

A telegram bot that watches subreddits for particular post titles

What does it do

Every 5 minutes it gets the newest posts for the specified subreddits and if the post titles match the regex then the telegram bot will notify the user.

Features

  • Supports watching of multiple subreddits at once
  • Supports regex per subreddit
  • Can also dump all text a user has written into reddit (comments/posts etc)
  • Does not use Praw, hence no reddit credentials are required

Python dependencies

Installation

Install the dependencies:

pip3 install -r requirements.txt

Generate a token for your bot by talking to the Telegram bot father. Change the token in the source code to that of your bot.

Run bot:

python3 bot.py

Usage

  • /watch <subreddit name> <optional regex> - Add subreddit to your watchlist. If regex is not provided, all posts will be matched. If subreddit is already on the watchlist, the regex will be updated
  • /unwatch <subreddit name> - Remove subreddit from watchlist
  • /list - Show all subreddits on the watchlist
  • /dump <reddit username> - Gets all text a user has written in reddit and sends it as a text file
  • /enable - Start polling subreddits on watchlist for posts every 5 minutes. (Disabled by default)
  • /disable - Stop polling subreddits
  • /regshow <subreddit name> - Show regex used for a particular subreddit
  • /regclear <subreddit name> - Clear regex used for a subreddit to match all posts
  • /help - Show help message

redditspybot's People

Contributors

cabbache avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  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.