chore: add AngleSharp dependency and refactor rant scraping to use CSS class queries

- Add AngleSharp NuGet package version 1.1.2 to csproj for HTML parsing
- Introduce DomQueryClass helper method using AngleSharp to extract elements by CSS class name
- Replace XPath-based node selection in get_rants with DomQueryClass targeting "rantlist-title-text"
- Update Program.cs to await RunIt task and add a 100-iteration loop around rant fetching
- Add transform string concatenation utility method to Program class
This commit is contained in:
2024-12-17 11:10:58 +00:00
parent a3cce3425f
commit da6d3d747b
19 changed files with 201 additions and 18 deletions
+28 -1
View File
@@ -8,6 +8,7 @@
".NETCoreApp,Version=v8.0": {
"drnetapi/1.0.0": {
"dependencies": {
"AngleSharp": "1.1.2",
"GtkSharp": "3.24.24.95",
"HtmlAgilityPack": "1.11.71"
},
@@ -15,6 +16,17 @@
"drnetapi.dll": {}
}
},
"AngleSharp/1.1.2": {
"dependencies": {
"System.Text.Encoding.CodePages": "8.0.0"
},
"runtime": {
"lib/net8.0/AngleSharp.dll": {
"assemblyVersion": "1.1.2.0",
"fileVersion": "1.1.2.0"
}
}
},
"AtkSharp/3.24.24.95": {
"dependencies": {
"GLibSharp": "3.24.24.95"
@@ -102,7 +114,8 @@
"fileVersion": "3.24.24.95"
}
}
}
},
"System.Text.Encoding.CodePages/8.0.0": {}
}
},
"libraries": {
@@ -111,6 +124,13 @@
"serviceable": false,
"sha512": ""
},
"AngleSharp/1.1.2": {
"type": "package",
"serviceable": true,
"sha512": "sha512-aRFpAqixbuj1Vmqy2hsWPF0PJygo1SfjvmpBvVWZv6i+/u+C/L4wDdwFIzyCGUbjqr61NsZdPNPqDE8wlmG2qA==",
"path": "anglesharp/1.1.2",
"hashPath": "anglesharp.1.1.2.nupkg.sha512"
},
"AtkSharp/3.24.24.95": {
"type": "package",
"serviceable": true,
@@ -166,6 +186,13 @@
"sha512": "sha512-H7JeyEvLsgvsbamGpRgoNtdvzPiGwwsUuoeTobN1C/JRjw1J8Snw0yf2WBr7CKx5GLwbrwpQYOb7N/HD17ME8A==",
"path": "pangosharp/3.24.24.95",
"hashPath": "pangosharp.3.24.24.95.nupkg.sha512"
},
"System.Text.Encoding.CodePages/8.0.0": {
"type": "package",
"serviceable": true,
"sha512": "sha512-OZIsVplFGaVY90G2SbpgU7EnCoOO5pw1t4ic21dBF3/1omrJFpAGoNAVpPyMVOC90/hvgkGG3VFqR13YgZMQfg==",
"path": "system.text.encoding.codepages/8.0.0",
"hashPath": "system.text.encoding.codepages.8.0.0.nupkg.sha512"
}
}
}
Binary file not shown.
Binary file not shown.