Giter Club home page Giter Club logo

pyqrz's People

Contributors

istealmycode avatar johnvbk avatar mnjagadeesh avatar njohnsn avatar stephengenusa avatar zebpalmer avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

pyqrz's Issues

Cache lookups

I removed the local xml cache implementation in 0.1.0 as it needed some TLC, it will be replaced in the next version with a sqlite cache. this issue tracks that replacement.

TypeError: cannot use a string pattern on a bytes-like object

Running code of the qrz_example.py I obtain:
/site-packages/requests/packages/urllib3/connectionpool.py:852: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings InsecureRequestWarning) Traceback (most recent call last): File "test.py", line 16, in <module> result = qrz.callsign("w7atc") File "/Users/Davide/.pyenv/versions/env_qrz/lib/python3.6/site-packages/qrz/qrz_query.py", line 59, in callsign self._get_session() File "/Users/Davide/.pyenv/versions/env_qrz/lib/python3.6/site-packages/qrz/qrz_query.py", line 51, in _get_session self._session_key = regex.search(r.content).group(1) TypeError: cannot use a string pattern on a bytes-like object

Username/password incorrect with special characters.

Receiving a Key Error

Traceback (most recent call last):
  File "Z:\scriptpath\qrztest.py", line 24, in <module>
    qrzinfo = qrz.callsign("K8MRD")
  File "C:\PythonPath\lib\site-packages\qrz\qrz_query.py", line 51, in callsign
    self._get_session()
  File "C:\PythonPath\lib\site-packages\qrz\qrz_query.py", line 44, in _get_session
    self._session_key = raw_session['QRZDatabase']['Session']['Key']
KeyError: 'Key'

I dug a little to find that this is thrown when a 'Username/password incorrect' error is sent under the session key, This is apparently also sometimes thrown with correct passwords if they contain specific special characters such as ?@#$%&

I can send a pull request with my fix if you'd like.

there is also a warning from connectionpool for InsecureRequestWarning, not sure if that's new or not?

update CI & Deploy

currently running on an old jenkins instance. need to move to travis.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.