Ignore spurious warning from BeautifulSoup

This commit is contained in:
freamon 2024-03-16 20:39:16 +00:00
parent 90a89c47e2
commit fcdc5afbf4

View file

@ -13,7 +13,9 @@ import math
from urllib.parse import urlparse, parse_qs, urlencode
from functools import wraps
import flask
from bs4 import BeautifulSoup, NavigableString
from bs4 import BeautifulSoup, NavigableString, MarkupResemblesLocatorWarning
import warnings
warnings.filterwarnings("ignore", category=MarkupResemblesLocatorWarning)
import requests
import os
from flask import current_app, json, redirect, url_for, request, make_response, Response, g