Modular scripts to take text, images, and links from RSS feeds and push to social media
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
agaetr/rss_preprocessor.sh

14 lines
773 B

#!/bin/bash
# To clean up and standardize some odd RSS elements from (in my case) from
# Wordpress and from TT-RSS. Also included as examples.
# summary remove <div class="more-link-wrapper"> until</description>
wget -O- "https://ideatrash.net/feed" | sed -e 's/<div class="more-link-wrapper">.*\]\]><\/description>/\]\]\><\/description>/g' > /home/steven/documents/programming/agaetr/xml_references/ideatrash_parsed.xml
# <updated> -> <pubDate> (and closing tags)
wget -O- "https://my.ttrss.install/public.php?op=rss&id=-2&view-mode=all_articles&key=8293847903" | sed 's@<updated>@<pubDate>@g' | sed 's@</updated>@</pubDate>@g' | sed 's@Media playback is unsupported on your device @@g' > /home/steven/documents/programming/agaetr/xml_references/ttrss_parsed.xml