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
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
Click “create another app” button at the bottom
Click “script” radio button
Fill in the remaining boxes, the actual values don’t matter
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file recho-1.0.2.tar.gz
.
File metadata
- Download URL: recho-1.0.2.tar.gz
- Upload date:
- Size: 9.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 72a2a67fa816310c306e33428115ccd1c00fda876287b36a50dc0463607d8567 |
|
MD5 | 411e0e5c98070e5f2f36bf4515582ab8 |
|
BLAKE2b-256 | c78b43fbb3536c4b24d26ffdbc6a396fb0e5febe7131629de12402223df02e54 |
File details
Details for the file recho-1.0.2-py2.py3-none-any.whl
.
File metadata
- Download URL: recho-1.0.2-py2.py3-none-any.whl
- Upload date:
- Size: 9.3 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 62d764282026eed5ef12d8c2c85e9ea09233f75af4715768ced826993fef98fa |
|
MD5 | 5d3f66ad6f697587bef6731931f5c58a |
|
BLAKE2b-256 | d398c7af4bc46e26b5e16f8e01948ca4af4f503e8a05166aafa089bf77839458 |