mirror of
https://github.com/dh1tw/pyhamtools.git
synced 2026-01-20 15:30:28 +01:00
using lxml to parse qrz.com xml responses instead of html.parser
This commit is contained in:
parent
cb9b23c96f
commit
82e2b93cd5
|
|
@ -1,6 +1,15 @@
|
|||
Changelog
|
||||
---------
|
||||
|
||||
PyHamtools 0.7.10
|
||||
================
|
||||
|
||||
12. May 2022
|
||||
|
||||
* Using lxml to parse XML messages returned from qrz.com
|
||||
* Upgraded dependencies
|
||||
|
||||
|
||||
PyHamtools 0.7.9
|
||||
================
|
||||
|
||||
|
|
|
|||
|
|
@ -136,7 +136,8 @@ class LookupLib(object):
|
|||
else:
|
||||
encodeurl = url + "?" + urllib.urlencode(params)
|
||||
response = requests.get(encodeurl, timeout=10)
|
||||
doc = BeautifulSoup(response.text, "html.parser")
|
||||
# doc = BeautifulSoup(response.text, "html.parser")
|
||||
doc = BeautifulSoup(response.text, "lxml")
|
||||
session_key = None
|
||||
if doc.session.key:
|
||||
session_key = doc.session.key.text
|
||||
|
|
|
|||
|
|
@ -1,3 +1,3 @@
|
|||
VERSION = (0, 7, 9)
|
||||
VERSION = (0, 7, 10)
|
||||
__release__ = ''.join(['-.'[type(x) == int]+str(x) for x in VERSION])[1:]
|
||||
__version__ = '.'.join((str(VERSION[0]), str(VERSION[1])))
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
pytest>=6.2.2; python_version>='3.6'
|
||||
pytest>=7.0.0; python_version>='3.6'
|
||||
pytest==4.6.11; python_version<='3.5' and python_version>='2.7'
|
||||
pytest-blockage>=0.2.2
|
||||
pytest-localserver>=0.5
|
||||
|
|
|
|||
Loading…
Reference in a new issue