获取网页的html文本(用selenium+chrome headless进行js异步加载内容),返回BeautifulSoup的soup对象
importrequestsfrombs4importBeautifulSoupfromseleniumimportwebdriverdefgethtml(url,js=False):if(js==False):returngethtml1(url)elif(js==True):returngethtml2(url)else:print(js参数错误)defgethtml1(url):res=re