爬取校园新闻首页的新闻
摘要:
1. 用requests库和BeautifulSoup库,爬取校园新闻首页新闻的标题、链接、正文。 import requests from bs4 import BeautifulSoup for news in soup.select('li'): if len(news.select('.ne 阅读全文
posted @ 2018-04-02 11:41 114周展鹏 阅读(81) 评论(0) 推荐(0) 编辑