def saveUserRepo(url): setProxy() soup = getSoup(getPage(url)) repo_url_list = getRepoURLs(soup) for repo_url in repo_url_list: repo_url = 'https://github.com'+repo_url saveRepo(repo_url) print 'Repo Saved' return
def doSearch(pg_no, query): URL = getURL(query,pg_no) print URL page = getPage(URL) soup = getSoup(page) return soup
def saveGist(url): setProxy() page = getPage(url) soup = getSoup(page) saveText(soup)
def searchPage(pg_no, query, language): URL = getURL(language,query,pg_no) #print URL page = getPage(URL) soup = getSoup(page) return soup