requests/python3基本使用

初步使用

In [1]: import requests

In [2]: response = requests.get('http://www.baidu.com')

In [3]: type(response)
Out[3]: requests.models.Response

In [4]: response.status_code
Out[4]: 200

In [5]: type(response.text)
Out[5]: str

In [6]: response.text
Out[6]: '<!DOCTYPE html>\r\n<!--STATUS OK--><html> <head><meta http-equiv=content-type content=text/html;charset=utf-8><
meta http-equiv=X-UA-Compatible content=IE=Edge><meta content=always name=referrer><link rel=stylesheet type=text/css hr
ef=http://s1.bdstatic.com/r/www/cache/bdorz/baidu.min.css><title>ç\x99¾åº¦ä¸\x80ä¸\x8bï¼\x8cä½\xa0å°±ç\x9f¥é\x81\x93</
title></head> <body link=#0000cc> <div id=wrapper> <div id=head> <div class=head_wrapper> <div class=s_form> <div class=
s_form_wrapper> <div id=lg> <img hidefocus=true src=//www.baidu.com/img/bd_logo1.png width=270 height=129> </div> <form
id=form name=f action=//www.baidu.com/s class=fm> <input type=hidden name=bdorz_come value=1> <input type=hidden name=ie
 value=utf-8> <input type=hidden name=f value=8> <input type=hidden name=rsv_bp value=1> <input type=hidden name=rsv_idx
 value=1> <input type=hidden name=tn value=baidu><span class="bg s_ipt_wr"><input id=kw name=wd class=s_ipt value maxlen
gth=255 autocomplete=off autofocus></span><span class="bg s_btn_wr"><input type=submit id=su value=ç\x99¾åº¦ä¸\x80ä¸\x8b
 class="bg s_btn"></span> </form> </div> </div> <div id=u1> <a href=http://news.baidu.com name=tj_trnews class=mnav>æ\x9
6°é\x97»</a> <a href=http://www.hao123.com name=tj_trhao123 class=mnav>hao123</a> <a href=http://map.baidu.com name=tj_
trmap class=mnav>å\x9c°å\x9b¾</a> <a href=http://v.baidu.com name=tj_trvideo class=mnav>è§\x86é¢\x91</a> <a href=http:
//tieba.baidu.com name=tj_trtieba class=mnav>è´´å\x90§</a> <noscript> <a href=http://www.baidu.com/bdorz/login.gif?logi
n&amp;tpl=mn&amp;u=http%3A%2F%2Fwww.baidu.com%2f%3fbdorz_come%3d1 name=tj_login class=lb>ç\x99»å½\x95</a> </noscript> <s
cript>document.write(\'<a href="http://www.baidu.com/bdorz/login.gif?login&tpl=mn&u=\'+ encodeURIComponent(window.locati
on.href+ (window.location.search === "" ? "?" : "&")+ "bdorz_come=1")+ \'" name="tj_login" class="lb">ç\x99»å½\x95</a>\'
);</script> <a href=//www.baidu.com/more/ name=tj_briicon class=bri style="display: block;">æ\x9b´å¤\x9a产å\x93\x81</
a> </div> </div> </div> <div id=ftCon> <div id=ftConw> <p id=lh> <a href=http://home.baidu.com>å\x85³äº\x8eç\x99¾åº¦</a>
 <a href=http://ir.baidu.com>About Baidu</a> </p> <p id=cp>&copy;2017&nbsp;Baidu&nbsp;<a href=http://www.baidu.com/duty/
>使ç\x94¨ç\x99¾åº¦å\x89\x8då¿\x85读</a>&nbsp; <a href=http://jianyi.baidu.com/ class=cp-feedback>æ\x84\x8fè§\x81å\x8
f\x8dé¦\x88</a>&nbsp;京ICPè¯\x81030173å\x8f·&nbsp; <img src=//www.baidu.com/img/gs.gif> </p> </div> </div> </div> </bo
dy> </html>\r\n'

In [7]: type(response.cookies)
Out[7]: requests.cookies.RequestsCookieJar

In [8]: response.cookies
Out[8]: <RequestsCookieJar[Cookie(version=0, name='BDORZ', value='27315', port=None, port_specified=False, domain='.baid
u.com', domain_specified=True, domain_initial_dot=True, path='/', path_specified=True, secure=False, expires=1541742952,
 discard=False, comment=None, comment_url=None, rest={}, rfc2109=False)]>

get请求

In [9]: response = requests.get('http://httpbin.org/get')

In [10]: response.text
Out[10]: '{\n  "args": {}, \n  "headers": {\n    "Accept": "*/*", \n    "Accept-Encoding": "gzip, deflate", \n    
"Connection": "close", \n    "Host": "httpbin.org", \n    "User-Agent": "python-requests/2.19.1"\n  }, \n  
"origin": "183.216.200.80", \n  "url": "http://httpbin.org/get"\n}\n'
# 添加参数
In [13]: response = requests.get('http://httpbin.org/get', params={'par': 'get'})

In [15]: print(response.text)
{
  "args": {
    "par": "get"
  },
  "headers": {
    "Accept": "*/*",
    "Accept-Encoding": "gzip, deflate",
    "Connection": "close",
    "Host": "httpbin.org",
    "User-Agent": "python-requests/2.19.1"
  },
  "origin": "183.216.200.80",
  "url": "http://httpbin.org/get?par=get"
}

post请求

In [11]: response = requests.post('http://httpbin.org/post', data={'hee': 'llo'})

In [12]: response.text
Out[12]: '{\n  "args": {}, \n  "data": "", \n  "files": {}, \n  "form": {\n    "hee": "llo"\n  }, \n  "headers": {\n
"Accept": "*/*", \n    "Accept-Encoding": "gzip, deflate", \n    "Connection": "close", \n    "Content-Length": "7", \n
 "Content-Type": "application/x-www-form-urlencoded", \n    "Host": "httpbin.org", \n    "User-Agent": "python-request
s/2.19.1"\n  }, \n  "json": null, \n  "origin": "183.216.200.80", \n  "url": "http://httpbin.org/post"\n}\n'

json解析

In [16]: response = requests.get('http://httpbin.org/get', params={'par': 'get'})

In [18]: response.json()
Out[18]:
{'args': {'par': 'get'},
 'headers': {'Accept': '*/*',
  'Accept-Encoding': 'gzip, deflate',
  'Connection': 'close',
  'Host': 'httpbin.org',
  'User-Agent': 'python-requests/2.19.1'},
 'origin': '183.216.200.80',
 'url': 'http://httpbin.org/get?par=get'}

In [19]: type(response.json())
Out[19]: dict

获取二进制

In [20]: response = requests.get('https://ss0.bdstatic.com/5aV1bjqh_Q23odCf/static/superman/img/logo_top_86d58ae1.png')

In [22]: fo = open(r'C:\Users\Contry\Desktop\logo.png', 'wb')

In [23]: fo.write(response.content)
Out[23]: 2910

In [24]: fo.close()
image.png

headers

In [25]: response = requests.get('https://www.zhihu.com/explore')

In [26]: response.text
Out[26]: '<html>\r\n<head><title>400 Bad Request</title></head>\r\n<body bgcolor="white">\r\n<center><h1>400 Bad Request
</h1></center>\r\n<hr><center>openresty</center>\r\n</body>\r\n</html>\r\n'
# 添加user-agent才能正常访问
In [27]: headers = {
    ...: 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.13
    ...: 2 Safari/537.36'
    ...: }

In [28]: response = requests.get('https://www.zhihu.com/explore', headers=headers)

In [29]: response.text
Out[29]: '<!DOCTYPE html>\n<html lang="zh-CN" dropEffect="none" class="no-js no-auth ">\n<head>\n<meta charset="utf-8" /
>\n\n<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />\n<meta name="renderer" content="webkit" />\n<meta
....

response

In [30]: response.status_code
Out[30]: 200

# 返回体的header
In [31]: response.headers
Out[31]: {'Date': 'Thu, 08 Nov 2018 06:19:48 GMT', 'Content-Type': 'text/html; charset=UTF-8', 'Transfer-Encoding': 'chu
nked', 'Connection': 'keep-alive', 'Set-Cookie': 'tgw_l7_route=7139e401481ef2f46ce98b22af4f4bed;  conne
ct-src * wss:;", 'Expires': 'Fri, 02 Jan 2000 00:00:00 GMT', 'Pragma': 'no-cache', 'Cache-Control': 'private, no-store,
max-age=0, no-cache, must-revalidate, post-check=0, pre-check=0', 'X-Za-Experiment': 'default:None,ge3:ge3_9,ge2:ge2_1,n
webQAGrowth:experiment,is_office:false,nweb_growth_people:default,app_store_rate_dialog:close,nweb_search_suggest:defaul
t,search_advert_position:1,live_store:ls_a2_b2_c1_f2,nweb_search:nweb_search_heifetz,search_hybrid_tabs:pin-3#album-7,ne
w_live_feed_mediacard:new,hybrid_zhmore_video:yes,ad_r:a,growth_search:s2,qaweb_related_readings_content_control:close,a
ndroid_pass_through_push:all,new_sign_bg:new,new_mobile_app_header:true,np:1,android_search_tab_style:search_tab_style_b
,android_db_recommend_action:open,android_db_feed_hash_tag_style:button,mobile_feed_guide:block,is_new_noti_panel:no', '
X-Frame-Options': 'DENY', 'X-Backend-Server': 'zhihu-web.zhihu-web-explore.296db8a5---10.70.0.47:31006[10.70.0.47:31006]
', 'Content-Encoding': 'gzip', 'Server': 'ZWS'}

# 返回的cookie
In [32]: response.cookies
Out[32]: <RequestsCookieJar[Cookie(version=0, name='cap_id', value='"ZmRhM2FhNmFjMGExNDE3NmI5MTM4ODA2MTQ2YjAwYWM=|154165
7987|296ac858ffb5a9a1eb4b8efb09b3b7fe66223216"', port=None, port_specified=False, domain='.zhihu.com',  Cookie(version=0, 
name='q_c1', value='c2ee66d752e344068c9ba17085a51646|1541657987000|1541657987000
', port=None, port_specified=False, domain='.zhihu.com', domain_specified=True, domain_initial_dot=False, path='/', path
cure=False, expires=None, discard=True, comment=None, comment_url=None, rest={}, rfc2109=False), Cookie(version=0, name=
'tgw_l7_route', value='7139e401481ef2f46ce98b22af4f4bed', port=None, port_specified=False, domain='www.zhihu.com', domai
n_specified=False, domain_initial_dot=False, path='/', path_specified=True, secure=False, expires=1541658887, discard=Fa
lse, comment=None, comment_url=None, rest={}, rfc2109=False)]>

# 请求体的url
In [33]: response.request.headers
Out[33]: {'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.13
2 Safari/537.36', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive'}

# 请求的url
In [34]: response.url
Out[34]: 'https://www.zhihu.com/explore'

In [35]: response.history
Out[35]: []

文件上传

# rb方式打开文件
In [49]: file = {
    ...: 'file': open(r'C:\Users\Contry\Desktop\logo.png','rb')
    ...: }

In [50]: response = requests.post('http://httpbin.org/post', files=file)

In [51]: print(response.text)
{
  "args": {},
  "data": "",
  "files": {
    "file": "data:application/octet-stream;base64,iVBORw0KGgoAAAANSUhEUgAAAHUAAAAmCAYAAAD6HtTlAAAAGXRFWHRTb2Z0d2FyZQBBZ
9iZSBJbWFnZVJlYWR5ccllPAAAA2hpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTe
5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNS1jMDE0IDc5LjE1MTQ4M
wgMjAxMy8wMy8xMy0xMjowO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EUykKtFwthq583ykk
mI85LQIqzahWoICmLng/qccw1utEwX9gV4gbWQ7frjvmzM0kUu4ycCfmxVQMUEv5YHjyNz1P6GMJAPhc7p5UGgPFpSi0Xd/3Ry2W844aZ6mrmvifAD84ExW
WViG31ZTZxV6SFDHUCFSEM5iGVe9Cv+tPtAkpxLDbugd9XxdBZVGJm15NiZBfEuxM2eOxfDQHFqp0f7R33OO4o4TbCX/VE6Bnh7w/OrBFWQKOMh0CcbhKHv
0lrvW55RHcUFSXsjUSyxB/dxtETjd4kxGY7TmI+6wB9mDCLHUiNEbF/KjtPwEGAK+qtuUz8vCNAAAAAElFTkSuQmCC"
  },
  "form": {},
  "headers": {
    "Accept": "*/*",
    "Accept-Encoding": "gzip, deflate",
    "Connection": "close",
    "Content-Length": "3054",
    "Content-Type": "multipart/form-data; boundary=a167b9b5c69d63ce01ff3b71cd93ea06",
    "Host": "httpbin.org",
    "User-Agent": "python-requests/2.19.1"
  },
  "json": null,
  "origin": "183.216.200.80",
  "url": "http://httpbin.org/post"
}

cookie

In [59]: for k,v in response.cookies.items():
    ...:     print('{}={}\n'.format(k,v))
    ...:
_xsrf=hjoVIJFH7KrrsbiEIuKEhPwyHR16sajD

tgw_l7_route=8605c5a961285724a313ad9c1bbbc186

Session

# 创建一个Sesson对象,相当于一个浏览器
In [68]: s = requests.Session()

In [69]: s.get('http://httpbin.org/cookies/set/my/world1998')
Out[69]: <Response [200]>

In [72]: s.get('http://httpbin.org/cookies').text
Out[72]: '{\n  "cookies": {\n    "my": "world1998"\n  }\n}\n'

证书验证

# 本来12306会报错的,现在不报错了
In [76]: response = requests.get('https://www.12306.cn')

# 关闭证书验证会有警告
In [77]: response = requests.get('https://www.12306.cn', verify=False)
C:\My Program Files\Anaconda3\lib\site-packages\urllib3\connectionpool.py:857: InsecureRequestWarning: Unverified HT
request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/l
t/advanced-usage.html#ssl-warnings
  InsecureRequestWarning)
C:\My Program Files\Anaconda3\lib\site-packages\urllib3\connectionpool.py:857: InsecureRequestWarning: Unverified HT
request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/l
t/advanced-usage.html#ssl-warnings
  InsecureRequestWarning)

In [78]: response.status_code
Out[78]: 200

# 使用urllib3的disable_warnings()就不会显示警告信息
In [80]: import urllib3

In [81]: urllib3.disable_warnings()

In [82]: response = requests.get('https://www.12306.cn', verify=False)

# 可以使用本地证书
In [83]: response = requests.get('https://www.12306.cn', cert=('/path/...', '/path/...))

代理设置

In [1]: import requests
# 有密码的话 'http' : 'http://username:password@ip:port'
In [2]: proxies = {
   ...: 'http': 'http://**.**.**.90:8888',
   ...: 'https': 'https://**.**.**.90:8888'
   ...: }

In [7]: response = requests.get('http://httpbin.org/get', proxies=proxies)

In [8]: response.text
Out[8]: '{\n  "args": {}, \n  "headers": {\n    "Accept": "*/*", \n    "Accept-Encoding": "gzip, deflate", \n    "Connec
tion": "close", \n    "Host": "httpbin.org", \n    "User-Agent": "python-requests/2.19.1"\n  }, \n  "origin": "**.**.**.90", \n  "url": "http://httpbin.org/get"\n}\n'

# 使用socket代理, 需要安装
pip install requests[socks]
proxies = {
'http': 'socks5://**.**.**.90:8888',
'https': 'socks5://**.**.**.90:8888'
}

超时设置

requests.get(url, timeout=1)
没有返回会抛出异常

认证设置

有些网站需要登入才能查看
request.get(url, auto=('user', 'passwd'))

异常处理

from request.exceptions import ReadTimeout, HTTPError,   RequestException

参考文献:http://www.python-requests.org/en/master/

©著作权归作者所有,转载或内容合作请联系作者
  • 序言:七十年代末,一起剥皮案震惊了整个滨河市,随后出现的几起案子,更是在滨河造成了极大的恐慌,老刑警刘岩,带你破解...
    沈念sama阅读 212,383评论 6 493
  • 序言:滨河连续发生了三起死亡事件,死亡现场离奇诡异,居然都是意外死亡,警方通过查阅死者的电脑和手机,发现死者居然都...
    沈念sama阅读 90,522评论 3 385
  • 文/潘晓璐 我一进店门,熙熙楼的掌柜王于贵愁眉苦脸地迎上来,“玉大人,你说我怎么就摊上这事。” “怎么了?”我有些...
    开封第一讲书人阅读 157,852评论 0 348
  • 文/不坏的土叔 我叫张陵,是天一观的道长。 经常有香客问我,道长,这世上最难降的妖魔是什么? 我笑而不...
    开封第一讲书人阅读 56,621评论 1 284
  • 正文 为了忘掉前任,我火速办了婚礼,结果婚礼上,老公的妹妹穿的比我还像新娘。我一直安慰自己,他们只是感情好,可当我...
    茶点故事阅读 65,741评论 6 386
  • 文/花漫 我一把揭开白布。 她就那样静静地躺着,像睡着了一般。 火红的嫁衣衬着肌肤如雪。 梳的纹丝不乱的头发上,一...
    开封第一讲书人阅读 49,929评论 1 290
  • 那天,我揣着相机与录音,去河边找鬼。 笑死,一个胖子当着我的面吹牛,可吹牛的内容都是我干的。 我是一名探鬼主播,决...
    沈念sama阅读 39,076评论 3 410
  • 文/苍兰香墨 我猛地睁开眼,长吁一口气:“原来是场噩梦啊……” “哼!你这毒妇竟也来了?” 一声冷哼从身侧响起,我...
    开封第一讲书人阅读 37,803评论 0 268
  • 序言:老挝万荣一对情侣失踪,失踪者是张志新(化名)和其女友刘颖,没想到半个月后,有当地人在树林里发现了一具尸体,经...
    沈念sama阅读 44,265评论 1 303
  • 正文 独居荒郊野岭守林人离奇死亡,尸身上长有42处带血的脓包…… 初始之章·张勋 以下内容为张勋视角 年9月15日...
    茶点故事阅读 36,582评论 2 327
  • 正文 我和宋清朗相恋三年,在试婚纱的时候发现自己被绿了。 大学时的朋友给我发了我未婚夫和他白月光在一起吃饭的照片。...
    茶点故事阅读 38,716评论 1 341
  • 序言:一个原本活蹦乱跳的男人离奇死亡,死状恐怖,灵堂内的尸体忽然破棺而出,到底是诈尸还是另有隐情,我是刑警宁泽,带...
    沈念sama阅读 34,395评论 4 333
  • 正文 年R本政府宣布,位于F岛的核电站,受9级特大地震影响,放射性物质发生泄漏。R本人自食恶果不足惜,却给世界环境...
    茶点故事阅读 40,039评论 3 316
  • 文/蒙蒙 一、第九天 我趴在偏房一处隐蔽的房顶上张望。 院中可真热闹,春花似锦、人声如沸。这庄子的主人今日做“春日...
    开封第一讲书人阅读 30,798评论 0 21
  • 文/苍兰香墨 我抬头看了看天上的太阳。三九已至,却和暖如春,着一层夹袄步出监牢的瞬间,已是汗流浃背。 一阵脚步声响...
    开封第一讲书人阅读 32,027评论 1 266
  • 我被黑心中介骗来泰国打工, 没想到刚下飞机就差点儿被人妖公主榨干…… 1. 我叫王不留,地道东北人。 一个月前我还...
    沈念sama阅读 46,488评论 2 361
  • 正文 我出身青楼,却偏偏与公主长得像,于是被迫代替她去往敌国和亲。 传闻我的和亲对象是个残疾皇子,可洞房花烛夜当晚...
    茶点故事阅读 43,612评论 2 350

推荐阅读更多精彩内容

  • Spring Cloud为开发人员提供了快速构建分布式系统中一些常见模式的工具(例如配置管理,服务发现,断路器,智...
    卡卡罗2017阅读 134,637评论 18 139
  • 上一篇:8.Urllib库基本使用下一篇:10.正则表达式基础 requests是python实现的最简单易用的H...
    在努力中阅读 3,337评论 2 11
  • 目录Cookie机制什么是CookieCookie的不可跨域名性Unicode编码:保存中文BASE64编码:保存...
    Tomatoro阅读 16,935评论 7 186
  • requests引子 概念:requests是一个很实用的Python HTTP客户端库,我们在写爬虫的时候经常会...
    裴general阅读 1,479评论 0 2
  • 来自:日本著名心理学家桦旦纯,主要研究人的性格特征,微表情行为,心理动机等相关内容 书名:《高情商沟通术》 1.物...
    周小萌爱跳舞阅读 983评论 0 0