/    Sign up×
Community /Pin to ProfileBookmark

Reading data from CNN

Hello

I need data from CNN to my own site. Suppose, I want to know about IRAQ.when I enter the word ‘[COLOR=Sienna]IRAQ[/COLOR]‘ in search box and I get many news each of them consisting a header, brief description and a web link for detail of the news.

I want first 5 news with the above three sections from CNN to my site without going CNN.

How can I do it? Please provide me information.

to post a comment
PHP

4 Comments(s)

Copy linkTweet thisAlerts:
@bokehMar 11.2006 — Do a search for [I]RSS[/I] feeds.
Copy linkTweet thisAlerts:
@webnauthorMar 11.2006 — Sorry i can't understand the word RSS feeds.
Copy linkTweet thisAlerts:
@bokehMar 11.2006 — Sorry i can't understand the word RSS feeds.[/QUOTE]
If you do a search I'm sure you will find some useful documentation in your mother tongue.
Copy linkTweet thisAlerts:
@chazzyMar 11.2006 — in order to get the data from CNN, you should use their provided RSS feeds. They're a specific form of XML. If you use PHP5 you can use its dom manipulation functions to read the data there and display it.

Otherwise, you can use a fancy XSLT trickery to add in your own style sheet.
×

Success!

Help @webn spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.15,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...