ADD: Subreddit search

This commit is contained in:
2025-11-06 14:41:46 +00:00
parent 6533bc2f13
commit a9778f26b2
3 changed files with 37 additions and 9 deletions

View File

@@ -1,11 +1,18 @@
class Post:
def __init__(self, author, title, content, url, timestamp):
def __init__(self, author: str,
title: str,
content: str,
url: str,
timestamp: float,
source: str):
self.author = author
self.title = title
self.content = content
self.url = url
self.timestamp = timestamp
self.source = source
# Optionals
self.subreddit = None
self.upvotes = None
self.upvotes = None
self.comments = None