Use of urllib (update)
Joel Goldstick
joel.goldstick at gmail.com
Wed Dec 18 10:45:25 EST 2013
On Wed, Dec 18, 2013 at 10:16 AM, Jeff James <jeff at jeffljames.com> wrote:
> Folks, I promise I'll get to the point where my questions aren't so basic,
> but I'm just now starting to get into Python. So I'm using the urllib
> script to check to make sure our company sites are up. As stated earlier,
> I have three sites which require some form of authentication in order to
> report back through the script that they are up and accessible. I was
> given this very helpful link by Larry covering some authentication code I
> could implement into the script.
> http://docs.python.org/2.7/howto/urllib2.html#id6 . I can make out the
> logic behind the script, but because I'm still new to Python, I'm having a
> hard time trying to figure out how to implement it into my existing urllib
> script. I'm assuming I need to integrate the code somehow for each url
> requiring authentication in that each site requires different creds.......
> Other than this little speedbump this script is pretty slick and has
> already scored a few points with my manager. ;o) Thanks
>
> --
> https://mail.python.org/mailman/listinfo/python-list
>
>
You might also want to check here:
http://www.python-requests.org/en/latest/user/authentication/
The requests module might be easier to understand.
--
Joel Goldstick
http://joelgoldstick.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20131218/8bb3b116/attachment.html>
More information about the Python-list
mailing list