BeautifulSoup 识别 正则 标签属性
herf = soup.find_all(href=re.compile("&id=" + "1013"))
soup = BeautifulSoup(cont, "lxml")
isNextpage = a['href']、
herf = soup.find_all(href=re.compile("&id=" + "1013"))[0]['href']
正则:
m = r'vk=[^&]+'
result = soup.find_all(href=re.compile(m))