採集目標:https://info.laser.hc360.com/list/z_news_yw.shtml 新聞列表與詳情,支援分頁與單篇多頁。
public interface IGatherInfo
{
string GatherTime { get; set; }
List<string> GatherUrlList(string listUrl, string regex);
List<NewsDetail> GatherNewsDetail(List<string> urls, string regex);
}
GatherUrlList:列表頁 URL + 正則 → 詳情頁 URL 清單。GatherNewsDetail:詳情頁 URL 清單 + 正則 → 結構化 NewsDetail 物件清單。作者求職中,歡迎指正交流。