How can i extract title,header of a web page directly from the internet??
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You could do this using a combination of regular expressions and the WebRequest / WebResponse classes. For any web scraping needs though, i’d strongly recommend looking into using Simon Mourier’s Html Agility Pack, which is much more tolerant of ‘bad’ HTML, and also allows you to traverse the DOM as a proper XML tree.