Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ralyodio/reddit-rss-submit

Submit RSS links to Reddit.
https://github.com/ralyodio/reddit-rss-submit

Last synced: 12 days ago
JSON representation

Submit RSS links to Reddit.

Awesome Lists containing this project

README

        

reddit-rss-submit
=============

## node.js (required)

#mac
brew install node

Other OS (windows, linux) should install from source found at http://nodejs.org

## install

git clone [email protected]:chovy/reddit-rss-submit.git
cd reddit-rss-submit

#create cache
mkdir tmp
echo '{}' > tmp/seen.json

npm install

# add a cronjob to periodically check
crontab -e

# add this line (runs every hour on hh:05)
5 * * * * /usr/local/bin/node ~/path/to/reddit-rss-submit/index.js -u user -p pass --multi

# use flock to skip runs where script is already running (recommended - allows to run every 5 mins)
*/5 * * * * flock -n /tmp/reddit.lock -c "/usr/local/bin/node /path/to/reddit-rss-submit/index.js -u user -p pass"

## configure

Only json is supported, best thing to convert RSS to JSON is to setup a Yahoo pipes over at http://pipes.yahoo.com
You can can then grab the URL of your pipe's output as JSON.

cp config.sample.json config.json

Edit `config.json` to point to the URL of your feed (see yahoo pipes to convert to JSON)

## options

- user: reddit uername (required)
- pass: reddit password (required)
- v: verbosity (`-vvv` to increase)
- t: throttle (number of minutes between link submissions, defaults to 10)
- m: multi (supports posting to multiple reddits)

LICENSE: MIT

[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/chovy/reddit-rss-submit/trend.png)](https://bitdeli.com/free "Bitdeli Badge")