Path: csiph.com!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!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.005 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'subject:Python': 0.05; '21,': 0.07; 'pages.': 0.07; 'urllib2': 0.07; 'subject:How': 0.09; 'python': 0.09; 'be:': 0.09; 'sep': 0.09; 'cc:addr:python-list': 0.10; 'received:mail-wi0-f178.google.com': 0.16; 'subject:user': 0.16; 'url.': 0.16; 'url:html)': 0.16; 'wrote:': 0.17; "i'd": 0.22; 'cc:2**0': 0.23; 'cc:no real name:2**0': 0.24; 'cc:addr:python.org': 0.25; 'header:In-Reply-To:1': 0.25; 'am,': 0.27; 'thoughts': 0.27; 'message-id:@mail.gmail.com': 0.27; 'this?': 0.28; 'received:209.85.212': 0.28; 'url:mailman': 0.29; 'points': 0.29; "i'm": 0.29; 'fri,': 0.30; 'point': 0.31; 'url:python': 0.32; 'url:listinfo': 0.32; 'another': 0.33; 'received:google.com': 0.34; 'text': 0.34; 'text.': 0.35; 'offered': 0.35; 'subject:?': 0.35; 'received:209.85': 0.35; 'there': 0.35; 'but': 0.36; 'url:org': 0.36; 'modules': 0.36; 'should': 0.36; 'received:209': 0.37; 'subject:: ': 0.38; 'behind': 0.38; 'several': 0.39; 'called': 0.39; 'where': 0.40; 'header:Received:5': 0.40; 'url:mail': 0.40; 'skip:u 10': 0.60; 'situation': 0.62; 'reasons,': 0.65; 'sound': 0.65; 'programme': 0.69; 'bob': 0.91; 'joel': 0.91 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=zvHGCUizlHK+JLqDGCLRRaDptmXz/lS4ciA7qGvxZiI=; b=mxHVGRaIcZL/v9uAqWwEuFirtSyqzjZjcDP0JQoNJC8tNe6ni8Hl7LJFxKzx3Bntv2 KHypMbM3JOzu93VVVRkpCX+SUnyLnYsVVMlbKE2FrZd3TBT/goBManGCcGjImxWkZbK5 hLhRKqpeulI1AJzjYMLoA0mCJPwlKVqZu5G/cwHnsE1rjjQs/68WRAijxe2PFkoe4f7O foO49VpAceJS6FsD4ZEJXPgiCb8iD9LwVqUjwHQP5Zp/R4YGe29YE93Rmv5C6xaI1P+M 71SmqyhPafcQkZNIB1rgSqeGjcPQq5SkuVOW6YDs2NA6xhDNxBGPau6FFrRT5uNOEDfl XYcg== MIME-Version: 1.0 In-Reply-To: <4382e132-4eb5-4733-9fed-535e704f2175@googlegroups.com> References: <4382e132-4eb5-4733-9fed-535e704f2175@googlegroups.com> Date: Fri, 21 Sep 2012 09:22:42 -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 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: 25 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1348233763 news.xs4all.nl 6914 [2001:888:2000:d::a6]:59712 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:29628 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