Created
October 5, 2010 12:48
-
-
Save takinbo/611494 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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