Shodan CLI

sudo pip install shodan
shodan init 
shodan host 
shodan myip
shodan host --history 
#show count of open ports:
shodan count net:109.231.238.185/32
#show ports open:
shodan stats --facet port net:109.231.238.185/32
#download data:
shodan download --limit -1 mynetwork net:109.231.238.185/32
#show vulns:
shodan stats --facets vuln net:85.133.66.201/32