A growth of just reptile ~~

 

requests library

1 Installation

2. Use

3. Other methods

 

* Requests the get method

He returned and I use to go to build urllib.request:

  rq=urllib.request.Request(url[,data][,header])

  response=urllib.request.urlopen(rq)

  same

 

 

 

FIG using the following, using the time when the response returned than 200 (OK) on the abnormal HTTPError

 

 

Guess you like

Origin www.cnblogs.com/ningxinjie/p/10972817.html