def update_org_list(main_list,organisation):
s = requests.Session()
for i in main_list:
r = s.get('https://github.com/'+i[0])
soup = BeautifulSoup(r.text)
data = soup.find_all("li",{"aria-label":"Organization"})
try:
if data[0].text not in organisation:
organisation.append(data[0].text)
except:
continue
return organisation
评论列表
文章目录