Saves my reddit saved posts to mongolab
JavaScript
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
README.md
package.json
save-reddit-posts.js
test.js

README.md

redditwebtask

If this then that webtask for storing your saved reddit posts to mongodb instance

#How to use

Refer to the blogpost/tutorial for detailed explanation.

Tl;dr version is below

Fork this repo and create a webtask with following command wt create --secret MONGO_URI="<mongo_connection_url>" https://raw.githubusercontent.com/<user_github_username>/redditwebtask/master/save-reddit-posts.js

Setup a ifttt trigger for "New post saved by you" on reddit channel. Then setup a Maker channel action to trigger your redditwebtask url and pass following query string parameters

  • title
  • content
  • postURL
  • subreddit

testing this locally

First

npm install

and then run

node test.js --MONGO_URI=<mongolab_or_local_mongo_connection_url>

This should insert a reddit post document in posts collection in specified mongodb instance.