爬虫练习【每日60s读懂世界】
作者:互联网
源网站
def ut_60s_read(): url = '' res = ut_url_get(url) soup = BeautifulSoup(res.content, 'lxml') link = soup.select('.col-lg-6 .entry-title a')[0]['href'] # print(link) res = ut_url_get(link) soup = BeautifulSoup(res.content, 'lxml') list = soup.select('.entry-content section')[-1].text return list
版权声明:仅作学习交流用途,侵权立删
标签:60s,soup,url,res,爬虫,content,读懂,link,ut 来源: https://www.cnblogs.com/Timor88/p/15250935.html