[nodebb-plugin-rss] RSS Feed plugin
-
Published 0.2.3, added a new option that lets you specify the number of entries to pull per interval. This value is the
numparameter in the google api string.http://ajax.googleapis.com/ajax/services/feed/load?v=1.0&num=4&q=http://yourfeed.rssIt was previously hardcoded to 4, which would result in some entries to be skipped if you had more than 4 entries per interval.
Also keep in mind google caches the data from the feed so changes are not immediately pulled.
-
Published 0.2.3, added a new option that lets you specify the number of entries to pull per interval. This value is the
numparameter in the google api string.http://ajax.googleapis.com/ajax/services/feed/load?v=1.0&num=4&q=http://yourfeed.rssIt was previously hardcoded to 4, which would result in some entries to be skipped if you had more than 4 entries per interval.
Also keep in mind google caches the data from the feed so changes are not immediately pulled.
For anyone who may want to bypass the google cache, you can edit the index.js file and do the following. At line 228ish where it requests the feed, I edited it like so:
function getFeedByGoogle(feedUrl, callback) { var rsscurtime = new Date().getTime() / 1000; request('http://ajax.googleapis.com/ajax/services/feed/load?v=1.0&num=4&q=' + encodeURIComponent(feedUrl) + '?' + rsscurtime, function (err, response, body)Essentially I just set rsscurtime to unix time, and tacked that on to the end of the URL set in the control panel. It works fine with my feed but of course YMMV.
-
@Normando Hey buddy, sort of. Your mileage may vary with this one. It depends how Baris' plugin works.
Youtube has an RSS feed you can use, but I'm not sure quite how it would work with this plugin. Add this to your RSS feed input box, then where you want it to go, then test it I guess.
https://gdata.youtube.com/feeds/api/users/USER_ID/uploadsReplace USER_ID with the usernameor channel ID of the youtube channel. (You can enter this URL into your browser and it will return the feed. For example: This Link would show you all the videos from Tom Scott in RSS feed format.
EDIT: You can also use this link to fetch the images as well if you want slightly more information.
https://gdata.youtube.com/feeds/base/users/USER_ID/uploads -
@a_5mith excellent!!!! The tag used by rss api for youtube is "link", and because I have the youtube lite plugin, I can get those videos from youtube with minor modifications to the rss plugin.
Maybe this can be a NFR for this plugin

-
After upgrading from 0.5.0 to 0.5.4, I have a weird issue where one RSS update will be posted repeatedly, almost every hour. It's almost like the underlying cron system doesn't realize that it's already pulled the RSS update.
Running nodebb-plugin-rss "0.1.23", NodeBB 0.5.4.
-
Page: http://stackoverflow.com/questions/28843883/append-image-file-to-form-data-cordova-angular
RSS: http://stackoverflow.com/feeds/question/28843883This RSS displays the first entry as the question that was asked and the rest of the entries are the answers that were posted.
-
Any advice for a JS noob to customize this script to use the "category term" IDs in RSS as Topic Tags?
<category term="Dallas Cowboys"/>
<category term="Dez Bryant"/>Sample RSS with categories/tags
Also, the ability to post the first entry in the RSS feed as a topic and then post the rest of the entries as replies would be great to generate content on a new forum. It will help increase search engine traffic and eventually active members.
I'll gladly donate $$ to whomever can help contribute to these requests. Thanks guys!
-
Jussst thought I would add this little snippet of code to the RSS plugin thread on this site. (so I can find it later)
On my RSS feed I like to include the source of where the link of the rss or 'where the rss feed article' came from (url). edit/change it how you like.
Add this extra line of code just after line 201 in index.js:
201: content = toMarkdown(content); 202: content += '\nSource: ' + entry.link + '\n'; <----- this lineIt will add a
Source: http://www.rss.com/this/is/the/rss/link/here/page/storyto the bottom of every rss feed so the user can click to go to the page posted by the 'nodebb-plugin-rss' Plugin
-
Hey folks -- new here. Really liking NodeBB and this RSS plugin. I get an error when I add a Google News feed though. I've included that below. Any thoughts on how to go about fixing this? This is the feed I used:
Google News
Comprehensive up-to-date news coverage, aggregated from sources all over the world by Google News.
Google News (news.google.com)
I've created an issue in github: https://github.com/barisusakli/nodebb-plugin-rss/issues/9
11/7 15:13 [1307] - error: TypeError: Cannot read property '1' of null at ELEMENTS.replacement (/home/lififorums/nodebb/node_modules/nodebb-plugin-rss/node_modules/to-markdown/src/to-markdown.js:75:70) at /home/lififorums/nodebb/node_modules/nodebb-plugin-rss/node_modules/to-markdown/src/to-markdown.js:100:41 at String.replace (native) at replaceEls (/home/lififorums/nodebb/node_modules/nodebb-plugin-rss/node_modules/to-markdown/src/to-markdown.js:99:23) at toMarkdown (/home/lififorums/nodebb/node_modules/nodebb-plugin-rss/node_modules/to-markdown/src/to-markdown.js:82:16) at /home/lififorums/nodebb/node_modules/nodebb-plugin-rss/index.js:202:14 at /home/lififorums/nodebb/src/database/mongo/sorted.js:325:4 at handleCallback (/home/lififorums/nodebb/node_modules/mongodb/lib/utils.js:95:12) at /home/lififorums/nodebb/node_modules/mongodb/lib/collection.js:1064:5 at handleCallback (/home/lififorums/nodebb/node_modules/mongodb/lib/utils.js:95:12)
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login
But you're welcome to create an issue on the plugin and I'll look into it.


