Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > General Computer Discussion > Software > Python http authentication

Thread Tools

Python http authentication

Vort3x Vort3x is offline
Junior Member
Join Date: Feb 2011
Posts: 4
I am trying to log into a site so I can scrape it, but cant seem to get the login working. I have this so far, but I dont know what url/uri needs to be given, nor how to find it.

auth_handler = urllib.request.HTTPBasicAuthHandler()
opener = urllib.request.build_opener(auth_handler)
# ...and install it globally so it can be used with urlopen.
Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
python: HTTP connections through a proxy server requiring authentication sajuptpm Python 3 01-29-2013 06:50 AM
Send Basic HTTP authentication credential in the first HTTP request Nacho Nachev ASP .Net Web Services 2 09-05-2012 08:49 PM
HTTP SOAP/HTTP GET/HTTP POST milan_9211 Software 0 01-10-2011 02:10 PM
HTTP basic authentication with form-based authentication Max Python 2 08-08-2008 06:16 PM
Python HTTP digest authentication woes... john Python 2 08-08-2005 07:29 AM