mirror of
https://github.com/Nioux/AideDeJeu.git
synced 2025-12-16 23:29:47 +00:00
Parsing
This commit is contained in:
parent
e357ab0698
commit
a52deaa805
49 changed files with 1430 additions and 4 deletions
|
|
@ -385,10 +385,12 @@ namespace AideDeJeuCmd
|
|||
{
|
||||
var parser = new HtmlParser();
|
||||
for (int i = 10; i <= 428; i++)
|
||||
//for (int i = 256; i <= 256; i++)
|
||||
{
|
||||
var doc = new HtmlAgilityPack.HtmlDocument();
|
||||
doc.Load($@"..\..\..\..\..\Ignore\tome_of_beasts\page{i}.html");
|
||||
parser.OutputMarkdown(parser.Parse(doc), output, Console.Error);
|
||||
//parser.OutputMarkdown(parser.Parse(doc), Console.Out, Console.Error);
|
||||
}
|
||||
output.Write("\n<!--/MonsterItem-->\n\n<!--/MonsterItems-->\n");
|
||||
}
|
||||
|
|
@ -640,6 +642,10 @@ namespace AideDeJeuCmd
|
|||
if (abilities != null)
|
||||
{
|
||||
abilities += text;
|
||||
if(value.Length > 0)
|
||||
{
|
||||
abilities += $" {value}";
|
||||
}
|
||||
if (abilities.Count(c => c == '(') == 6)
|
||||
{
|
||||
Console.ForegroundColor = ConsoleColor.White;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue