18 lines
483 B
C#
18 lines
483 B
C#
|
using HtmlAgilityPack;
|
||
|
using System;
|
||
|
using System.Linq;
|
||
|
|
||
|
class DrApi {
|
||
|
|
||
|
public static Task<string> get_rants (string url) {
|
||
|
string response = await HTTP.get(url);
|
||
|
HtmlDocument doc = new HtmlDocument();
|
||
|
doc.LoadHtml(response);
|
||
|
var nodes = doc.DocumentNode.SelectNodes("//div[contains(@class, 'rant-comment-row-widget')]");
|
||
|
foreach (var node in nodes) {
|
||
|
Console.WriteLine(node.InnerText);
|
||
|
}
|
||
|
return null;
|
||
|
}
|
||
|
|
||
|
}
|