socode
socode copied to clipboard
Error in jpadilla()
Traceback (most recent call last):
File "socode.py", line 1943, in <module>
jpadilla()
File "socode.py", line 806, in jpadilla
print 'Forked {} times'.format(repo['forks_count'])
TypeError: 'instancemethod' object has no attribute '__getitem__'
It's because of this line of code
repo = requests.get('https://api.github.com/repos/sricola/socode').json
which should probably be
repo = requests.get('https://api.github.com/repos/sricola/socode').json()
Similar issue in ncammarata()
tweets = requests.get("https://search.twitter.com/search.json?q=a").json