Closed steinarb closed 11 months ago
I succeeded in getting a workaround for this issue by just setting the term. https://github.com/steinarb/feedreverser/commit/e435625a7326ddd765844d1cf4e5a732b108d753
And the term is the only thing feediverse use in the hashtags of the toots, so this is good enough for me .
But not getting the complete category may be an issue for someone needing a real reversed RSS feed.
Since you can access the term via tag.term
it seems like entry.tags
is not a list of dictionaries in your example. That's what feedgen is expecting though. In any case, good to see that you found a solution.
I'm working on a script that reverses RSS feeds https://github.com/steinarb/feedreverser
I'm trying to reverse a wordpress feed so that I can use feediverse to post the feed entries in cronological order.
I parse the wordpress feed with feedparser 5.2.1 I'm using python-feedgen 0.9.0 to output the reversed feed.
Categories don't survive in the feed reversal.
This is what I do to set the categories: https://github.com/steinarb/feedreverser/blob/28f53647bf78ee7015fdbcee52dd0bb8c437d496/feedreverser.py#L26
I've printed out the categories and they look OK to me.
Reading an RSS feed the categories from feedparser looks like this:
The resulting RSS entry produced by python-feedgen looks like this
Reading an atom feed, the categories from feedparser looks like this:
The resulting RSS entry produced by python-feedgen looks like this