You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are looking to refactor our codebase utilizing your older pshtt library based on Python2.7. Before doing so, we wanted to know if there is anything important we will need to know.
IE Do we still invoke pshtt this way? pshtt.inspect_domains([url], {})[0]
Thank you!
The text was updated successfully, but these errors were encountered:
Actually triggers the work. pshtt_results = list(pshtt_results) List is a built-in Python function, it forces a Python iterator (which is what results is when it's returned from pshtt) to evaluate the entire iterator and convert it into a full list of items. Once you do list(pshtt_results) you will have a Python list of results like you were expecting from the old code (pshtt running on python2). You can return the entire thing, take the first one, or do whatever you want with it.
We are looking to refactor our codebase utilizing your older pshtt library based on Python2.7. Before doing so, we wanted to know if there is anything important we will need to know.
IE Do we still invoke pshtt this way?
pshtt.inspect_domains([url], {})[0]
Thank you!
The text was updated successfully, but these errors were encountered: