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

[mastodon] Fetch posts without media for "event": "post" #1669

Closed
TestPolygon opened this issue Jul 3, 2021 · 4 comments
Closed

[mastodon] Fetch posts without media for "event": "post" #1669

TestPolygon opened this issue Jul 3, 2021 · 4 comments

Comments

@TestPolygon
Copy link

TestPolygon commented Jul 3, 2021

What's about to add support for mastodon's instances to fetch posts without media? (Related comment: #1569 (comment))

Currently the program queries only posts with media files:

/api/v1/accounts/1/statuses?only_media=1

It looks not difficult to handle posts without media, but it would be very useful for saving post's info with postprocessors with "event": "post".

The example URL: https://mastodon.social/@Gargron

@mikf
Copy link
Owner

mikf commented Jul 3, 2021

Sorry if it appeared as though I had forgotten about this.
93d3567 adds a text-posts option that controls the only_media parameter during API calls and does some general cleanup to make "event": "post" possible for posts without media attachments.

@mikf mikf closed this as completed Jul 3, 2021
@TestPolygon
Copy link
Author

TestPolygon commented Jul 6, 2021

Is it possible to exclude RT (retweets)?

I do not see such option, but only_media also is not listed here.
https://docs.joinmastodon.org/methods/statuses/

@mikf
Copy link
Owner

mikf commented Jul 6, 2021

There is a reblogged field, so at least adding a reblogs option should be easy enough. (--filter only works for files, although you could use the metadata post processor's filter).

only_media is documented at https://mastodonpy.readthedocs.io/en/stable/#mastodon.Mastodon.account_statuses

mikf added a commit that referenced this issue Jul 7, 2021
mikf added a commit that referenced this issue Jul 7, 2021
@mikf
Copy link
Owner

mikf commented Jul 7, 2021

There's now a reblogs and a replies option (a1f5b78, 312a28e)
Reblogs/retweets/RTs are disabled by default and are actually not indicated by the value in reblogged like I thought.

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

No branches or pull requests

2 participants