Skip to content

Reddit Source downloader #40

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open

Reddit Source downloader #40

wants to merge 7 commits into from

Conversation

nickninov
Copy link
Member

@nickninov nickninov commented Jul 15, 2025

Linked to:

  • Subreddit Posts - completed
  • Subreddit Votes - completed
  • Subreddit Comments - completed
  • Subreddit Comment Votes - completed
  • Output fields are based on Dagster process

- Subreddit Posts - completed
- Subreddit Votes - completed
- Subreddit Comments - in development
- Output fields are based on Dagster process
@nickninov nickninov self-assigned this Jul 15, 2025
@nickninov nickninov added the connector Issue data extraction label Jul 15, 2025
Copy link
Collaborator

@apentori apentori left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work so far !

Comment on lines 192 to 196
def __init__(self, subreddit: str, authenticator: requests.auth.AuthBase, **kwargs):
super().__init__(parent=SubredditPosts, **kwargs)

self.subreddit = subreddit
self.parent = SubredditPosts(self.subreddit, authenticator)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you put subreddit in APIStream you wont have to declare the init function

- Add the votes for the comments
- Secret has been deleted. Old one doesn't work anymore
- Airbyte stream rename
- Add  request_params
@@ -129,16 +154,14 @@ def next_page_token(self, response: requests.Response) -> Optional[dict[str, Any



class SubredditVotes(SubredditPosts):
class PostsVotes(Posts):
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't this be a HttpSubStream ?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PostsVotes should be running independently. Votes are dynamic - can change any time. If PostsVotes is its own stream we can the monitor its engagement. If we want to do get the latest value then the data will have to be transformed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
connector Issue data extraction
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants