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


Groups > comp.lang.python > #29630

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

Newsgroups comp.lang.python
Date 2012-09-21 06:31 -0700
References <4382e132-4eb5-4733-9fed-535e704f2175@googlegroups.com> <mailman.1006.1348233763.27098.python-list@python.org>
Subject Re: How to apply the user's HTML environment in a Python programme?
From BobAalsma <overhaalsgang_24_bob@me.com>
Message-ID <mailman.1007.1348234300.27098.python-list@python.org> (permalink)

Show all headers | View raw


Op vrijdag 21 september 2012 15:23:14 UTC+2 schreef Joel Goldstick het volgende:
> On Fri, Sep 21, 2012 at 8:57 AM, BobAalsma wrote:
> 
> > I'd like to write a programme that will be offered as a web service (Django), in which the user will point to a specific URL and the programme will be used to read the text of that URL.
> 
> >
> 
> > This text can be behind a username/password, but for several reasons, I don't want to know those.
> 
> >
> 
> > So I would like to set up a situation where the user logs in (if/when appropriate), points out the URL to my programme and my programme would then be able to read that particular text.
> 
> >
> 
> > I'm aware this may sound fishy. It should not be: I want the user to be fully aware and in control of this process.
> 
> >
> 
> > Any thoughts on how to approach this?
> 
> 
> 
> There are several python modules to get web pages.  urllib, urllib2
> 
> and another called requests.
> 
> (http://kennethreitz.com/requests-python-http-module.html)  Check
> 
> those out
> 
> >
> 
> > Best regards,
> 
> > Bob
> 
> > --
> 
> > http://mail.python.org/mailman/listinfo/python-list
> 
> 
> 
> 
> 
> 
> 
> -- 
> 
> Joel Goldstick

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.

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