How to login to a website using Python 3.x?

Chris “Kwpolska” Warrick kwpolska at gmail.com
Wed Sep 25 09:59:16 EDT 2013


On Tue, Sep 24, 2013 at 10:39 AM, Mark Lawrence <breamoreboy at yahoo.co.uk> wrote:
> On 24/09/2013 09:09, Osumo Clement wrote:
>>
>>   Hi. I am new to Python. I am making a script where logging in to a
>> website is the first step.. I am using Python 3.3 All of the help I have
>> seen online uses urllib2 which in Python 3 aint there. I will greatly
>> appreciate any help
>>
>
> urllib2 has been renamed in Python 3 see
> http://www.python.org/dev/peps/pep-3108/#urllib-package

Note that, for sanity, you should use <http://python-requests.org/> (a
third-party package) instead.

-- 
Chris “Kwpolska” Warrick <http://kwpolska.tk>
PGP: 5EAAEA16
stop html mail | always bottom-post | only UTF-8 makes sense



More information about the Python-list mailing list