学习笔记—Python网络爬虫(一)

一、网络资源(URLs)撷取套件。 可以使用REST操作(POST, PUT, GET, DELETE)存取网络资源。以新浪新闻网站为例: import requests res = requests.get('http://news.sina.com.cn/china/') res.encoding = 'utf-8' print(res.text) 二、BeautifulSoup4 2.1 将
相关文章
相关标签/搜索