Import the class:
fromNetcraftAPIimportNetcraftAPIThen, search for a specific domain:
res=NetcraftAPI({'verbose': True}).search('microsoft.com')
printresResult is an array of all subdomains.
Feel free to open issues, contribute and submit your Pull Requests. You can also ping me on Twitter (@PaulWebSec)