摘要: import requests # Requests 继承了urllib2的所有特性。 # Requests支持HTTP连接保持和连接池,支持使用cookie保持会话,支持文件上传, # 支持自动确定响应内容的编码,支持国际化的 URL 和 POST 数据自动编码 # 安装方式: pip insta 阅读全文
posted @ 2020-06-05 17:46 cty136 阅读(177) 评论(0) 推荐(0) 编辑
摘要: #coding=utf-8 import requests from bs4 import BeautifulSoup resp=requests.get('https://www.baidu.com') #请求百度首页 #resp=requests.request('get','https://w 阅读全文
posted @ 2020-06-05 14:45 cty136 阅读(196) 评论(0) 推荐(0) 编辑