What is the best approach to build a function to scrape a html table on a webpage into a variable.
I want to be able to pass it some unique identifier (like table ID or something) and it will return all the data into something like a DataTable.
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 can use HtmlAgilityPack to parse the HTML and extract the table data.
With HAP now supporting Linq you could start with something like this: