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


Groups > comp.lang.python > #98627

Re: Using subprocess to capture a progress line

Path csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail
From Tim Johnson <tim@akwebsoft.com>
Newsgroups comp.lang.python
Subject Re: Using subprocess to capture a progress line
Date Tue, 10 Nov 2015 15:31:21 -0900
Organization AkWebsoft
Lines 32
Message-ID <mailman.233.1447201883.16136.python-list@python.org> (permalink)
References <20151110224756.GA1944@mail.akwebsoft.com> <CAPTjJmrhYG5xL_Kru8Jr7R=exvp6caooQ4U2HDJByvVaTsi=sA@mail.gmail.com> <20151110235102.GB1944@mail.akwebsoft.com>
Mime-Version 1.0
Content-Type text/plain; charset=us-ascii
X-Trace news.uni-berlin.de 7PYeK9TQbnOUbFzghAQA2QmYCNBw78cpXETd6qVeYeNA==
Return-Path <tim@akwebsoft.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.005
X-Spam-Evidence '*H*': 0.99; '*S*': 0.00; 'python,': 0.02; 'error:': 0.05; 'upgraded': 0.05; 'url:github': 0.09; 'wed,': 0.15; 'module).': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'sudo': 0.16; 'wrote:': 0.16; '>>>': 0.20; '2015': 0.20; 'suggested': 0.20; '(the': 0.22; 'am,': 0.23; 'tried': 0.24; 'import': 0.24; 'implemented': 0.24; 'tim': 0.24; 'written': 0.24; 'header:In-Reply-To:1': 0.24; 'install': 0.25; "i've": 0.25; 'header:User-Agent:1': 0.26; 'developers': 0.26; 'chris': 0.26; 'executing': 0.27; 'looks': 0.29; 'command-line': 0.29; 'code': 0.30; "i'd": 0.31; 'topic': 0.32; 'run': 0.33; 'nov': 0.35; '(and': 0.36; 'to:addr:python-list': 0.36; 'subject:: ': 0.37; 'johnson': 0.37; 'charset:us-ascii': 0.37; 'to:addr:python.org': 0.40; 'suitable': 0.61; 'afaics': 0.84; 'pip': 0.84; 'subject:Using': 0.84; 'url:master': 0.84; 'skip:y 40': 0.93
Mail-Followup-To python-list@python.org
Content-Disposition inline
In-Reply-To <20151110235102.GB1944@mail.akwebsoft.com>
User-Agent Mutt/1.5.21 (2010-09-15)
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.20+
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://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 <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Xref csiph.com comp.lang.python:98627

Show key headers only | View raw


* Tim Johnson <tim@akwebsoft.com> [151110 14:55]:
> * Chris Angelico <rosuav@gmail.com> [151110 14:35]:
> > On Wed, Nov 11, 2015 at 9:47 AM, Tim Johnson <tim@akwebsoft.com> wrote:
> > > I've written a command-line "wrapper" for youtube-dl, executing
> > is implemented in Python, you might find it easier to "pip install
> > youtube_dl" and work with the methods directly:
<<...> > 
> > >>> import youtube_dl
> > >>> youtube_dl.YoutubeDL().download(["m39ydsOPSww"])
> 
>   Frankly, I'd prefer - in the long run - to use youtube_dl (the
>   module).
> 
>   But, when I do as you have suggested (and have tried previously) I
>   get the following:
> 
>   youtube_dl.utils.DownloadError: ERROR: no suitable InfoExtractor
> 
    It looks as if the developers are constantly upgrading. I just
	upgraded youtube_dl

	sudo pip install --upgrade youtube_dl

	And ran the code which is provided under the topic 
	"EMBEDDING YOUTUBE-DL"
	at 
	https://github.com/rg3/youtube-dl/blob/master/README.md

	At I got a successful download, AFAICS
-- 
Tim 
http://www.akwebsoft.com, http://www.tj49.com

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


Thread

Re: Using subprocess to capture a progress line Tim Johnson <tim@akwebsoft.com> - 2015-11-10 15:31 -0900

csiph-web