Giter Site home page Giter Site logo

scrapddit's Introduction

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!

scrapddit's People

Contributors

dependabot-preview[bot] avatar dfirebird avatar dependabot[bot] avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.