Skip to content

[Feature]: Content rewrite rules that use Twitter Cards and OpenGraph attribute values #4291

Description

@manusaurio

Feature Summary

Content rewrite rules that use Twitter Cards and OpenGraph attribute values

What problem does this feature solve?

Some sites rely so much on JavaScript that basic scraping is not really an option. Some of them do provide useful tags for previews, but Miniflux can't use them because the data is presented as attribute values instead of "text nodes."

Think of Bluesky. An RSS item might point to a post but only show the text content in the description. Requesting the original post is not very useful, as its body won't contain the information you would like to see. If the post is about a picture, I have no way to see it unless I visit the website.

Proposed Solution

Again, considering Bluesky. It provides these in the <head> tag:

  • og:description
  • og:site_name
  • og:logo
  • twitter:site
  • og:type
  • og:url
  • og:url
  • og:image
  • twitter:description
  • twitter:image
  • twitter:card
  • twitter:label1
  • twitter:value1
  • twitter:label2
  • twitter:value2
  • twitter:label3
  • twitter:value3
  • twitter:label4
  • twitter:value4

I think Miniflux could request the original page and rewrite the content with rules that are able to parse these. So if these are the tags I'm interested in:

<meta property="twitter:description" content="I took this picture of a cat today.">
<meta property="twitter:image" content="https://cdn.foo.bar/baz">

Miniflux could take I took this picture of a cat today. and https://cdn.foo.bar/baz to do so something with them.

Alternatives Considered

No response

Additional Context

No response

Checklist

  • I have searched existing issues to ensure this feature hasn't been requested before.
  • I understand that feature requests are not guaranteed to be implemented.
  • I agree to follow the project's contribution guidelines.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Fields

    No fields configured for Feature.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions