News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

RSS Aggregator

Started by shawnb61, September 18, 2024, 12:11:01 AM

Previous topic - Next topic

shawnb61

Link to the mod

Description:
The RSS Aggregator lets you add RSS feeds to your SMF forum.  The idea is to provide a very simple, media-focused feed, in order to allow SMF forums to dip their toes into the fediverse.

It supports two types of feeds:
 - Traditional RSS feeds, following the standard RSS & atom formats
 - YouTube channel feeds, which are similar

Mastodon feeds:  Note that each Mastodon account has an RSS feed - just add ".rss" to the account page.  E.g., where you see a user handle of "@[email protected]", the server is the "techhub.social" part, so that account's page is "https://techhub.social/@ShawnBulen".  The rss feed for that handle is: "https://techhub.social/@ShawnBulen.rss".

In a similar fashion, you can follow Mastodon hashtags:
 - Hashtag usage on a particular server, e.g., for #Bonkwave: https://chaos.social/tags/BonkWave.rss
 - Hashtags used by a particular account: https://chaos.social/@axwax/tagged/BonkWave.rss

YouTube channels:  Note that you can find the YouTube channel feed url by viewing the page source while on the YouTube channel within your browser.  Just search for "rss", you'll find it.  It's buried in there in some script, not visible on the page, but it's there.  It will look like "https://www.youtube.com/feeds/videos.xml?channel_id=UCVyx4HhDowwspssrwuNeTZg"

Every new item found in a feed results in a new topic in the specified board.

Where YouTube or SoundCloud links are found, they are embedded in corresponding BBC.  This mod assumes you have both enabled and supported in your forum.

Posts can be associated with a member, if desired, to be able to associate an avatar to the channel, and to provide a handle on the posts.  Otherwise, posts are treated as guest posts.

A tagline is provided at the bottom of each post with a link to the source and the initial publication date, if available.

Limitations:
 - Only the admin can setup subscriptions.
 - No feedback data is included, e.g., comments, ratings, statistics.  It would conflict with forum feedback, just sticking to one set.
 - This will not update existing posts.  Updates may conflict with forum discussions.
 - If id/guid are not unique, duplicate posts may result.  Not all feeds provide guids or even publication dates on their items.  There is A LOT of effort here to avoid dupes by providing proxy guids, but some may still occur.
 - Mastodon cards are not supported, which is a shame.  Mastodon & other fediverse feeds use cards as a generic mechanism for associating media with a formatted background image & some predefined action/url.  The problem here is that the card details are not in the rss feeds, only the core media url.
 - xml parse errors and warnings are suppressed, and a generic single "cannot parse" error is logged in SMF.  If you encounter this, odds are you aren't pointing to an actual rss feed...

Releases:
 - v1.0.0 Initial Commit
 - v1.0.1 Tweak to html comment bug fix
 - v1.0.2 Fold in more tags; improve anchor processing; check media_url
 - v1.0.3 A little more bulletproofing
 - v1.0.4 Some formatting tweaks
 - v1.0.5 Two fixes: an undefined error & empty out style tags
 - v1.0.6 Format lists where possible
 - v1.1.0 Format lists where possible; fix bug due to overzealous strip_tags()...
A question worth asking is born in experience & driven by necessity. - Fripp

shawnb61

Here are some of the feeds I've been checking out.  If you setup a board for your feeds, I find the Swipe LR mod helps nicely with navigation - it's part of the reason I wrote it (https://custom.simplemachines.org/index.php?mod=4400)...  Also, of course, the Simple Audio Video Embedder mod enhances the media experience (https://custom.simplemachines.org/index.php?mod=2681).

West Coast News:
LA Times: https://www.latimes.com/local/rss2.0.xml
SF Public Press: https://sfpublicpress.org/news/feed
Mission Local: https://missionlocal.org/feed
SF Bay View: https://sfbayview.com/feed
SF Gate: https://www.sfgate.com/bayarea/feed/bay-area-news-429.php
SF Gate Sports: https://www.sfgate.com/rss/feed/top-sports-stories-rss-feed-487.php
SFist: https://sfist.com/rss/
SF Local News Matters: https://localnewsmatters.org/feed
SF Standard: https://sfstandard.com/feed
48 Hills: https://48hills.org/feed
The SF News: https://thesfnews.com/feed

Music:
Roland Articles: https://articles.roland.com/feed/
Avant Music News: https://mastodon.social/@avantmusicnews.rss
Bird and Beckett: https://birdbeckett.com/feed/
Bonkwave: https://bonkwave.org/board/index.php?action=.xml;type=atom
Flock of Nazguls: https://mastodon.flockofnazguls.com/@flockofnazguls.rss
Ether Diver: https://ravenation.club/@etherdiver.rss
VGF Feed: https://www.vguitarforums.com/smf/index.php?action=.xml;type=atom
Shawns Feed: https://techhub.social/@ShawnBulen.rss
Marshmello: https://www.youtube.com/feeds/videos.xml?channel_id=UCEdvpU2pFRCVqU6yIPyTpMQ

Misc:
Weather West - detailed weather & climate analysis: https://www.youtube.com/feeds/videos.xml?channel_id=UCO7BsGV9Ghpo5llUkeqK47w
NASA: https://social.beachcom.org/@nasa.rss
Indivisible: https://mastodon.social/@indivisibleteam.rss
Xkcd atom: https://xkcd.com/atom.xml
A question worth asking is born in experience & driven by necessity. - Fripp

shawnb61

1.0.5 release fixes a couple minor errors.
A question worth asking is born in experience & driven by necessity. - Fripp

shawnb61

1.1.0 improves formatting a bit, & deals with a bug due to overzealous strip_tags()...
A question worth asking is born in experience & driven by necessity. - Fripp

Sudhakar Arjunan

Useful mod, tied in 2.1.4 and worked fine and rss feed runs perfectly.
Working on New Mods & Themes for SMF... Will update soon... My Blog page
My Smf forum : Discuss ITAcumens :: My SMF Forum

Advertisement: