Skip to main content

Urllib object wrapper

Project description

Installation

$ pip install goto

Usage

>>> import goto
>>> page = goto('рег.рф')
>>> page.code
200
>>> page.body[:25]
'\n\n\n<!DOCTYPE html PUBLIC '
>>> page.mime
'text/html'
>>> page.charset
'windows-1251'
>>> page.ubody[:25]
u'\n\n\n<!DOCTYPE html PUBLIC '
>>> page.headers['content-encoding']
'gzip'
>>> str(page.cookies)[:20]
'<cookielib.CookieJar'

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

goto-0.1.2.tar.gz (7.2 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page