Path: csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!newsfeed.xs4all.nl!newsfeed3.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.004 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'python.': 0.02; 'subject:How': 0.09; 'httplib': 0.09; 'subject:python': 0.11; 'suggest': 0.11; '"python': 0.16; 'from:addr:torriem': 0.16; 'from:name:michael torrie': 0.16; 'python),': 0.16; 'wrote:': 0.17; "i'd": 0.22; 'example': 0.23; 'external': 0.24; 'command': 0.24; 'header:In-Reply-To:1': 0.25; 'header:User-Agent:1': 0.26; 'run': 0.28; 'subject: ?': 0.30; 'code': 0.31; 'google,': 0.32; 'to:addr:python-list': 0.33; 'pm,': 0.35; 'received:org': 0.36; 'but': 0.36; 'message-id:@gmail.com': 0.36; 'subject:: ': 0.38; 'some': 0.38; 'to:addr:python.org': 0.39; 'received:192': 0.39; 'received:192.168': 0.40; 'header:Received:5': 0.40; 'process."': 0.84 X-Virus-Scanned: amavisd-new at torriefamily.org Date: Wed, 09 Jan 2013 20:04:31 -0700 From: Michael Torrie User-Agent: Mozilla/5.0 (X11; Linux i686; rv:10.0.11) Gecko/20121115 Thunderbird/10.0.11 MIME-Version: 1.0 To: python-list@python.org Subject: Re: How to call wget by python ? References: <49ca3718-159f-40cd-96bf-983ddb96202b@googlegroups.com> In-Reply-To: <49ca3718-159f-40cd-96bf-983ddb96202b@googlegroups.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 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: 9 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1357787077 news.xs4all.nl 6937 [2001:888:2000:d::a6]:41322 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:36553 On 01/09/2013 07:11 PM, iMath wrote: > can you give me an example code ? No but I can suggest some alternative ideas, such as using httplib (built into python), or libcurl. Or if you have to use wget, you run it the same way you run any external command from python. If it were my I'd plunk a few search terms in google, such as "python run external process."