Skip to main content

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

Metadata

Release files for recho 1.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for recho 1.0.2
File Size Uploaded
recho-1.0.2.tar.gz 9.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for recho 1.0.2
File Interpreter ABI Platform
recho-1.0.2-py2.py3-none-any.whl Python 3, Python 2 none any Details

Total release size: 19.0 kB

Release files / recho-1.0.2.tar.gz

Download URL recho-1.0.2.tar.gz
Size 9.7 kB
Tags Source
SHA-256 checksum
How to use checksums
72a2a67fa816310c306e33428115ccd1c00fda876287b36a50dc0463607d8567
BLAKE2b-256 checksum
How to use checksums
c78b43fbb3536c4b24d26ffdbc6a396fb0e5febe7131629de12402223df02e54
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / recho-1.0.2-py2.py3-none-any.whl

Download URL recho-1.0.2-py2.py3-none-any.whl
Size 9.3 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
62d764282026eed5ef12d8c2c85e9ea09233f75af4715768ced826993fef98fa
BLAKE2b-256 checksum
How to use checksums
d398c7af4bc46e26b5e16f8e01948ca4af4f503e8a05166aafa089bf77839458
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

1.0.2 This release

2 release files

1.0.1

2 release files

1.0.0

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

0.0.9

2 release files

0.0.8

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page