mawenbao / gofeed

gofeed is disigned to extract full-text rss feeds from websites which only provide partial feeds or none
BSD 3-Clause "New" or "Revised" License
9 stars 4 forks source link

Output formatting #11

Open beporter opened 9 years ago

beporter commented 9 years ago

One thing that seems to be missing from gofeed when compared to Feed43 is the ability to format the resulting RSS tags (title, link, description) with your own HTML. It would be great if you could compose your <description> output to include more than just what was matched from the source HTML file.

Here's a screenshot of Feed43's editing page for reference. In this example, {%1}, {%2} and {%3} represent content captured from the source page that is being injected into the resulting RSS xml fields, allowing you to control the format of the feed's content. I feel like the same thing could be done in gofeed using arbitrary {token_name}s instead of the fixed {title}, {link} and {description} shortcuts. Additional configs would be needed for Item.TitleFormat, Item.LinkFormat and Item.DescriptionFormat (or similar.)

feed43_output_formatting_example

Please consider this as a humble feature request. And forgive me if this is somehow already possible and I'm just reading the docs/code incorrectly. Thank you.

mawenbao commented 9 years ago

Thank you for your advice and support. I will look into this when I am not busy.