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


Groups > comp.lang.python > #29639

Re: How to apply the user's HTML environment in a Python programme?

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 <joel.goldstick@gmail.com>
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> <mailman.1006.1348233763.27098.python-list@python.org> <b6b4f390-1f33-452d-9d78-5681f4557d96@googlegroups.com> <mailman.1008.1348234570.27098.python-list@python.org> <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 <joel.goldstick@gmail.com>
To BobAalsma <overhaalsgang_24_bob@me.com>
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 <python-list.python.org>
List-Unsubscribe <http://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 <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.1014.1348236929.27098.python-list@python.org> (permalink)
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

Show key headers only | View raw


On Fri, Sep 21, 2012 at 9:58 AM, BobAalsma <overhaalsgang_24_bob@me.com> 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

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

How to apply the user's HTML environment in a Python programme? BobAalsma <overhaalsgang_24_bob@me.com> - 2012-09-21 05:57 -0700
  Re: How to apply the user's HTML environment in a Python programme? Joel Goldstick <joel.goldstick@gmail.com> - 2012-09-21 09:22 -0400
    Re: How to apply the user's HTML environment in a Python programme? BobAalsma <overhaalsgang_24_bob@me.com> - 2012-09-21 06:31 -0700
      Re: How to apply the user's HTML environment in a Python programme? Jerry Hill <malaclypse2@gmail.com> - 2012-09-21 09:36 -0400
        Re: How to apply the user's HTML environment in a Python programme? BobAalsma <overhaalsgang_24_bob@me.com> - 2012-09-21 06:58 -0700
        Re: How to apply the user's HTML environment in a Python programme? Joel Goldstick <joel.goldstick@gmail.com> - 2012-09-21 10:15 -0400
          Re: How to apply the user's HTML environment in a Python programme? BobAalsma <overhaalsgang_24_bob@me.com> - 2012-10-01 07:19 -0700
            Re: How to apply the user's HTML environment in a Python programme? Ramchandra Apte <maniandram01@gmail.com> - 2012-10-02 09:17 -0700
        Re: How to apply the user's HTML environment in a Python programme? Peter Otten <__peter__@web.de> - 2012-09-21 16:33 +0200
      Re: How to apply the user's HTML environment in a Python programme? Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2012-09-21 16:09 -0400
        Re: How to apply the user's HTML environment in a Python programme? BobAalsma <overhaalsgang_24_bob@me.com> - 2012-09-22 04:38 -0700
          Re: How to apply the user's HTML environment in a Python programme? Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2012-09-22 11:18 -0400
        Re: How to apply the user's HTML environment in a Python programme? BobAalsma <overhaalsgang_24_bob@me.com> - 2012-09-22 04:38 -0700
    Re: How to apply the user's HTML environment in a Python programme? BobAalsma <overhaalsgang_24_bob@me.com> - 2012-09-21 06:31 -0700
  Re: How to apply the user's HTML environment in a Python programme? David Smith <davids@invtools.com> - 2012-09-21 11:28 -0400
    Re: How to apply the user's HTML environment in a Python programme? BobAalsma <overhaalsgang_24_bob@me.com> - 2012-09-22 04:34 -0700
    Re: How to apply the user's HTML environment in a Python programme? BobAalsma <overhaalsgang_24_bob@me.com> - 2012-09-22 04:34 -0700
  Re: How to apply the user's HTML environment in a Python programme? Thomas Jollans <t@jollybox.de> - 2012-09-22 14:01 +0200

csiph-web