` for transmission and returns it.\n",
" | \n",
" | ----------------------------------------------------------------------\n",
" | Methods inherited from RequestHooksMixin:\n",
" | \n",
" | deregister_hook(self, event, hook)\n",
" | Deregister a previously registered hook.\n",
" | Returns True if the hook existed, False if not.\n",
" | \n",
" | register_hook(self, event, hook)\n",
" | Properly register a hook.\n",
" | \n",
" | ----------------------------------------------------------------------\n",
" | Data descriptors inherited from RequestHooksMixin:\n",
" | \n",
" | __dict__\n",
" | dictionary for instance variables (if defined)\n",
" | \n",
" | __weakref__\n",
" | list of weak references to the object (if defined)\n",
"\n"
]
}
],
"source": [
"help(requests.Request)"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"'{\\n \"@context\" : \"https://webarchiv.onb.ac.at/contexts/authenticate.jsonld\",\\n \"apikey\" : \"Zz2tQls7fuaocX2pjrfc2npojqbGwXL2\",\\n \"fingerprint\" : \"string\",\\n \"timestamp\" : 1509460573303,\\n \"t\" : \"a8882cf8db90c296fa6aaaf220e690ced2dc2469\",\\n \"version\" : \"0.1.0\"\\n}'"
]
},
"execution_count": 71,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"r.text"
]
},
{
"cell_type": "code",
"execution_count": 65,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"'\\n\\n400 Bad Request\\n\\nBad Request
\\nYour browser sent a request that this server could not understand.
\\n
\\n\\n'"
]
},
"execution_count": 65,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"r.request."
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": true
},
"outputs": [],
"source": []
}
],
"metadata": {
"kernelspec": {
"display_name": "python36",
"language": "python",
"name": "python36"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.6.2"
}
},
"nbformat": 4,
"nbformat_minor": 2
}