Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #62310 > unrolled thread

RE: Use of urllib (update)

Started byJeff James <jeff@jeffljames.com>
First post2013-12-18 08:16 -0700
Last post2013-12-18 08:16 -0700
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python


Contents

  RE: Use of urllib (update) Jeff James <jeff@jeffljames.com> - 2013-12-18 08:16 -0700

#62310 — RE: Use of urllib (update)

FromJeff James <jeff@jeffljames.com>
Date2013-12-18 08:16 -0700
SubjectRE: Use of urllib (update)
Message-ID<mailman.4359.1387380282.18130.python-list@python.org>

[Multipart message — attachments visible in raw view] — view raw

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

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web