chore: remove all .history/DrApi_20241215* placeholder example source files
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
using HtmlAgilityPack;
|
||||
using System;
|
||||
using System.Linq;
|
||||
|
||||
class DrApi {
|
||||
|
||||
public static async Task<string> get_rants (string url) {
|
||||
|
||||
string response = await HTTP.get(url).ConfigureAwait(false);;
|
||||
HtmlDocument doc = new HtmlDocument();
|
||||
doc.LoadHtml(response);
|
||||
var nodes = doc.DocumentNode.SelectNodes("//a");
|
||||
//var nodes = doc.DocumentNode.SelectNodes("//a[contains(@class,'rantlist-content-col')");
|
||||
//var nodes = doc.DocumentNode.SelectNodes("//div[contains(@class, 'rant-comment-row-widget')]");
|
||||
foreach (var node in nodes) {
|
||||
Console.WriteLine(node.GetAttributeValue("class","None"));
|
||||
if(node.GetAttributeValue("class","None") == "rantlist-bglink"){
|
||||
|
||||
Console.WriteLine(node.InnerText);
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user