爬虫练习【每日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

版权声明:仅作学习交流用途,侵权立删

posted @ 2021-09-10 13:16  Timor88  阅读(269)  评论(0)    收藏  举报