initialize video and add title

This commit is contained in:
2024-04-06 19:20:17 -07:00
parent 1357f9f081
commit 9507f92b27
11 changed files with 52 additions and 0 deletions

14
reddit.py Normal file
View File

@@ -0,0 +1,14 @@
import praw
reddit = praw.Reddit(
client_id="my client id",
client_secret="my client secret",
user_agent="my user agent",
)
def get_posts():
ids = []
for submission in reddit.subreddit("news").new(limit=10):
ids.append(submission.id)
return ids