18 lines
377 B
C#
18 lines
377 B
C#
using HtmlAgilityPack;
|
|
|
|
namespace MangaReader.Core.WebCrawlers;
|
|
|
|
public abstract class MangaWebCrawler : IMangaWebCrawler
|
|
{
|
|
public abstract SourceManga GetManga(string url);
|
|
|
|
protected virtual HtmlDocument GetHtmlDocument(string url)
|
|
{
|
|
HtmlWeb web = new()
|
|
{
|
|
UsingCacheIfExists = false
|
|
};
|
|
|
|
return web.Load(url);
|
|
}
|
|
} |