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


Groups > comp.lang.python > #34330

Re: mini browser with python

Path csiph.com!usenet.pasdenom.info!news.albasani.net!newsfeed.freenet.ag!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <SRS0=S/jEDl=J7=inqvista.com=inq1ltd@eigbox.net>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.039
X-Spam-Evidence '*H*': 0.92; '*S*': 0.00; 'python': 0.09; 'sys.stdout': 0.09; 'cc:addr:python-list': 0.10; 'subject:python': 0.11; 'aug': 0.13; '2.7.3': 0.16; 'wrote:': 0.17; '>>>': 0.18; 'module': 0.19; 'import': 0.21; '&gt;&gt;&gt;': 0.22; 'wednesday,': 0.22; 'cc:2**0': 0.23; '&gt;': 0.23; 'cc:addr:python.org': 0.25; 'header:In-Reply-To:1': 0.25; 'header :User-Agent:1': 0.26; 'mini': 0.29; 'skip:& 10': 0.29; 'code': 0.31; 'december': 0.32; 'print': 0.32; 'skip:& 20': 0.33; 'skip:d 20': 0.34; 'same.': 0.35; 'url:org': 0.36; 'received:71': 0.36; 'subject:with': 0.36; 'charset:us-ascii': 0.36; 'url:rec-html40': 0.37; 'subject:: ': 0.38; 'received:10': 0.38; 'think': 0.40; 'skip:u 10': 0.60; 'more': 0.63; 'incorporate': 0.65; 'url:dtd': 0.81; 'browser.': 0.81; 'received:66.96.187': 0.84; 'url:strict': 0.91
X-Authority-Analysis v=2.0 cv=IJC1/HTG c=1 sm=1 a=76ABYSaCnowctWOjaTTU1Q==:17 a=spKFjZujUncA:10 a=2Cs5qbXtQ68A:10 a=OmMKortqy18A:10 a=tTExfe6FAAAA:8 a=7W0LKRrbYisA:10 a=O_po-GXTAAAA:8 a=xvlmAeNQlQWB4IRH_I8A:9 a=CjuIK1q_8ugA:10 a=SSmOFEACAAAA:8 a=VSbe7-B7rXskeM02WH8A:9 a=_W_S_7VecoQA:10 a=frz4AuCg-hUA:10 a=2E-4IePfyJKODe6R:21 a=+tcVrJynzLVJ9yqDAOBWjQ==:117
X-EN-OrigOutIP 10.20.18.9
X-EN-IMPSID XxLr1k0020BkY8i01xLrsh
From inq1ltd <inq1ltd@inqvista.com>
To David Hutto <dwightdhutto@gmail.com>
Subject Re: mini browser with python
Date Wed, 05 Dec 2012 16:19:33 -0500
User-Agent KMail/4.7.2 (Linux/2.6.37.6-24-desktop; KDE/4.7.2; i686; ; )
In-Reply-To <CA+vVgJURo5eeCO6bM5KxzH-Y08sROzy8UXDYq-Xk2m3rTQ+PQQ@mail.gmail.com>
References <7021409.kQlh19oPqF@mach-114-20> <CA+vVgJURo5eeCO6bM5KxzH-Y08sROzy8UXDYq-Xk2m3rTQ+PQQ@mail.gmail.com>
MIME-Version 1.0
Content-Type multipart/alternative; boundary="nextPart2889380.tkiAhy8znq"
Content-Transfer-Encoding 7Bit
X-EN-UserInfo ea107384e720a598200e9790e8ca8002:9d89a6cbd5a73a41b134431a25286195
X-EN-AuthUser inq1ltd@inqvista.com
Sender inq1ltd <inq1ltd@inqvista.com>
X-EN-OrigIP 71.127.143.15
X-EN-OrigHost pool-71-127-143-15.rcmdva.east.verizon.net
Cc "python-list@python.org" <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 <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.527.1354744330.29569.python-list@python.org> (permalink)
Lines 88
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1354744330 news.xs4all.nl 6979 [2001:888:2000:d::a6]:34737
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:34330

Show key headers only | View raw


[Multipart message — attachments visible in raw view] - view raw

On Wednesday, December 05, 2012 03:36:04 PM David 
Hutto wrote:
> I think this is the snippe that you want:
> 
> david@david-desktop:~$ python
> Python 2.7.3 (default, Aug  1 2012, 05:16:07)
> [GCC 4.6.3] on linux2
> Type "help", "copyright", "credits" or "license" for more 
information.
> 
> >>> import urlliib
> >>> url_to_read = 
urllib.urlopen('http://hitwebdevelopment.com')
> 
> >>> for line in url_to_read:
> ...     print line

Print line will send the html code to my
sys.stdout
I need to view the code as if
I were opening it with a browser.

Now, I set KWrite to read the code just
as Firefox does. 
I want to incorporate a mini browser 
in a module to do the same.

regards,
jimonlinux








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


Thread

Re: mini browser with python inq1ltd <inq1ltd@inqvista.com> - 2012-12-05 16:19 -0500

csiph-web