Commit b454f2c0 authored by Alessandro CERIONI's avatar Alessandro CERIONI
Browse files

Updated chase with response read from file

parent f36870e1
......@@ -37,10 +37,26 @@
```
%% Cell type:code id: tags:
``` python
import pickle
#with open('response.pkl', 'wb') as fp:
# pickle.dump(response, fp)
```
%% Cell type:code id: tags:
``` python
#del response
with open('response.pkl', 'rb') as fp:
response = pickle.load(fp)
```
%% Cell type:code id: tags:
``` python
dir(response)
```
%%%% Output: execute_result
......@@ -77,14 +93,12 @@
'__str__',
'__subclasshook__',
'__weakref__',
'_content',
'_content_consumed',
'_next',
'apparent_encoding',
'close',
'connection',
'content',
'cookies',
'elapsed',
'encoding',
'headers',
......@@ -127,11 +141,11 @@
response.headers
```
%%%% Output: execute_result
{'Server': 'Apache', 'Access-Control-Allow-Origin': '*', 'Access-Control-Allow-Headers': 'Origin, X-Requested-With, Content-Type, Accept', 'Content-Type': 'application/json; subtype=geojson', 'Date': 'Wed, 15 May 2019 11:15:31 GMT', 'Connection': 'close', 'Transfer-Encoding': 'chunked', 'Access-Control-Allow-Methods': 'GET,POST,OPTIONS,DELETE,PUT'}
{'Connection': 'close', 'Access-Control-Allow-Methods': 'GET,POST,OPTIONS,DELETE,PUT', 'Access-Control-Allow-Headers': 'Origin, X-Requested-With, Content-Type, Accept', 'Content-Type': 'application/json; subtype=geojson', 'Date': 'Wed, 15 May 2019 11:58:56 GMT', 'Transfer-Encoding': 'chunked', 'Server': 'Apache', 'Access-Control-Allow-Origin': '*'}
%% Cell type:code id: tags:
``` python
response.text
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment