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?

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 2012-09-21 10:15 -0400
Subject Re: How to apply the user's HTML environment in a Python programme?
From Joel Goldstick <joel.goldstick@gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.1014.1348236929.27098.python-list@python.org> (permalink)

Show all headers | 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