Skip to content
This repository has been archived by the owner on Apr 3, 2024. It is now read-only.

Suppress BeautifulSoup Warnings #85

Open
TheTechromancer opened this issue Jul 23, 2023 · 0 comments
Open

Suppress BeautifulSoup Warnings #85

TheTechromancer opened this issue Jul 23, 2023 · 0 comments

Comments

@TheTechromancer
Copy link

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!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant