Socket
Socket
Sign inDemoInstall

rpost

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rpost

A CLI that helps you to submit a reddit post to multiple subreddits


Version published
Weekly downloads
3
increased by50%
Maintainers
1
Weekly downloads
 
Created
Source

rpost

npm npm David

A CLI that helps you to submit a reddit post to multiple subreddits. The script will automatically wait between submissions to conform with Reddit rules (so you don't have to manually wait, just run the script and that's it).

Installation

$ npm install -g rpost

Getting client ID and secret

Before running the script, you need to get a client ID and secret from your Reddit profile first. You can do it as follows:

  1. Login to Reddit
  2. Go to https://www.reddit.com/prefs/apps
  3. Scroll down, click the "create an app" button
  4. Enter the following for the fields:
    • Name: anything (won't be used)
    • Type: script
    • Description: leave it blank
    • About URL: leave it blank
    • Redirect URL: any valid URL (i.e. https://reddit.com)
  5. Click create app
  6. Take a note of the client ID (below the app title) and the client secret. Make sure to keep them confidential.

Running the script

Usage:

$ rpost [-u <redditUserName>] [-p <redditPassword>] [-ci <clientId>] [-cs <clientSecret>] [-t <type>] [-pt <postTitle>] [-px <postText>] [-pu <postUrl>] [-s <subreddits>]

Arguments (all required):

  • -u redditUserName: your Reddit username
  • -p redditPassword: your Reddit password
  • -ci clientId: client ID. See Getting client ID and secret for more details.
  • -cs clientSecret: client secret. See Getting client ID and secret for more details.
  • -t type: post type (link/text).
  • -pt postTitle: post title.
  • -px postText: post text. Required only if post type is text.
  • -pu postUrl: post URL. Required only if post type is link.
  • -s subreddits: comma separated list of subreddits (without the r/ prefix).

If you miss some of the arguments on the first invocation, don't worry, you will be prompted to fill them after you hit enter.

Environment variables

Alternatively, to avoid having to enter the arguments every time you run the program, you can also set the values as environment variables. The variable name should be "rpost_" plus the argument name specified in the above list. Example: rpost_redditUserName, rpost_redditPassword, etc.

Contributing

License

Keywords

FAQs

Package last updated on 12 Oct 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc