Skip to content

Error in jpadilla() #322

@havanagrawal

Description

@havanagrawal
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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions