Can someone explain how you would do this by hand?
RE: https://mastodon.social/users/reiver/statuses/114070142883326241
Conversation
Notices
-
Embed this notice
Gabe (gabriel@mk.gabe.rocks)'s status on Wednesday, 26-Feb-2025 23:43:15 JST Gabe
-
Embed this notice
Fish of Rage (sun@shitposter.world)'s status on Wednesday, 26-Feb-2025 23:43:14 JST Fish of Rage
@gabriel basically you do a GET on the actor URL and extract the outbox URL from the JSON. Then you query it and it gives you json, and properties for next and previous paging. you need to send the right headers to get the data.
what language do you usually use that you would want example in, if I know it I can write an example in that language.In conversation permalink Doughnut Lollipop 【記録係】:blobfoxgooglymlem: likes this. -
Embed this notice
Fish of Rage (sun@shitposter.world)'s status on Thursday, 27-Feb-2025 00:09:30 JST Fish of Rage
@gabriel I'll give you instructions using the shell, modify for any programming language:
if you have a handle, you get the actor URL like this:
curl -s "https://mk.gabe.rocks/.well-known/webfinger?resource=acct:gabriel@mk.gabe.rocks" | jq -r '.links[] | select(.type == "application/activity+json") | .href'
gets you:
https://mk.gabe.rocks/users/9738e4n8u0
then you query it like this to get the outbox:
curl -s -H 'Accept: application/activity+json' https://mk.gabe.rocks/users/9738e4n8u0 | jq -r .outbox
The box is (maybe) paged so you need to query the first page:
curl -s -H 'Accept: application/activity+json' https://mk.gabe.rocks/users/9738e4n8u0/outbox | jq .first
https://mk.gabe.rocks/users/9738e4n8u0/outbox?page=true
query that:
curl -s -H 'Accept: application/activity+json' "https://mk.gabe.rocks/users/9738e4n8u0/outbox?page=true"
the property "orderedItems" will get you the raw activitypub objects. you can filter on
type: Note
and get the "content" property and you'll get the HTML content of the post.
To get the next page of results, then get the "next" propert, for example yours is:
"next": "https://mk.gabe.rocks/users/9738e4n8u0/outbox?page=true&until_id=a4imasfct8"
I am assuming that your outbox is formatted a specific way, it's possible it's not paged, in which case some of the queries are different but I am pretty sure 100% of outboxes will work.
also lmao a lot more complicated than RSS.
Let me know if you need more info.In conversation permalink Attachments
feld likes this. -
Embed this notice
Gabe (gabriel@mk.gabe.rocks)'s status on Thursday, 27-Feb-2025 00:09:31 JST Gabe
@sun@shitposter.world
I was just wondering what the outbox structure is, whats the URL for the actor? (say me for example)In conversation permalink -
Embed this notice
Fish of Rage (sun@shitposter.world)'s status on Thursday, 27-Feb-2025 00:11:21 JST Fish of Rage
@gabriel even though it's more steps the good news is that it's mostly just more steps without
"if this then this". There's a little of that but it can all be handled.In conversation permalink -
Embed this notice
Gabe (gabriel@mk.gabe.rocks)'s status on Thursday, 27-Feb-2025 00:11:22 JST Gabe
@sun@shitposter.world also lmao a lot more complicated than RSS.Wew! You weren't kidding!
Sounds like something worth building into a SSG though!In conversation permalink -
Embed this notice
Fish of Rage (sun@shitposter.world)'s status on Thursday, 27-Feb-2025 00:12:45 JST Fish of Rage
@gabriel also if you know the remote server is on mastodon I think that they have RSS for accounts by just putting /rss on the end of the user url but I am not sure In conversation permalink -
Embed this notice
Matt Hamilton (eriner@noauthority.social)'s status on Thursday, 27-Feb-2025 00:55:46 JST Matt Hamilton
In conversation permalink Fish of Rage likes this.
-
Embed this notice