Refactor and novel18 support (added cookie support in general to AbstractScraper.cs
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2022-07-20 22:04:13 -04:00
parent 12a1f48fbd
commit ceb8a0db8e
59 changed files with 353 additions and 240 deletions

View File

@@ -8,10 +8,10 @@ using DBConnection.Repositories.Interfaces;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Treestar.Shared.Models.DBDomain;
using Treestar.Shared.Models.DTO;
using Treestar.Shared.Models.DTO.Requests;
using Treestar.Shared.Models.DTO.Responses;
using Common.Models.DBDomain;
using Common.Models.DTO;
using Common.Models.DTO.Requests;
using Common.Models.DTO.Responses;
using WebNovelPortalAPI.Exceptions;
using WebNovelPortalAPI.Scrapers;
@@ -40,7 +40,7 @@ namespace WebNovelPortalAPI.Controllers
{
throw new NoMatchingScraperException(url);
}
var novel = scraper.ScrapeNovel(url);
var novel = await scraper.ScrapeNovel(url);
return novel;
}