diff --git a/9_The_chase.ipynb b/9_The_chase.ipynb index d1d3a48674e3106798a3038344dcfbfba9d68fd5..84eafb914ce0a94f378985864d49e93bb0cf43c2 100644 --- a/9_The_chase.ipynb +++ b/9_The_chase.ipynb @@ -63,10 +63,32 @@ "response = requests.get(url)" ] }, + { + "cell_type": "code", + "execution_count": 3, + "metadata": {}, + "outputs": [], + "source": [ + "import pickle\n", + "#with open('response.pkl', 'wb') as fp:\n", + "# pickle.dump(response, fp)" + ] + }, { "cell_type": "code", "execution_count": 4, "metadata": {}, + "outputs": [], + "source": [ + "#del response\n", + "with open('response.pkl', 'rb') as fp:\n", + " response = pickle.load(fp)" + ] + }, + { + "cell_type": "code", + "execution_count": 5, + "metadata": {}, "outputs": [ { "data": { @@ -106,10 +128,8 @@ " '__weakref__',\n", " '_content',\n", " '_content_consumed',\n", - " '_next',\n", " 'apparent_encoding',\n", " 'close',\n", - " 'connection',\n", " 'content',\n", " 'cookies',\n", " 'elapsed',\n", @@ -133,7 +153,7 @@ " 'url']" ] }, - "execution_count": 4, + "execution_count": 5, "metadata": {}, "output_type": "execute_result" } @@ -144,7 +164,7 @@ }, { "cell_type": "code", - "execution_count": 5, + "execution_count": 6, "metadata": {}, "outputs": [ { @@ -153,7 +173,7 @@ "200" ] }, - "execution_count": 5, + "execution_count": 6, "metadata": {}, "output_type": "execute_result" } @@ -164,7 +184,7 @@ }, { "cell_type": "code", - "execution_count": 6, + "execution_count": 7, "metadata": { "collapsed": true }, @@ -175,16 +195,16 @@ }, { "cell_type": "code", - "execution_count": 7, + "execution_count": 9, "metadata": {}, "outputs": [ { "data": { "text/plain": [ - "{'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': '*'}" ] }, - "execution_count": 7, + "execution_count": 9, "metadata": {}, "output_type": "execute_result" }