steampipe plugin install reddit

Table: reddit_subreddit_post_search - Query Reddit Subreddit Posts using SQL

Reddit is a social news aggregation, web content rating, and discussion platform. Registered members submit content to the site such as links, text posts, and images, which are then voted up or down by other members. Posts are organized by subject into user-created boards called "subreddits", which cover a variety of topics.

Table Usage Guide

The reddit_subreddit_post_search table provides insights into Subreddit Posts within Reddit. As a data analyst, explore post-specific details through this table, including content, comments, and associated metadata. Utilize it to uncover information about posts, such as trending topics, popular comments, and user engagement levels.

Important Notes

  • You must specify both subreddit and query in the where clause to query this table.

Examples

Search the "aws" subreddit for "steampipe"

Explore the popularity and relevance of Steampipe within the AWS community on Reddit. This query helps identify posts that mention 'steampipe', allowing users to understand its significance and usage trends among AWS users.

select
rank,
title,
created_utc,
score,
url
from
reddit_subreddit_post_search
where
subreddit = 'aws'
and query = 'steampipe'
order by
rank;
select
rank,
title,
created_utc,
score,
url
from
reddit_subreddit_post_search
where
subreddit = 'aws'
and query = 'steampipe'
order by
rank;

Schema for reddit_subreddit_post_search

NameTypeOperatorsDescription
_ctxjsonbSteampipe context in JSON form, e.g. connection_name.
authortextAuthor of the post.
author_fullnametextFull name of the author for the post.
created_utctimestamp with time zoneTime when the post was created.
editedtimestamp with time zoneTime when the post was edited.
idtextID of the post.
is_selfboolean
likesbooleanTrue if you've upvoted the post. False if you've downvoted it. Otherwise null.
lockedbooleanTrue if the post is locked.
nametextSlug (full ID) of the post.
num_commentsbigintNumber of comments on the post.
over_18booleanTrue if the post is not safe for work (over 18).
permalinktextPermalink (path only) to the post.
querytext=Search query string.
rankbigintRank of the post among the result rows, use for sorting.
savedbooleanTrue if the post has been saved.
scorebigintScore of the post.
selftexttextBody of the post.
spoilerbooleanTrue if the post is a spoiler.
stickiedbooleanTrue if the post has been stickied.
subreddittext=Name of the subreddit, e.g. aws.
subreddit_idtextID of the subreddit.
subreddit_name_prefixedtextPrefixed name of the subreddit, e.g. /r/aws.
subreddit_subscribersbigintNumber of subscribers to the subreddit.
titletextTitle of the post.
upvote_ratiodouble precisionUpvote ratio of the post.
urltextURL the post links to, or of the post itself.

Export

This table is available as a standalone Exporter CLI. Steampipe exporters are stand-alone binaries that allow you to extract data using Steampipe plugins without a database.

You can download the tarball for your platform from the Releases page, but it is simplest to install them with the steampipe_export_installer.sh script:

/bin/sh -c "$(curl -fsSL https://steampipe.io/install/export.sh)" -- reddit

You can pass the configuration to the command with the --config argument:

steampipe_export_reddit --config '<your_config>' reddit_subreddit_post_search