Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #62310
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!xlned.com!feeder1.xlned.com!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <jljames@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.011 |
| X-Spam-Evidence | '*H*': 0.98; '*S*': 0.00; 'python.': 0.02; 'python,': 0.02; 'assuming': 0.09; 'logic': 0.09; 'subject:update': 0.09; ';o)': 0.16; 'folks,': 0.16; 'script,': 0.16; 'urllib': 0.16; 'sender:addr:gmail.com': 0.17; 'trying': 0.19; "aren't": 0.24; 'integrate': 0.24; 'manager.': 0.24; 'script.': 0.24; 'helpful': 0.24; 'script': 0.25; 'point': 0.28; 'points': 0.29; 'message- id:@mail.gmail.com': 0.30; "i'm": 0.30; 'code': 0.31; 'larry': 0.31; 'figure': 0.32; 'up.': 0.33; 'url:python': 0.33; 'could': 0.34; 'subject: (': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'thanks': 0.36; "i'll": 0.36; 'url:org': 0.36; 'behind': 0.37; 'starting': 0.37; 'implement': 0.38; 'requiring': 0.38; 'to:addr:python-list': 0.38; 'little': 0.38; 'sure': 0.39; 'to:addr:python.org': 0.39; 'how': 0.40; 'company': 0.60; 'new': 0.61; 'back': 0.62; 'our': 0.64; 'different': 0.65; 'promise': 0.68; 'stated': 0.69 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:date:message-id:subject:from:to:content-type; bh=i14uJlKAOYQFVj14rS7skQigzgTPt9pCsf8VxJMkI1g=; b=BXYIaaqKLYZdY4UaSgcc3WV1wu8i9Qc0JXcVxQrVSZVtONGKDtNhEf2X/7f40AMvYN IF6K5+vdIV1RWIQrxpmnYIeex3kVG+VZrQq5M1dBIvG/uPRut+AcqqgkXU968o8mZbgt 8AhsPjnNjzKadbFyOZDOI384SjlvNRZkVTjA96E0HYxNCDlwXGdrZaJE7zB6sRxi0Q3p +81SUVm4aZqrrCXiqWLUxfNBDqV3kSLWw6bymNqkt7E+KdiUMZoLnR7m54W0FyDxrHD1 HAtBVPQ9RCmmFB14bSTezryUlTe2ZLEtCeAHKbfMq1YRBXXoS7IIKIjEtT9pUwrXAVFW uxpA== |
| MIME-Version | 1.0 |
| X-Received | by 10.182.60.233 with SMTP id k9mr20892569obr.34.1387379803160; Wed, 18 Dec 2013 07:16:43 -0800 (PST) |
| Sender | jljames@gmail.com |
| Date | Wed, 18 Dec 2013 08:16:43 -0700 |
| X-Google-Sender-Auth | zw_30EDoTXiQRqpbFnOH71dRFAE |
| Subject | RE: Use of urllib (update) |
| From | Jeff James <jeff@jeffljames.com> |
| To | python-list@python.org |
| Content-Type | multipart/alternative; boundary=001a11c1e8b8560da704edd0886b |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.15 |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list/> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.4359.1387380282.18130.python-list@python.org> (permalink) |
| Lines | 41 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1387380282 news.xs4all.nl 2928 [2001:888:2000:d::a6]:34020 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:62310 |
Show key headers only | View raw
[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
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
RE: Use of urllib (update) Jeff James <jeff@jeffljames.com> - 2013-12-18 08:16 -0700
csiph-web