I am trying to obtain the top 10 posts from the subreddit Bitcoin using the praw wrapper but I get an empty list:
import praw
reddit = praw.Reddit(client_id = 'XXX',
client_secret = 'XXX',
username = 'XXX',
password = 'XXXX',
user_agent = 'XXXXX')
appended_data = []
subreddit = reddit.subreddit('bitcoin')
top_python = subreddit.top(limit=10)
for submission in top_python:
if not submission.stickied:
appended_data.append(submission.selftext)
appended_data
and I obtain the following empty list:
Out[105]: ['', '', '', '', '', '', '', '', '', '']
Any idea why?
Thanks