diff --git a/src/app/api/social/chan.py b/src/app/api/social/chan.py index 0f3d767..66efdb0 100644 --- a/src/app/api/social/chan.py +++ b/src/app/api/social/chan.py @@ -2,12 +2,12 @@ import re import html import requests import warnings -from bs4 import BeautifulSoup +from bs4 import BeautifulSoup, MarkupResemblesLocatorWarning from datetime import datetime from app.api.core.social import * # Ignora i warning di BeautifulSoup quando incontra HTML malformato o un link, mentre si aspetta un HTML completo -warnings.filterwarnings("ignore") +warnings.filterwarnings("ignore", category=MarkupResemblesLocatorWarning) class ChanWrapper(SocialWrapper):