Skip to main content

repost Reddit activity from a user to Slack in near-realtime

Project description

Reddit Echo

Reposts Reddit posts from a target user to a specific slack channel

PyPIVersion TravisCI CoverageStatus CodeHealth PythonVersions

Helper class to make working with Selenium recho waits easier and more accessible

(Optional) Create a virtual environment

Its useful to create a virtual environment for installing and running recho

$ sudo pip install virtualenv
$ cd ~
$ virtualenv .venvrecho
$ source .venvrecho/bin/activate

Register Your App

Register your app with Reddit, and jot down your Client ID and Secret https://ssl.reddit.com/prefs/apps

  1. Click “create another app” button at the bottom
  2. Click “script” radio button
  3. Fill in the remaining boxes, the actual values don’t matter
  4. Click create, and record Client ID and Secret

Installation

Install from PyPI using pip:

$ pip install --update recho

Add the configuration file

$ touch ~/.recho.ini

Write the following into that file, adding your Slack token and channel

[praw]
client_id: <Reddit Client ID>
client_secret: <Reddit Client Secret>

[slack]
# Follow instructions at https://my.slack.com/services/new/bot
token: <Your slack token>
channel: <your channel name>

Note that the channel name is without the hash. general instead of #general

Running Recho

Recho is designed for use with cron. Simply add an entry similar to the one below:

$ sudo vi /etc/crontab

If you use a virtual environment:

* * * * * user source ~/.venvrecho/bin/activate && recho acidtwist

Otherwise you can simply call recho directly

* * * * * user recho acidtwist

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for recho, version 1.0.2
Filename, size File type Python version Upload date Hashes
Filename, size recho-1.0.2-py2.py3-none-any.whl (9.3 kB) File type Wheel Python version py2.py3 Upload date Hashes View hashes
Filename, size recho-1.0.2.tar.gz (9.7 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page