摘要: 1 1. 用requests库和BeautifulSoup库,爬取校园新闻首页新闻的标题、链接、正文。 2 3 import requests 4 from bs4 import BeautifulSoup 5 6 url = 'http://news.gzcc.cn/html/xiaoyuanxinwen/' 7 res = requests.get(url) 8 res.... 阅读全文
posted @ 2018-04-02 16:05 091梁耀 阅读(210) 评论(0) 推荐(0) 编辑