def umurgdk():
 reader = urllib2.urlopen('https://api.github.com/repos/sricola/socode/forks')
 json_text = reader.read()
 forks = json.loads(json_text)
 print 'WHO FORKED SOCODE REPOSITORY?'
 print '-----------------------------'
 for fork in forks:
  print fork['owner']['login'], ("<= That's me ^_^" if (fork['owner']['login'] == 'umurgdk') else '')

def umurgdk ( ) : reader = urllib2 . urlopen ( 'https://api.github.com/repos/sricola/socode/forks' ) json_text = reader . read ( ) forks = json . loads ( json_text ) print 'WHO FORKED SOCODE REPOSITORY?' print '-----------------------------' for fork in forks : print fork [ 'owner' ] [ 'login' ] , ( "<= That's me ^_^" if ( fork [ 'owner' ] [ 'login' ] == 'umurgdk' ) else '' )
this code prints github usernames who forked this project .