aurelg / feedspora

FeedSpora posts RSS/Atom feeds to your social network accounts.
35 stars 6 forks source link

Enhancement/twitter post media #10

Closed wilddeej closed 5 years ago

wilddeej commented 5 years ago

Enhancement to existing functionality to optionally include image media from RSS feed entries as part of the posted tweet. This is enabled by including a post_include_media setting of true within the relevant TweepyClient specification in feedspora.yml. There is more work to be done on this for the general case (as noted by TODO comments), but this is working well for RSS streams with a fully-qualified URL specification within the media:content url tag (such as http://www.wildkidz.com/feed/factoid.php). Inclusion of image media requires download of that media to a local directory, specified with the MEDIA_DIR environmental variable (defaulting to /tmp if this is not specified). Updates have been made to the Dockerfile to include specification of the MEDIA_DIR env var, creating/pointing to a media subdirectory of DATA_DIR.

aurelg commented 5 years ago

Thanks, that's a very good idea :+1: