A program to retrive posts titles from a reddit user or a subreddit.
The program only retrives titles of top 25 posts from a subreddit and reddit user.
Used libraries: snoowrap and commander
Download the program from here
Warning: Make sure to read any script from internet before running in your PC.
Usage:
node index.js [options] [command]
scrappdit [options] [command]Use u or user command to get the top post titles of the user.
node index.js u <username>
scrappdit u <username>Use s or subreddit command to get the hot post titles of the subreddit.
node index.js s <subredditname>
scrappdit s <subredditname>Use t or stream command to get post titles from the subreddit and it constantly prints new post's titles as soons the someone posts it in subreddit.
node index.js t <subredditname>
scrappdit s <subredditname>Use -c, --count <count> option to get a specified number of post titles. The default count is 25.
node index.js u <username> -c <count>
node index.js s <subreddit name> -c <count>List of options available:
-
-V, --versionOutput the version number -
-h, --helpOutput usage information -
-c, --count <count>Specify the count of posts you want (default: 25);
List of commands avaiable:
user | u <username>Get post titles from a user.subreddit | s <subredditname>Get post titles from a subreddit.stream | t <subredditname>Stream post titles from a subreddit.
- Clone the repo
npm installnode index.js <option> <commands>- 🎉
Optional:
Install pkg to package the script into a executable!