pip install alien
The functionality of this library is limited on purpose so it respects the
reddit.com/robots.txt
rules.
from alien import Alien
alien = Alien()
for post in alien.get_posts():
print(post)
for post in alien.get_subreddit_posts(subreddit):
print(post)
for post in alien.get_user_posts(username):
print(post)
for post in alien.get_submissions():
print(post)
for post in alien.get_subreddit_submissions(subreddit):
print(post)
for post in alien.get_user_submissions(username):
print(post)
for post in alien.get_comments():
print(post)
for post in alien.get_subreddit_comments(subreddit):
print(post)
for post in alien.get_submission_comments(submission):
print(post)
for post in alien.get_user_comments(username):
print(post)