Compare commits
3 Commits
1.0.1_alph
...
7ac854dc61
Author | SHA1 | Date | |
---|---|---|---|
7ac854dc61 | |||
0551629a9a | |||
17c4e19bc5 |
@ -1,8 +1,8 @@
|
||||
include AUTHORS
|
||||
include CHANGELOG.rst
|
||||
include LICENSE
|
||||
include README.rst
|
||||
include TODO
|
||||
include setup.py
|
||||
include pyproject.toml
|
||||
recursive-include bin *
|
||||
recursive-include man *
|
||||
recursive-include pym *.py
|
||||
recursive-include src *.py
|
||||
|
@ -22,6 +22,7 @@ dynamic = ["version"]
|
||||
|
||||
[project.urls]
|
||||
homepage = "https://gitlab.com/src_prepare/euscan-ng"
|
||||
changelog = "https://gitlab.com/src_prepare/euscan-ng/-/blob/master/CHANGELOG.rst"
|
||||
|
||||
[tool.setuptools]
|
||||
script-files = ["bin/euscan"]
|
||||
|
@ -8,14 +8,11 @@ import re
|
||||
import urllib.error
|
||||
import urllib.parse
|
||||
import urllib.request
|
||||
import warnings
|
||||
from urllib.parse import urljoin, urlparse
|
||||
|
||||
try:
|
||||
from BeautifulSoup import BeautifulSoup
|
||||
except ImportError:
|
||||
from bs4 import BeautifulSoup
|
||||
|
||||
import portage
|
||||
from bs4 import BeautifulSoup, XMLParsedAsHTMLWarning
|
||||
|
||||
from euscan import (
|
||||
BRUTEFORCE_BLACKLIST_PACKAGES,
|
||||
@ -65,6 +62,7 @@ def confidence_score(found, original, minimum=CONFIDENCE):
|
||||
|
||||
|
||||
def scan_html(data, url, pattern):
|
||||
warnings.filterwarnings("ignore", category=XMLParsedAsHTMLWarning)
|
||||
soup = BeautifulSoup(data, features="lxml")
|
||||
results = []
|
||||
|
||||
|
Reference in New Issue
Block a user