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

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

Jump to Post

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

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, learning, and sharing knowledge.