CaliDog / certstream-python

Python library for connecting to CertStream
MIT License
425 stars 72 forks source link

TypeError: listen_for_events() got an unexpected keyword argument 'url' #39

Closed retpoline closed 3 years ago

retpoline commented 3 years ago
pip install certstream

$ python examples/echo.py 
Traceback (most recent call last):
  File "echo.py", line 25, in <module>
    certstream.listen_for_events(print_callback, url='wss://certstream.calidog.io/')
TypeError: listen_for_events() got an unexpected keyword argument 'url'

Is there something else missing to make the echo example work?

Thanks!

Fitblip commented 3 years ago

Howdy, I suspect this is the websocket library having changed. It looks like I didn't actually pin it to a specific version though https://github.com/CaliDog/certstream-python/blob/master/requirements.txt#L1 so that'd cause the breakage. I'll take a look when I have a chance, sorry for the breakage!

Fitblip commented 3 years ago

This should be fixed with #42