A python wrapper for Thtreatcrowd API that introduces a very easy access method for repeated use and returns all the outputs in pandas dataframes for network graph or other analysis.
Copy https://raw.githubusercontent.com/botlabio/threatcrowd-python/master/threatcrowd.py to your local working directory (for example the directory you run Jupyter from).
import threatcrowd as tc
There are four different modes; domain, ip, email, antivirus. The domain mode is on by default.
o = tc.Threatcrowd('cnn.com')
o = tc.Threatcrowd('0.0.0.0','ip')
o = tc.Threatcrowd('[email protected]','email)
o = tc.Threatcrowd('some hash or antivirus name','antivirus')
For domain and ip objects there are more than 1 dataframes that come as the output:
df = o.run()
df[1] # shows the second dataframe in the object
For email and antivirus there is just one result dataframe:
df = o.run()
df