网络爬虫-----Requests库入门

网络爬虫-----Requests库入门 1、requests.get()使用 requests.get(url) url:拟获取页面的url链接 response对象的属性如下: r.encoding:如果header种不存在charset,则认为编码为ISO-8859-1 r.apparent_encoding:根据网页内容分析出的编码方式 大概流程如下: 首先使用 r.status_code
相关文章
相关标签/搜索