|
I am very new to the blueksy api and data model; but I have 15+ years experience with twitter. I apologize for this confusing and biasing me: When iterating a an author feed, I have a post object: How can I access the raw text of the post, as rendered from the server? I thought it might be Can you comment if that is happening within this library, or from the server? I can't seem to find a way to access the raw data from the feed either. If this explains my goals better: I have a system that monitors twitter and facebook posts, and am finally adding bluesky. i calculate a digest of the raw post to track duplicate content within, and across, networks. Thank you in advance. |
Replies: 1 comment 1 reply
|
Hey Jonathan, sorry for the late response! I do understand your frustration here. The thing is, Bluesky stores raw text and formatting for this text separately. And they do render the post on the client side, by applying facets (the old name is rich text) to the raw text! So basically, if you want to get the entire text with full URLs, you need to "render" the message. By looking at The sad news is that such rendering tools are not provided by the Python SDK. There is only a backward thing that tries to convert links into facets automatically (see this example) Good reading: https://docs.bsky.app/docs/advanced-guides/post-richtext TL;DR: write a simple |
Hey Jonathan, sorry for the late response!
I do understand your frustration here. The thing is, Bluesky stores raw text and formatting for this text separately. And they do render the post on the client side, by applying facets (the old name is rich text) to the raw text!
So basically, if you want to get the entire text with full URLs, you need to "render" the message. By looking at
resp.feed.post.record.facets(docs)The sad news is that such rendering tools are not provided by the Python SDK. There is only a backward thing that tries to convert links into facets automatically (see this example)
Good reading: https://docs.bsky.app/docs/advanced-guides/post-richtext
TL;DR: write a simple
.…