socode icon indicating copy to clipboard operation
socode copied to clipboard

Error in jpadilla()

Open havanagrawal opened this issue 8 years ago • 0 comments

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

havanagrawal avatar Sep 11 '16 16:09 havanagrawal