lkiesow / python-feedgen

Python module to generate ATOM feeds, RSS feeds and Podcasts.

Home Page:https://feedgen.kiesow.be/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add image in item entry.

kapoorabhish opened this issue · comments

Hello,
Can you explain,
How to add image in the item?
I can't find any method for that in FeedEntry Class.

It doesn't look like it's possible. The entry class doesn't have an image field. [1]

[1] https://lkiesow.github.io/python-feedgen/api.entry.html

Note that neither Atom nor RSS specified an image tag.

There are many feeds which uses embeded image ? What happens when you eclose an image ? Check here https://stackoverflow.com/questions/60227116/django-rss-feed-add-image-to-description

fe.enclosure('http://lernfunk.de/media/4564654.jpg', 0, 'image/jpeg')

Or embed in description ?

<img src="{{article['image']}}" class="inline"/>

Possible ?