Import a News Feed

By michal frackowiakmichal frackowiak

Description

Importing news from other sites is really easy and you can also customize how the importer news feed will look like.
Let us say you want to import some news from CNN. First you have to locate the URL address of the feed(s) you want to import. On the http://www.cnn.com there is a link "Services » RSS" at the bottom. When you click this, a page which lists different RSS channels will appear.

Suppose you want to import "Technology" and "Science & Space". Locate URL addresses for these channels. When you have it — simply use the Feed module.

Code

[[module Feed src="http://rss.cnn.com/rss/cnn_tech.rss,http://rss.cnn.com/rss/cnn_space.rss" limit="10"]]

In action

One in six teens engage in 'sexting'

1260898034|%e %b %Y, %H:%M %Z|agohover

Nearly one-sixth of teens who own cell phones have received nude or nearly nude images via text message from someone they know, according to a new survey on "sexting" from the Pew Internet & American Life Project.

Google ponders risky Android solo act

1260894377|%e %b %Y, %H:%M %Z|agohover

As a company that has built a business model atop trust, Google is in a sticky position as it prepares to formally introduce the Nexus One phone.

Boeing Dreamliner takes flight

1260908829|%e %b %Y, %H:%M %Z|agohover

Fighting its way through more than two years of delays, Boeing's latest aircraft, the 787 Dreamliner, is scheduled to take its maiden flight Tuesday.

The importance of Web accessibility

1260882488|%e %b %Y, %H:%M %Z|agohover

New technologies help make the Internet more accessible to everyone, including blind people. Web accessibility has been talked about for a decade now, but only recently have Web developers started to take the idea seriously.

NASA launches telescope to scan sky

1260804495|%e %b %Y, %H:%M %Z|agohover

NASA has launched a new telescope into space to scan the cosmos for undiscovered objects, including asteroids and comets that might threaten Earth.

Koalas dying from AIDS, habitat loss

1260775393|%e %b %Y, %H:%M %Z|agohover

On the operating table lies a sick koala. He's just been brought in by a driver who found the animal sitting in the middle of a busy road. Veterinarian Claude Lacasse determines the koala has not been hit by a car but she immediately detects one serious problem facing many of the marsupials: Chlamydia, a disease which can lead to a very slow and painful death for koalas living in the wild.

Supreme Court takes on messaging case

1260842957|%e %b %Y, %H:%M %Z|agohover

When a police officer used his city-issued pager to exchange personal messages, did he have a right to expect privacy?

Cyber crime threatens e-commerce

1260895246|%e %b %Y, %H:%M %Z|agohover

The past 12 months have been a banner year for cyber crime. And that could be bad news for the future of e-commerce.

Are tech firms afraid of the Middle East?

1260541698|%e %b %Y, %H:%M %Z|agohover

The Middle East represents a vast, largely untapped market for Internet businesses, according to industry experts. So what's holding everyone back?

Artificial retina gives blind woman limited vision

1260522274|%e %b %Y, %H:%M %Z|agohover

As a thick, gray haze began to descend over the words in her schoolbooks, and eventually the faces of loved ones, Barbara Campbell barely grasped that she was going blind.

To learn how to customize the feed read the documentation of the Feed module. In particular it is very easy to customize how the news items are displayed.

Rate this solution

If you think this solution is useful — rate it up! Or dump it otherwise.

rating: +4+x
Great Idea, help me?
HobStarCSHobStarCS 1241137439|%e %b %Y, %H:%M %Z|agohover

Hi, I want to do this but when I go to my forum (where I want my rss feed to come from) and lcik the [RSS] button I get this code to use:

http://hobstarcs.wikidot.com/feed/forum/t-152633.xml

… but it looks like it needs to be .rss

???

I found this code:

[[module Feed src="http://hobstarcs.wikidot.com/feed/forum/t-152633.xml" limit="10"]]
**%%linked_title%%**
posted %%date|%O ago%%, section: %%custom slash:section%%
[[/module]]

… but it does not display the content of the posts (which I DO want!!)

Help?

last edited on 1241137681|%e %b %Y, %H:%M %Z|agohover by HobStarCS + show more
unfold Great Idea, help me? by HobStarCSHobStarCS, 1241137439|%e %b %Y, %H:%M %Z|agohover
Re: Great Idea, help me?
HobStarCSHobStarCS 1241154164|%e %b %Y, %H:%M %Z|agohover

Ok, worked out that I was missing a 'talking marks' in my code. Doh!

But now it is showing the feed from oldest to newest, not newest to oldest. I want it to show the most recent ontop.

http://hobstarcs.wikidot.com/welcome

unfold Re: Great Idea, help me? by HobStarCSHobStarCS, 1241154164|%e %b %Y, %H:%M %Z|agohover
Add a new comment
Page tags: feed import rss
page_revision: 5, last_edited: 1245783968|%e %b %Y, %H:%M %Z (%O ago)
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License