chorsley / python-Wappalyzer

Python driver for Wappalyzer, a web application detection utility.
GNU General Public License v3.0
311 stars 125 forks source link

Suppress BeautifulSoup Warnings #85

Open TheTechromancer opened 1 year ago

TheTechromancer commented 1 year ago

This warning fires occasionally.

/Wappalyzer/Wappalyzer.py:58: MarkupResemblesLocatorWarning: The input looks more like a filename than markup. You may want to open this file and pass the filehandle into Beautiful Soup. self.parsed_html = soup = BeautifulSoup(self.html, 'lxml')

It would be nice to suppress these kinds of BeautifulSoup warnings:

import warnings
from bs4 import UserWarning
warnings.filterwarnings("ignore", category=UserWarning, module='bs4')

Thanks!