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


Groups > comp.lang.python > #30605

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

Newsgroups comp.lang.python
Date 2012-10-01 07:19 -0700
References (1 earlier) <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> <mailman.1014.1348236929.27098.python-list@python.org>
Message-ID <4be2f2ac-c061-48d7-baf1-212e28f2f5ec@googlegroups.com> (permalink)
Subject Re: How to apply the user's HTML environment in a Python programme?
From BobAalsma <overhaalsgang_24_bob@me.com>

Show all headers | View raw


Op vrijdag 21 september 2012 16:15:30 UTC+2 schreef Joel Goldstick het volgende:
> 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

Joel, 

I've spent some time with this but don't really understand my results - some help would be appreciated.
I've built a tester that will read my LinkedIn home page, which is password protected.
When I use that method for reading other people's pages, the program is redirected to the LinkedIn login page.
When I paste the URLs for the other people's pages in any browser, the requested pages are shown.

Bob

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