I just want to know that How can I grab small discription of a specific news from the news websites using url like http://www.bhaskar.com/2009/11/05/091105062426_uid_number.html

If you have a sample code,please send me.
thanks

Recommended Answers

All 2 Replies

Unless they have an API, you'd have to grab their HTML and parse it to get what you need.

Member Avatar for diafol

if you know which part of the website you need, you can use cURL to 'grab' the specific part. However, the page will need to be reasonably 'static' or at least have a consistent structure has it is updated.
If you need RSS, you can use a number of services such as Google code.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.