mirror of
https://github.com/lilydjwg/nvchecker.git
synced 2025-03-10 06:14:02 +00:00
fix: removed unused htmlparser dependencies, fixed typos
This commit is contained in:
parent
6d4a90e8d1
commit
d5c754762c
3 changed files with 10 additions and 9 deletions
|
@ -177,8 +177,9 @@ tries
|
|||
This only works when the source implementation uses the builtin HTTP client.
|
||||
|
||||
httptoken
|
||||
A personal authorization token used to call the url. The type of token depends on the authorization required.
|
||||
|
||||
A personal authorization token used to fetch the url with the ``Authorization`` header.
|
||||
The type of token depends on the authorization required.
|
||||
|
||||
- For Bearer token set : ``Bearer <Your_bearer_token>``
|
||||
- For Basic token set : ``Basic <Your_base64_encoded_token>``
|
||||
|
||||
|
@ -282,7 +283,10 @@ url
|
|||
The URL of the HTTP request.
|
||||
|
||||
xpath
|
||||
A xpath expression used to find the version string
|
||||
An xpath expression used to find the version string.
|
||||
|
||||
.. note::
|
||||
An additional dependency "lxml" is required
|
||||
|
||||
Find with a Command
|
||||
~~~~~~~~~~~~~~~~~~~
|
||||
|
|
|
@ -226,12 +226,11 @@ class FunctionWorker(BaseWorker):
|
|||
if ua is not None:
|
||||
ctx_ua.set(ua)
|
||||
httpt = entry.get('httptoken', None)
|
||||
if httpt is not None:
|
||||
ctx_httpt.set(httpt)
|
||||
else:
|
||||
if httpt is None:
|
||||
httpt = self.keymanager.get_key('httptoken_'+name)
|
||||
if httpt is not None:
|
||||
if httpt is not None:
|
||||
ctx_httpt.set(httpt)
|
||||
|
||||
try:
|
||||
async with self.task_sem:
|
||||
version = await self.func(
|
||||
|
|
|
@ -2,8 +2,6 @@
|
|||
# Copyright (c) 2020 Ypsilik <tt2laurent.maud@gmail.com>, et al.
|
||||
# Copyright (c) 2013-2020 lilydjwg <lilydjwg@gmail.com>, et al.
|
||||
|
||||
import re
|
||||
import sre_constants
|
||||
from lxml import html, etree
|
||||
|
||||
from nvchecker.api import session, GetVersionError
|
||||
|
|
Loading…
Add table
Reference in a new issue