public static void Main()
string newspaper_url = "https://www.hk01.com";
HtmlWeb hw = new HtmlWeb();
HtmlDocument doc = new HtmlDocument();
doc = hw.Load(@"https://www.hk01.com/channel/310/%E6%94%BF%E6%83%85");
string str_prev_link = "";
foreach (HtmlNode link in doc.DocumentNode.SelectNodes("//a[@href]"))
string str_link = link.GetAttributeValue("href", string.Empty);
if(str_link.StartsWith("/政情")){
if(str_link != str_prev_link){
HtmlDocument doc2 = new HtmlDocument();
Console.WriteLine("Surf:" + newspaper_url + str_link + "...");
doc2 = hw.Load(newspaper_url+str_link);
foreach (HtmlNode link2 in doc2.DocumentNode.SelectNodes("//a[@href]"))
string str_link2 = link2.GetAttributeValue("href", string.Empty);
if(str_link2.StartsWith("/tag")){
Console.WriteLine(str_link2 + " - " + link2.InnerText);
str_prev_link = str_link;