我想获得这个里面的英国,应该怎么办
h2=link.select('a')0
res2=requests.get(h2)
res2.encoding='utf-8'
soup2=BeautifulSoup(res2.text)
country_from=
print(country_from)
country_from那点应该怎么写可以抓取下'英国'
我想获得这个里面的英国,应该怎么办
h2=link.select('a')0
res2=requests.get(h2)
res2.encoding='utf-8'
soup2=BeautifulSoup(res2.text)
country_from=
print(country_from)
country_from那点应该怎么写可以抓取下'英国'
用beautifulsoup比较方便