Skip to content
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

[boosty] added new direct message extractor #6768

Merged
merged 1 commit into from
Feb 23, 2025
Merged

Conversation

5n0wstorm
Copy link

Adds BoostyDirectMessageExtractor as a new feature to fetch and process Boosty direct messages, including attachments. Updates BoostyAPI with dialog, dialog_messages, and _pagination_dialog methods for direct message retrieval. Verified that all file types can be successfully downloaded to the best of my capacity.
There is possibly a way to always fetch the DMs, but the _dispatch_extractors function is a bit too complex for me at the moment. Let me know if adjustments are needed or if this is out of scope.

return self._pagination_dialog(endpoint, params)

def _pagination_dialog(self, endpoint, params):
all_messages = []
Copy link
Owner

Choose a reason for hiding this comment

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

What's this for? You are collecting all message objects to not actually use them?

@mikf
Copy link
Owner

mikf commented Feb 22, 2025

@5n0wstorm
I've applied some of the requested changes and simplifications myself: 9cfe629

Could you please explain how dialog_messages() is supposed to work, because it doesn't make much sense to me, and/or post the JSON response of an API request. Never mind

- formatting
- fixed linting formatting errors
- fixed E999 SyntaxError: invalid syntax
- fixed class naming
- fixed mandatory extractor.boosty.metadata as true requirement
- update
  - apply changes
  - add test
  - update docs/supportedsites
- improve 'dialog' pagination logic
@mikf mikf merged commit fe958ed into mikf:master Feb 23, 2025
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants