Reddit Posts
BRIDGES provides easy access to limited features of Reddit. You are able to access a few popular subreddits and get the most popular top level posts of these subreddits. The API does not enable you to get the comments on the top level post, nor to reply, nor to access arbitrary subreddits outside the supported list. (See the supported list here. )
See also
This tutorial gives an introduction to the usage of Reddit data. You can find the complete documentation of the features in the Doxygen documentation of the following classes and functions:
Accessing Reddit Data: An Example BRIDGES program
- Copy/paste the code into your environment and compile.
- Assuming all your code is correct and it compiles correctly, the code will print a record of the data to the console.
Advanced Features
Accessing posts in the past
You can access the posts that our service retrieved in the past by passing a unix timestamp to the reddit data function.
Accessing the list of subreddit programatically
You can access the available subreddits programmatically with the DataSource::getAvailableSubreddits() function. This will return a list of strings.