Fix Web Artículos

This commit is contained in:
2025-11-25 14:11:30 -03:00
parent 8d41453666
commit 6f96ca9c79
5 changed files with 2 additions and 3 deletions

View File

@@ -410,7 +410,8 @@ namespace ChatbotApi.Controllers
{ {
var web = new HtmlWeb(); var web = new HtmlWeb();
var doc = await web.LoadFromWebAsync(url); 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; if (articleNodes == null) return newsList;

View File

@@ -1,5 +1,4 @@
import Chatbot from './components/Chatbot'; import Chatbot from './components/Chatbot';
import './App.css';
function App() { function App() {
return ( return (

View File

@@ -1,6 +1,5 @@
import { StrictMode } from 'react' import { StrictMode } from 'react'
import { createRoot } from 'react-dom/client' import { createRoot } from 'react-dom/client'
import './index.css'
import App from './App.tsx' import App from './App.tsx'
createRoot(document.getElementById('root')!).render( createRoot(document.getElementById('root')!).render(