Skip to content

Instantly share code, notes, and snippets.

@takinbo
Created October 5, 2010 12:48
Show Gist options
  • Save takinbo/611494 to your computer and use it in GitHub Desktop.
Save takinbo/611494 to your computer and use it in GitHub Desktop.
from boss import BossFactory
from sys import argv
import yaml
config = yaml.load(file('config.yml', 'rb').read())
boss = BossFactory(appid=config['yahookey'])
offset = 0
done = False
urls = []
print "Getting URLs"
search_list = boss.search('site:github.com location "' + argv[1] + '" "profile - github"')
while not done:
offset += len(search_list.data)
urls += map(lambda x: x['url'], search_list.data)
if offset >= search_list.size:
done = True
else:
search_list[offset:10]
print "Getting social graph"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment