Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.freenet.ag!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!194.109.133.81.MISMATCH!newsfeed.xs4all.nl!newsfeed2.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.003 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'linux,': 0.07; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'python': 0.11; 'creates': 0.14; 'assignment?': 0.16; 'cwd': 0.16; 'index.html': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'simple.': 0.16; 'subject:screen': 0.16; 'wrote:': 0.18; 'header:User-Agent:1': 0.23; 'file.': 0.24; 'environment': 0.24; 'logging': 0.26; 'header:X-Complaints-To:1': 0.27; 'header:In- Reply-To:1': 0.27; "i'm": 0.30; 'pipe': 0.31; 'txt': 0.31; 'file': 0.32; 'screen': 0.34; "i'd": 0.34; 'subject:with': 0.35; "can't": 0.35; 'but': 0.35; 'window': 0.38; 'to:addr:python-list': 0.38; 'pm,': 0.38; 'help,': 0.39; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'called': 0.40; 'capture': 0.91; 'opens': 0.91 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Dave Angel Subject: Re: capture html screen with pexpect Date: Mon, 08 Jul 2013 07:17:38 -0400 References: <9118058.sBVIZWDW2o@mach-114-20> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: 174.32.174.33 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130623 Thunderbird/17.0.7 In-Reply-To: <9118058.sBVIZWDW2o@mach-114-20> 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: 28 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1373282277 news.xs4all.nl 15975 [2001:888:2000:d::a6]:34540 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:50143 On 07/07/2013 01:06 PM, inq1ltd wrote: > python help, > > I can log into a web site with pexpect but > what I want to do is pipe the opening window > to a file. > > Logging into the site opens the site window > but I can't get the window to a file. > > I can't use screen capture I need to get > pexpect to pipe it to a txt file. > What have you tried? What environment are you in? What's the exact assignment? I'd use wget, since I'm on Linux, and it's simple. davea@think2:~$ wget google.com creates a file called index.html in my cwd -- DaveA