Esempio n. 1
0
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
Esempio n. 2
0
def doSearch(pg_no, query):
    URL = getURL(query,pg_no)
    print URL
    page = getPage(URL)
    soup = getSoup(page)
    return soup
Esempio n. 3
0
def saveGist(url):
    setProxy()
    page = getPage(url)
    soup = getSoup(page)
    saveText(soup)  
Esempio n. 4
0
def searchPage(pg_no, query, language):
	URL = getURL(language,query,pg_no)
	#print URL
	page = getPage(URL)
	soup = getSoup(page)
	return soup