Undocumented
Function | api |
General-purpose function to create web requests to SHODAN. |
Function | create |
Converts a Python list of facets into a comma-separated string that can be understood by the Shodan API. |
Function | get |
Undocumented |
Function | get |
Undocumented |
Function | humanize |
Return a humanized string representation of a number of bytes. >>> humanize_bytes(1) '1 byte' >>> humanize_bytes(1024) '1.0 kB' >>> humanize_bytes(1024*123) '123.0 kB' >>> humanize_bytes(1024*12342) '12... |
Function | iterate |
Loop over all the records of the provided Shodan output file(s). |
Function | open |
Undocumented |
Function | write |
Undocumented |
General-purpose function to create web requests to SHODAN. Arguments: function -- name of the function you want to execute params -- dictionary of parameters for the function proxies -- a proxies array for the requests library Returns A dictionary containing the function's results.
Converts a Python list of facets into a comma-separated string that can be understood by the Shodan API.
Return a humanized string representation of a number of bytes. >>> humanize_bytes(1) '1 byte' >>> humanize_bytes(1024) '1.0 kB' >>> humanize_bytes(1024*123) '123.0 kB' >>> humanize_bytes(1024*12342) '12.1 MB' >>> humanize_bytes(1024*12342,2) '12.05 MB' >>> humanize_bytes(1024*1234,2) '1.21 MB' >>> humanize_bytes(1024*1234*1111,2) '1.31 GB' >>> humanize_bytes(1024*1234*1111,1) '1.3 GB'