mirror of
https://github.com/langgenius/dify.git
synced 2026-05-06 10:28:10 +08:00
fix: webscaper sometime not work (#35450)
This commit is contained in:
@ -105,7 +105,7 @@ class Article:
|
|||||||
|
|
||||||
|
|
||||||
def extract_using_readabilipy(html: str):
|
def extract_using_readabilipy(html: str):
|
||||||
json_article: dict[str, Any] = simple_json_from_html_string(html, use_readability=True)
|
json_article: dict[str, Any] = simple_json_from_html_string(html, use_readability=False)
|
||||||
article = Article(
|
article = Article(
|
||||||
title=json_article.get("title") or "",
|
title=json_article.get("title") or "",
|
||||||
author=json_article.get("byline") or "",
|
author=json_article.get("byline") or "",
|
||||||
|
|||||||
Reference in New Issue
Block a user