When I wrote this, I didn't even see that CSDN already had this function. After writing the code, I suddenly found that it was already in use.
Paste the code here. Although there are a lot of open-source libraries that parse HTML, such as http://htmlagilitypack.codeplex.com/, I always agree with them.
:
Haha, at least let's see @--#
button1_Click( (! url = htmlSource = htmlSource = pageCount = context = (pageCount > ( i = ; i <= pageCount; i++ htmlSource = GetHtmlSource(url + + context+= context += richTextBox1.Text = MessageBox.Show( GetHtmlSource( WebClient client = client.Headers.Add(, Stream data = result = (StreamReader reader = result = GetPageCount( pageCount = Regex reg = Regex(, RegexOptions.Singleline | htmlSource = Regex reg1 = Regex(, RegexOptions.Singleline | count = reg1.Matches(reg.Match(htmlSource).Groups[ .TryParse(reg1.Matches(reg.Match(htmlSource).Groups[].Value)[count - ].Groups[ GetArticleTitle( title = Regex reg = Regex(, RegexOptions.Singleline | title = reg.Match(HtmlSource).Groups[ GetAuthorName( result = Regex regex = Regex( result = regex.Match(HtmlSource).Groups[ GetLZArticle( result = authorName = Regex regex = Regex( + authorName + , RegexOptions.Singleline | ( i = ; i < regex.Matches(HtmlSource).Count; i++ result += regex.Matches(HtmlSource)[i].Groups[ result += result.Trim().Replace(, }
The code is here.