lkiesow / python-feedgen

Python module to generate ATOM feeds, RSS feeds and Podcasts.
https://feedgen.kiesow.be/
BSD 2-Clause "Simplified" License
723 stars 123 forks source link

Add image in item entry. #46

Closed kapoorabhish closed 6 years ago

kapoorabhish commented 8 years ago

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

jesse-c commented 7 years ago

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

lkiesow commented 6 years ago

Note that neither Atom nor RSS specified an image tag.

khurshid-alam commented 10 months ago

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 ?