Skip to content

Commit

Permalink
adjust Fox News parser
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxDall committed Feb 22, 2024
1 parent d657248 commit 9320b3f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/fundus/publishers/us/fox_news.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import datetime
from typing import List, Optional

from lxml.cssselect import CSSSelector
from lxml.etree import XPath

from fundus.parser import ArticleBody, BaseParser, ParserProxy, attribute
from fundus.parser.utility import (
Expand All @@ -14,7 +14,7 @@

class FoxNewsParser(ParserProxy):
class V1(BaseParser):
_paragraph_selector = CSSSelector(".article-body > p")
_paragraph_selector = XPath("//div[@class='article-body'] / p[text()]")

@attribute
def body(self) -> ArticleBody:
Expand Down

0 comments on commit 9320b3f

Please sign in to comment.