Fix Web Artículos
This commit is contained in:
@@ -410,7 +410,8 @@ namespace ChatbotApi.Controllers
|
||||
{
|
||||
var web = new HtmlWeb();
|
||||
var doc = await web.LoadFromWebAsync(url);
|
||||
var articleNodes = doc.DocumentNode.SelectNodes("//article[contains(@class, 'item')]");
|
||||
//var articleNodes = doc.DocumentNode.SelectNodes("//article[contains(@class, 'item')]");
|
||||
var articleNodes = doc.DocumentNode.SelectNodes("//article[contains(@class, 'item')] | //article[contains(@class, 'nota_modulo')]");
|
||||
|
||||
if (articleNodes == null) return newsList;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user