mirror of
https://github.com/slurdge/goeland.git
synced 2026-11-11 13:13:58 +00:00
[GH-ISSUE #35] results from Nitter feeds don't include the tweet author #13
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: slurdge/goeland#13
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @kylrth on GitHub (May 24, 2022).
Original GitHub issue: https://github.com/slurdge/goeland/issues/35
With the following pipe definition:
I get an email that looks like this:
As you can see, the tweet body appears as both the title and the content. I'd ideally like the title to be the tweet author name (which may be different from @lexfridman in the case of retweets or if I'm making a digest of multiple Twitter users), and then let the body be the same.
I know you've got that
replacefilter for simple text manipulation in the body, but have you got any ideas about more complex field manipulation that might make it possible to insert the<dc:creator>tag into the title or something like that?@slurdge commented on GitHub (May 24, 2022):
I see, let me check how I could do something along those lines.
@kylrth commented on GitHub (May 25, 2022):
I'm willing to implement if you'd like help!
On Tue, May 24, 2022, 17:08 slurdge @.***> wrote:
@slurdge commented on GitHub (May 27, 2022):
Thanks.
I've looked at the RSS feed given by nitter and it's not that trivial. We could create a special 'nitter' filter (as I don't believe Twitter give native RSS) feed, but that seems a bit contrived.
The real issue here would be to be able to put the
dc:creatorfield inside the title field. First I have to see if it's exposed by the RSS library, maybe it's specific to some feeds and not always present. Secondly, it would be weird to have a filter that does this but does not allow to do it for description etc.The "good" solution IMHO would be to have the long term script solution, where I would provide a way to write simple manipulations of the feed, where it should be as simple as:
but we are not there yet. I think I will do a "authorastitle" (or better name) filter and remove it when we have a better solution.
@slurdge commented on GitHub (Nov 13, 2022):
Hello, I didn't forget about this feature but still haven't found a satisfying way of implementing it.
@kylrth commented on GitHub (Nov 14, 2022):
Yeah no worries, I wouldn't want you to implement a hacky solution specific to my particular request.
@panigrc commented on GitHub (Mar 15, 2023):
@slurdge suggestion: How about a field mapper, where we can define in the toml which fields from the rss will be mapped to which goeland fields ?
@slurdge commented on GitHub (Mar 16, 2023):
That's a good idea, however the fact is not all feed (let's say imgur source for example) would have all fields. I guess this is also something that would be better tailored once I have a small scripting engine, as this would be trivial to do so with it.
Still I keep the suggestion, maybe a filter with a simple syntax would fit the bill