diff --git a/app/utils/opengraph.py b/app/utils/opengraph.py index c9eed6c..1735936 100644 --- a/app/utils/opengraph.py +++ b/app/utils/opengraph.py @@ -5,6 +5,7 @@ from urllib.parse import urlparse import httpx from bs4 import BeautifulSoup # type: ignore +from loguru import logger from pydantic import BaseModel from app import ap_object @@ -32,6 +33,7 @@ def _scrap_og_meta(url: str, html: str) -> OpenGraphMeta | None: og.attrs["property"]: og.attrs.get("content") for og in soup.html.head.findAll(property=re.compile(r"^og")) } + # FIXME some page have no