Module to parse RSS feed in Drupal? - drupal

I'm trying to simply display an RSS feed as part of my site. A user will put in an RSS URL into a CCK field and I want to take that URL and display the latest RSS results.
I assume there's a module for this but I can't seem to find it.

http://drupal.org/project/feeds will do this and a lot more.
Here's a good video to get started
http://developmentseed.org/blog/2009/dec/15/importing-and-aggregating-stuff-feeds
Regarding your request about integrating with CCK, I don't know how you can do that but that may not be necessary because the feed URL is entered through a dialog of its own. And you can always add other CCK fields to the Feeds Content type.

I ended up using the simplepie module and used the function simplepie_get() included within.

The main feed aggregators are the the core aggregator module, feedAPI module, and the newer feeds module. I'm not sure any of them are set up to integrate with CCK in quite the way you're describing. I suspect that will require some custom development.
If you don't need the feed data in the Drupal database, you could use a javascript library to bring in the feeds on the client side.

Related

How to get news from another website via RSS

I have a blog and I want some automatically - generated news on it. I have found a few news websites which generate RSS feeds and I want to auto-post them to my blog.
I have done this using the WP-o-Matic plugin, but since the RSS feed's content is limited to some point, the entire news' text does not show up on my blog.
Is there a way to get the whole content of the post the RSS feed is linking to ?
You're going to have to code this yourself. Let's say you subscribe to an RSS feed for Google News. You can parse their feed to get the original URL of the summarized article, but then you're going to have to make a request to that URL and fetch the content on that page. Unless the source happens to make whole articles available via its own RSS feed (unlikely), you're probably in markup-scraping territory.
Have to say this: consider the ethical/legal implications of duplicating entire original content on your site (as opposed to summary snippets), even with proper attribution.
For people that need a solution to the problem I described ..
There are services like:
http://fulltextrssfeed.com/
http://fullrss.net/
http://www.wizardrss.com/
You can use them to do the job for you. They fetch the RSS feed, crawl the websites and extract the full articles for you. After that, they provide a RSS feed of their own with the extracted data.
You can combine the extracted data (the RSS feed the service provides you with) with a wordpress plugin like WP-o-Matic. That way the plugin connects to the RSS feed of the service and the service extracts the content from the original RSS feed.
Have in mind that those services are not perfect. Due to complex website layouts, these services might be unable to find the content, or include things that are not a part of the articles. A manual check of the output is advised.
To the services alrady listed at the top, you can also check http://www.FeedsAPI.org , FeedsAPI brings to the table that it takes the process of posting the articles directly to your secret blog email for you, so all you need to do is manage the publication in the wordpress admin, and you can also get it targeting a specific feed to receive the results you want. Anothe alternative will be the combinations of one of those services with IFTTT . I hope this could help.

Unable to get Number of Comments

I' am using RSS Feeds generated from WordPress Blogs to fetch some Information. WordPress is just too good in providing comprehensive information about a Post and it is quite easy to extract Number of Comments for a Post in RSS Feed. Now the problem is that I didn't find any way to get Number of Comments from RSS Feeds generated by Drupal and Joomla Blogs.
Is there any way to do this?
Any help would be really appriciated.
Have you tried using feedburner by google? feedburner.google.com/ I have in the past had the same issue and for some reason running it through feedburner first seemed to help.
Here is a cool Drupal module that may help you. If your rss field is not generated by views. First Move it into views. Then use this module to output the comment count as a field
http://drupal.org/project/views_rss
Otherwise you'll need to do some theme overrides in the template layer. Drupal does not provide a default method for customizing the core rss feed.

Recalcitrant excerpts, full feed missing

I've config'ed a WP blog (now at 3.0) to provide full RSS feeds. Yet WP insists on producing excerpt RSS feeds.
What could cause this? How does WP produce an RSS feed? (i.e. what functions get called, what gets filtered, what hooks run, etc.)
It could be several reasons. Most likely either
a. A plugin the manipulates your RSS feed. Do you have one such installed?
b. Some manipulating code in your theme's "functions.php" file...
Could you check either of those out, or go a bit more into detail?

Drupal RSS feed links

I'm creating some feeds of news items and such. These items have URL aliases set for them. Is there a reason why the URL alias do not get used in the RSS feed?
I have a multi-language site which uses the path aliases to show correct navigation, and so when I get a 'node' link from the feed, it breaks everything.
EDIT
I'm creating the rss feed as using views
When I do a live preview in the view the correct link is shown. So the incorrect link comes somewhere after that.
Are you creating the feeds using Views? if not you should do it. It may be happening that the code that's returning the feed is printing the links to the nodes without using the l() function so aren't being translated to the corresponding alias.
Just in case, here it's a nice tutorial about how to do a feed with Views http://drupal.org/node/314097

Can I have both full text RSS and an excerpt RSS in Wordpress?

I like giving my users the full text RSS feed, but I also have a few sites which pull the RSS feed and link to us from it. They want me to provide the excerpt/blurbs for the articles rather than the full text. Can anyone give me some direction on how to make this happen?
It should be possible. Wordpress has multiple feed types (see WordPress Feeds) and there are hooks for each feed type (see Feed Actions API). This suggests that you should be able to set up one feed type as a partial feed, and another as a full-text feed. Basically, you'd just be re-writing one of these feed types to ignore the setting you indicated on the "Reading Settings" admin screen.
I bet this could be done w/ a pretty simple plug-in.

Resources