Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: Dennis Lee Bieber Newsgroups: comp.lang.python Subject: Re: You gotta love a 2-line python solution Date: Tue, 03 May 2016 08:14:56 -0400 Organization: IISS Elusive Unicorn Lines: 31 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: news.uni-berlin.de v+4yoi+owlhsPLogk5XprAMpBvC9H8ycyIXYpVNU7P3w== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.004 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'fetch': 0.09; 'lookup': 0.09; 'message-id:@4ax.com': 0.09; 'path.': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'subject:python': 0.14; '2016': 0.16; 'received:80.91.229.3': 0.16; 'received:io': 0.16; 'received:plane.gmane.org': 0.16; 'received:psf.io': 0.16; 'copied': 0.18; 'duplicate': 0.18; 'url:home': 0.18; 'load': 0.20; 'first,': 0.20; 'machine': 0.21; 'suppose': 0.22; 'file.': 0.22; 'mon,': 0.24; 'header:X -Complaints-To:1': 0.26; 'referenced': 0.29; 'skip:/ 40': 0.29; 'subdirectory': 0.29; 'environment': 0.29; 'relative': 0.30; 'maybe': 0.33; 'point': 0.33; '-0700': 0.33; 'javascript.': 0.33; 'file': 0.34; 'done': 0.35; 'path': 0.35; 'saved': 0.35; 'item': 0.35; 'to:addr:python-list': 0.36; 'subject:: ': 0.37; 'received:org': 0.37; 'charset:us-ascii': 0.37; 'doing': 0.38; 'anything': 0.38; 'google': 0.39; 'subject:-': 0.39; 'to:addr:python.org': 0.40; 'where': 0.40; 'some': 0.40; 'your': 0.60; 'more': 0.63; 'situation': 0.67; 'obvious': 0.76; 'dennis': 0.91; 'received:108': 0.93 X-Injected-Via-Gmane: http://gmane.org/ X-Gmane-NNTP-Posting-Host: adsl-108-73-117-155.dsl.klmzmi.sbcglobal.net X-Newsreader: Forte Agent 6.00/32.1186 X-No-Archive: YES X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Mailman-Original-Message-ID: X-Mailman-Original-References: Xref: csiph.com comp.lang.python:108064 On Mon, 2 May 2016 20:27:45 -0700 (PDT), jfong@ms4.hinet.net declaimed the following: >I suppose the html is a much complex situation where more processes need to be done before it can be opened by a web browser:-) There's practically no HTML in that page -- just miles of Javascript. The one obvious item is: -=-=-=-=-=- -=-=-=-=-=- which is a RELATIVE path. If you copied the file to your machine and then load it in a browser, it will be looking for /forum/C53652DA8B67255A46256B72F0D65A40.cache.js to be on your machine in a subdirectory of where you saved the main file. You'd have to recreate most of the Google environment and fetch anything that was referenced through a relative path first, to get the content to display. Of course, you may find, for example, that the Javascript at some point is doing a database lookup -- and you'd maybe have to now duplicate the database... -- Wulfraed Dennis Lee Bieber AF6VN wlfraed@ix.netcom.com HTTP://wlfraed.home.netcom.com/