Skip to content

Instantly share code, notes, and snippets.

@Ikke
Created March 28, 2013 22:25
Show Gist options
  • Save Ikke/5267350 to your computer and use it in GitHub Desktop.
Save Ikke/5267350 to your computer and use it in GitHub Desktop.
a = requests.get('http://www.google.nl')
dir(a)
['__bool__', '__class__', '__delattr__', '__dict__', '__dir__', '__doc__', '__eq__', '__format__', '__ge__', '__getattribute__', '__gt__', '__hash__', '__init__', '__le__', '__lt__', '__module__', '__ne__', '__new__', '__nonzero__', '__qualname__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__sizeof__', '__str__', '__subclasshook__', '__weakref__', '_content', '_content_consumed', 'apparent_encoding', 'close', 'connection', 'content', 'cookies', 'encoding', 'headers', 'history', 'iter_content', 'iter_lines', 'json', 'links', 'ok', 'raise_for_status', 'raw', 'reason', 'request', 'status_code', 'text', 'url']
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment