19 lines
498 B
C#
Raw Normal View History

2024-12-16 21:23:13 +00:00
using HtmlAgilityPack;
using System;
using System.Linq;
class DrApi {
public static async 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;
}
}