Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!goblin2!goblin.stu.neva.ru!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.022 X-Spam-Evidence: '*H*': 0.96; '*S*': 0.00; 'subject:Python': 0.05; '21,': 0.07; 'username,': 0.07; 'subject:How': 0.09; 'python': 0.09; 'cc:addr:googlegroups.com': 0.09; 'sep': 0.09; 'cc:addr :python-list': 0.10; 'do,': 0.15; 'library': 0.15; 'received:74.125.82.44': 0.15; 'jerry': 0.16; 'soup': 0.16; 'subject:user': 0.16; 'wrote:': 0.17; 'thanks,': 0.18; '(or': 0.18; 'combination': 0.22; 'parse': 0.22; "user's": 0.22; 'posts': 0.23; 'cc:2**1': 0.24; 'cc:addr:python.org': 0.25; 'header:In- Reply-To:1': 0.25; 'am,': 0.27; 'in.': 0.27; 'message- id:@mail.gmail.com': 0.27; 'url:mailman': 0.29; "i'm": 0.29; 'fri,': 0.30; 'figure': 0.30; 'asking': 0.32; 'url:python': 0.32; 'could': 0.32; 'url:listinfo': 0.32; 'received:74.125.82': 0.33; 'impression': 0.33; 'received:google.com': 0.34; 'remote': 0.35; 'subject:?': 0.35; 'add': 0.36; 'but': 0.36; 'wanted': 0.36; 'received:74.125': 0.36; 'url:org': 0.36; 'cc:no real name:2**1': 0.36; 'thank': 0.36; 'ok,': 0.37; 'does': 0.37; 'previous': 0.37; 'far': 0.37; 'subject:: ': 0.38; 'skip:" 10': 0.40; 'header:Received:5': 0.40; 'url:mail': 0.40; 'your': 0.60; 'skip:u 10': 0.60; 'matter': 0.61; 'back': 0.62; 'solve': 0.62; 'details': 0.63; 'great': 0.64; 'sound': 0.65; 'programme': 0.69; 'avoid.': 0.84; 'doable': 0.84; 'protected.': 0.84; 'working,': 0.84; 'bob': 0.91; 'joel': 0.91; 'hill': 0.96 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=HAJBzoZBCZPgIStisoPGi5ySU1tRi2N78yb1m3UmYVM=; b=qfkHSOQ0SMxFnqoK7bWG0CgJ2IsQqX6SkpyMhBOUNNGvD/XKSDOCA9LZ2RsmMo5x5G OtBnJbaw9/JtmQjzwIzFyd/AKXl/zEhLSiEP+t0i6MF2gvY6Akci7k1BK5NycGNSR3Va r7BDMrdV30bIV+U6SlXExwdVQWD4GSBQhjrAXyvWfCIySan8H7tzD/zcBwCNLD88V5kO QBVXigfKvhHIeHEs2ZllnEyiW6bBIN5NAkXgQt0L0fq5XYZD23A0cn0+Lr/DZIRps0v1 vMlgme502Iq0XLyGW5PwTNXT//N6LVuLIgSx2OV251ABQKFosL2P9OrwC+MXXN3/7f3G dBPQ== MIME-Version: 1.0 In-Reply-To: <3de0aac0-d7f2-4990-9428-54c89b143b9a@googlegroups.com> References: <4382e132-4eb5-4733-9fed-535e704f2175@googlegroups.com> <3de0aac0-d7f2-4990-9428-54c89b143b9a@googlegroups.com> Date: Fri, 21 Sep 2012 10:15:26 -0400 Subject: Re: How to apply the user's HTML environment in a Python programme? From: Joel Goldstick To: BobAalsma Content-Type: text/plain; charset=UTF-8 Cc: python-list@python.org, comp.lang.python@googlegroups.com X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 41 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1348236929 news.xs4all.nl 6916 [2001:888:2000:d::a6]:43817 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:29639 On Fri, Sep 21, 2012 at 9:58 AM, BobAalsma wrote: > Op vrijdag 21 september 2012 15:36:11 UTC+2 schreef Jerry Hill het volgende: >> On Fri, Sep 21, 2012 at 9:31 AM, BobAalsma wrote: >> >> > Thanks, Joel, yes, but as far as I'm aware these would all require the Python programme to have the user's username and password (or "credentials"), which I wanted to avoid. >> >> >> >> No matter what you do, your web service is going to have to >> >> authenticate with the remote web site. The details of that >> >> authentication are going to vary with each remote web site you want to >> >> connect to. >> >> >> >> -- >> >> Jerry > > Hmm, from the previous posts I get the impression that I could best solve this by asking the user for the specific combination of username, password and URL + promising not to keep any of that... > > OK, that does sound doable - thank you all I recommend that you write your program to read pages that are not protected. Once you get that working, you can go back and figure out how you want to get the username/password from your 'friends' and add that in. Also look up Beautiful Soup (version 4) for a great library to parse the pages that you retrieve > > Bob > -- > http://mail.python.org/mailman/listinfo/python-list -- Joel Goldstick