DIR : /home/kozerus/public_html/go/eidogo/tourney/info.py

/home/kozerus/public_html/go/eidogo/tourney

import requests

id="print1"
url="http://eidogo.com/backend/download.php?id={}".format(id)
req = requests.get(url)
 
req.encoding # returns 'utf-8'
req.status_code # returns 200
req.elapsed # returns datetime.timedelta(0, 1, 666890)
req.url # returns 'https://edureka.co/'
 
req.history 
# returns [<Response [301]>, <Response [301]>]
 
req.headers['Content-Type']
# returns 'text/html; charset=utf-8'

print( "req.encoding={}".format(req.encoding))
print( "req.status_code={}".format(req.status_code))
print( "req.elapsed={}".format(req.elapsed))
print( "req.url={}".format(req.url))
print( "req.history={}".format(req.history))
print( "req.headers={}".format(req.headers))
print( "================================\n" )
print( "req.text={}".format(req.text))
print( "req.content={}".format(req.content))
//


koh5_pano



Your browser does not support the HTML5 canvas element.


Drag mouse to navigate.

Navigation





17.Aug.2010, Martin Wengenmayer