RSS feed link doesn't open up reader or just dumps out raw XML - rss

I developed an RSS feed following a tutorial and I think the .xml file itself is in order. However, I have two problems:
When people click on the RSS link, it doesn't automatically load into their RSS readers
For those that don't have an RSS reader, clicking the link results in a page full of code which is not very understandable
I was hoping that there might be some tips on how to easily realize this.

Try to remove the <![CDATA[ and ]]> in the description tag.
I downloaded your xml, changed those lines, tested it on my server, and it worked in google's rss reader.

This is a browser and user profile dependent issue in how the RSS link is going to react when clicked on.
If the user has the action set up to automatically load it into their feed reader of choice, it will do that.
If they don't, then it won't.
For those that just see a raw dump, it could be that they're using a browser that does not support RSS feeds and will dump out the XML as raw text. Google Chrome (at least still in version 18) without the use of extensions or add-ons will usually be the dump truck culprit here.

Related

Unable to find rss feed URL in few websites

I want to make a tech news app in android by parsing rss feed from various tech websites, I have found techcrunch rss feed URL by looking for href in page source using type="application/rss+xml".
RSS feed URL of techcrunch:
http://techcrunch.com/feed/
I'm unable to find similar URLs for other websites like cnet, gizmodo etc.
Is there any other way of finding rss feed URLs ?
While on the homepage, http://techcrunch.com/ for you, press ctrl+u and the source code appears. There press ctrl+f and try searching for stuff like rss, atom, feed... Works for me in Firefox (not sure if ctrl+u has different compilation in Chrome for example).
If that's a slow approach for you, try installing an add-on like Feedbro, open the site on a tab and from the icon of Feedbro click "Find feeds on Current Tab", and then go to the add-on to see the details on the feed.
Some sites use ATOM, rather than RSS, feeds. Some websites will not even specify the RSS link in the head tag. You will have to leave it to the user to find the RSS link and let him add it to your app.

how can I autodetect the rss url (if available) out of any given website url for blackberry cascades?

SO i have a webview displaying user defined websites. I want to autodetect if that url contains any rss feed and post it in a Label/textarea.
The most straight forward way is to parse the HTML into a DOM document, then traverse the document looking for nodes that define RSS links. You may try using QXmlSimpleReader but this can be frustrating because most HTML is not well formed XML so you will have to handle exceptions.
In an answer to this question, the following SourceForge project was recommended. This might be worth a look.

Problem: How to display a Wordpress RSS feed in a browser that doesn't have a built in RSS reader?

If I can, i'd rather not use a service like FeedBurner.
My setup:
I've setup a RSS feed link on a self-hosted Wordpress website, clicking the RSS link in Safari shows the feed - because Safari has a built in RSS reader. Great.
Unfortunately clicking the same RSS link in Chrome displays the raw XML feed. I know why this happens - Chrome doesn't have a built in RSS reader. I also assume this will be the same in older versions of Internet Explorer.
Possible solution?
I've noticed http://www.bbc.co.uk/news has a nice solution:
Click the RSS feed (top tight of the page) in a RSS enabled browser (Safari) and it uses the built in RSS reader to display the RSS feed.
Click the same RSS feed link in Chrome (Chrome has no built in RSS reader) it displays the RSS feed using what looks like a custom page.
Is there a way to check if a browser has a built in RSS reader?
How would I provide alternative content (like the BBC site) to a browser that doesn't have a RSS reader installed?
Any help on this would be brilliant, thanks for taking the time to read this.
Stephen
Just look at the source code of the BBC's feed. It's all the same stuff - they just have an XSL stylesheet (which Safari ignores).
http://feeds.bbci.co.uk/shared/bsp/xsl/rss/nolsol.xsl
That stylesheet contains instructions on generating the friendly display you see in Chrome.
(this is, incidentally, how Feedburner does it, too)
I think you could use jQuery to check browser's version, and then redirect to the normal RSS feed, OR redirect to a page using a feed reader plugin, like zrssfeed ( http://www.zazar.net/developers/zrssfeed/ ).
But, you will have to do a little reasearch about waht browsers supports RSS to do the redirect! :)
I would route your feed through Feedburner. As well as giving you handy subscriber stats, you can also turn on their "BrowserFriendly" setting -- this should give your readers a pleasant experience in both Chrome and other browsers.
I didn't actually mean for that to sound like a soap powder ad, and I have no marketing affiliation to Google or Feedburner, by the way :)

How to play audio podcast file from libsyn rss feed? (drupal)

Got an established libsyn rss feed, got a new drupal website for the podcast. Libsyn provides a player but not correct aesthetic. I can upload and play mp3 files with audio module and mp3player module, and like the mp3 player's output, a simple flash player, but I don't want to be manually moving the podcast audio files (mp3) over every week. Looked at importing automatically with Feeds, but it's not working and besides that's creating extra files unnecessarily on the drupal site.
Just want to use the mp3player modulee's flash player in a drupal page, which feeds the latest mp3 file from a libsyn rss feed. Don't really need to store or play multiple episodes, just the latest episode.
How would you do it?
Create a content type for my podcasts with a title and a field for the URL of the MP3
Use FeedAPI and map the title to the title of the node
Map the file URL to the URL field
Use Contemplate to set the URL field to display as [swf file="token_for_URL_field"], which will use the SWF Tools module and whatever player I've selected to play the file
So you need these modules CCK, Contemplate, FeedAPI, and SWF Tools, and that should do the trick.
Why don't you have your own site be the master and libsyn get it from you? Do they not allow an import feature, with which you'd keep your existing RSS through them. Then you can have total control over your site and push the content to all kinds of other great podcasting networks.
Realize I may have no idea about libsyn works.
When you say feeds didn't work, how did it fail? Are you using feed mapper? You may need to write a custom plug-in for feed mapper to get it to do the right thing with the video files. Feed api supports expiring imported feed items so you should be able to get it to automatically delete old ones. I'm not sure whether the video files will be automatically deleted when the nodes are. If not, you should be able to make this happen by implementing nodeapi's delete op for the content type you are using to store your imported rss items.
Alternatively, maybe you could just harvest the video's url on libsyn, and have the player use that. I don't know whether there's a good player which supports using a field's data for the location of the source it should play.
Also, if you haven't already, I'd encourage you to post your question on groups.drupal.org since that's read by lots of drupal experts.

Read rss and show as html

I am using google reader for my RSS, i want to export all my shared or starred rss items to HTML to take this html and put on my website
Do any one have an idea about?
And one important thing as well, can i page through this html? i mean to export as pages not all in one html page to let the user on my site page through my starred feeds.
Thanks,
With XSTL you can transform XML to any format you want, including HTML. You can do the transformation on the server, or with modern browsers like IE6+ and Firefox2+ you can do the transformation on the client side. XSTL isn't very pretty as a programming language, but the concept is pretty neat.
I don't know if you can link directly to the RSS feed XML so that it's always up to date. I think Google requires that you authenticate and have permission to access the feed.
You can read from an RSS with jQuery by selecting and iterating through the tags rather easily. Additionally, you can perform conditional-checks on attributes etc as well.

Resources