Skip to content

A app that retrieves post from a specific subreddit or user in a reddit

License

Notifications You must be signed in to change notification settings

dfireBird/scrapddit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

76 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Scrapddit

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

imgur

Usage

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, --version Output the version number

  • -h, --help Output 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.

Contributing

  1. Clone the repo
  2. npm install
  3. node index.js <option> <commands>
  4. 🎉

Optional:

Install pkg to package the script into a executable!

About

A app that retrieves post from a specific subreddit or user in a reddit

Resources

License

Stars

Watchers

Forks

Packages

No packages published