September 2018
Intermediate to advanced
426 pages
10h 46m
English
Register at the Shodan website and use API_KEY, which gives you access to their services.
The method is the host() method, and it returns the dictionary data structure.
We need to create a socket with the sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) instruction, send a GET request with the sock.sendall(http_get) instruction, and finally receive data with the data = sock.recvfrom(1024) instruction.