cerebro not returning results python code example
Example 1: python value is unsubscriptable when using [:]
a = 1337
b = [1,3,3,7]
print b[0] # prints 1
print a[0] # raises your exception
Example 2: response.json results in pretty data python
import requests
import json
r = requests.get('http://server.com/api/2/....')
pretty_json = json.loads(r.text)
print (json.dumps(pretty_json, indent=2))