Reddit Tasks

To access Reddit using MassMine you must first authenticate. This is a requirement of Reddit. Authorization is simple, and only has to be completed once.

To authenticate with Reddit, run

massmine --task=reddit-auth

Check out the general usage examples to learn how to use MassMine. Below is a description of the tasks available for Reddit.

Task parameters marked * are required. For parameters marked with a + choose only one.


➾ reddit-auth

Sets up MassMine to make data requests under your Reddit account privileges. This task must be ran before using any other Reddit tasks, or an error will be returned.

Parameters

Example

massmine --task=reddit-auth

➾ reddit-best

Returns posts from Reddit’s Best listing, drawn from across all subreddits.

Parameters

Example

massmine --task=reddit-best --count=100

➾ reddit-hot

Returns posts from Reddit’s front page for a specified subreddit, sorted by hot.

Parameters

Example

massmine --task=reddit-hot --query=politics --count=100 --geo=US

➾ reddit-search-comments

Returns comments matching a given search phrase within a specified subreddit.

Parameters

Example

# Looking for love in /r/news
massmine --task=reddit-search-comments --query='news:love' --count=100 --date=week

➾ reddit-search-hot

Returns posts matching a given search phrase within a specified subreddit, sorted by hot.

Parameters

Example

# Looking for love in /r/news
massmine --task=reddit-search-hot --query='news:love' --count=100 --date=week

➾ reddit-search-new

Returns posts matching a given search phrase within a specified subreddit, sorted by new.

Parameters

Example

# Looking for love in /r/news
massmine --task=reddit-search-new --query='news:love' --count=100 --date=week

➾ reddit-search-top

Returns posts matching a given search phrase within a specified subreddit, sorted by top.

Parameters

Example

# Looking for love in /r/news
massmine --task=reddit-search-top --query='news:love' --count=100 --date=week

➾ reddit-search-relevance

Returns posts matching a given search phrase within a specified subreddit, sorted by relevance.

Parameters

Example

# Looking for love in /r/news
massmine --task=reddit-search-relevance --query='news:love' --count=100 --date=week