Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.mixmin.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.001 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'python.': 0.02; 'url:sourceforge': 0.03; 'win32': 0.03; 'python': 0.09; 'c/c++': 0.09; 'compiler.': 0.09; 'libraries.': 0.09; 'project?': 0.09; 'sep': 0.09; 'throw': 0.09; ':-)': 0.13; '"classic"': 0.16; "(it's": 0.16; '[3],': 0.16; 'already,': 0.16; 'dll,': 0.16; 'dll.': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'language?': 0.16; 'ssh': 0.16; 'subject: \n ': 0.16; 'subject:these': 0.16; 'wed,': 0.16; 'wrote:': 0.17; "shouldn't": 0.17; 'admin': 0.18; 'question.': 0.20; 'written': 0.20; 'sort': 0.21; 'all,': 0.21; 'work.': 0.23; 'needed.': 0.23; 'linux': 0.24; 'header:In-Reply-To:1': 0.25; '[1]': 0.27; 'done.': 0.27; 'right.': 0.27; '2.6': 0.27; '[2]': 0.27; 'c++': 0.27; 'message-id:@mail.gmail.com': 0.27; 'subject:/': 0.28; 'actual': 0.28; 'run': 0.28; 'environment': 0.29; 'embed': 0.29; 'foss': 0.29; 'pile': 0.29; 'probably': 0.29; 'install': 0.29; 'maybe': 0.29; 'stuff': 0.30; 'could': 0.32; 'done,': 0.33; 'loading': 0.33; 'to:addr:python-list': 0.33; 'likely': 0.33; 'hi,': 0.33; 'another': 0.33; "can't": 0.34; 'program,': 0.34; 'received:google.com': 0.34; 'done': 0.34; 'pm,': 0.35; 'subject:?': 0.35; 'received:209.85': 0.35; 'something': 0.35; 'there': 0.35; 'really': 0.36; 'but': 0.36; 'url:org': 0.36; 'visual': 0.36; 'subject:with': 0.36; 'too': 0.36; 'problems': 0.36; 'possible': 0.37; 'level': 0.37; 'received:209': 0.37; 'subject:: ': 0.38; 'some': 0.38; 'to:addr:python.org': 0.39; 'build': 0.39; 'header:Received:5': 0.40; 'your': 0.60; 'most': 0.61; 'first': 0.61; 'kind': 0.61; 'free': 0.61; "you'll": 0.62; 'skip:n 10': 0.63; '26,': 0.65; 'lack': 0.71; 'low': 0.83; '2.8': 0.84; 'etc),': 0.84; 'webkit': 0.84; 'disposal': 0.91; 'kong': 0.91; 'try.': 0.91; 'insane': 0.93 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 :content-type:content-transfer-encoding; bh=lKUhtbAfDwWeuRX/3bB4JFmG8++srNTPQEFmCzAQ6ZI=; b=Tdy7ZW130Hq9RrlKb+5utwtorzCVVUDTlXD1BYUo01KjnF3TbdfEgUGRLOU7yokzRd TQOHw2PZdcQr6MYHPEXRj9VwTUvaTM+KcZSO58+njvcEb4altjh+DyAtU7IkMtEB/jo1 LozHriIVeilAxN5laLNZ2KdZC2+2H7vERIYHSPnQMQh96eKgLKT6Zp02g4lqbeOgPC6k 8udS9xpJUJLoRn0NPuxpeAmQY7eK8hP/DDp3c1B1dAtc6VgfN02zqgTUNFrqv7A308/F yeQaxH3ZslNr5PeReGcyEe0WJF6IR1JC733WawqskYwwC8m3QmyeKN3hllG6LclL2Til ls1Q== MIME-Version: 1.0 In-Reply-To: <8f1ed0ca-2dec-4462-964b-dc645ce0f081@googlegroups.com> References: <8f1ed0ca-2dec-4462-964b-dc645ce0f081@googlegroups.com> Date: Wed, 26 Sep 2012 20:05:57 +1000 Subject: Re: Looking for pointers/suggestion - how to make a webbrowser with these restriction? From: Chris Angelico To: python-list@python.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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: 44 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1348653960 news.xs4all.nl 6965 [2001:888:2000:d::a6]:49747 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:30181 On Wed, Sep 26, 2012 at 6:23 PM, Anthony Kong w= rote: > Hi, all, > > It is kind of a MacGyver question. I am just looking for some general sug= gestions/pointer. > > First let me first describe the development environment I am in: it is a = locked down WinXP PC with limited development tools and libraries. At my di= sposal I have python 2.6 , webkit 5.33 dll, wx 2.8 and probably a V8 dll. N= o visual studio or any C/C++ compiler. Do not have admin right. XP shouldn't stop you adding another program, even without admin rights. Maybe not a "classic" web browser, but something uber-thin like HTMLayout [1], though it's not FOSS (it's free for non-commercial use though). It's perhaps too thin for you, but start by loading that up and see how it goes. > So given these existing ingredients, is it possible to build a rudimentar= y web browser using python as a glue language? What will be the main chall= enge/bottleneck in this sort of project? In particular how can I hook up V8= and Webkit? > > I have some working experience with Win32 APIs, so you may throw some low= level stuff at me if needed. :-) Unless someone else has done it already, you're probably going to have to do some C++ work to embed V8 inside Python. It's not difficult but will need to be done. Webkit is another pile of work. By the time you're done, you'll most likely have written a whole web browser (minus the decades of experience in performance, security vulnerabilities, etc), and it'll probably have problems with your lack of admin rights. What are your actual requirements? What can't you do? There are some really REALLY insane possibilities you could try. Can you install PuTTY [2] and Xming [3], and ssh to a Linux box to run a web browser? (See, I told you it was insane.) ChrisA [1] http://www.terrainformatica.com/htmlayout/ [2] http://www.putty.org/ [3] http://sourceforge.net/projects/xming/