Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #98621
| Path | csiph.com!au2pb.net!feeder.erje.net!1.eu.feeder.erje.net!newsfeed.freenet.ag!newsfeed.kamp.net!newsfeed.kamp.net!fu-berlin.de!uni-berlin.de!not-for-mail |
|---|---|
| From | Chris Angelico <rosuav@gmail.com> |
| Newsgroups | comp.lang.python |
| Subject | Re: Using subprocess to capture a progress line |
| Date | Wed, 11 Nov 2015 10:28:26 +1100 |
| Lines | 21 |
| Message-ID | <mailman.227.1447198109.16136.python-list@python.org> (permalink) |
| References | <20151110224756.GA1944@mail.akwebsoft.com> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=UTF-8 |
| X-Trace | news.uni-berlin.de CBF6ztKNcwxKBV2Qw4dzJAd3RdLrzHuoGpE7ZZsr7dsQ== |
| Return-Path | <rosuav@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.010 |
| X-Spam-Evidence | '*H*': 0.98; '*S*': 0.00; 'python,': 0.02; 'received:209.85.223': 0.03; 'finished.': 0.07; 'wed,': 0.15; 'buffering': 0.16; 'carriage': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'wrote:': 0.16; '>>>': 0.20; '2015': 0.20; 'am,': 0.23; '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; 'message-id:@mail.gmail.com': 0.27; 'executing': 0.27; 'command-line': 0.29; 'that.': 0.30; 'downloading': 0.33; 'received:google.com': 0.35; 'i.e.': 0.35; 'nov': 0.35; 'problem.': 0.35; 'but': 0.36; 'should': 0.36; 'received:209.85': 0.36; 'possible': 0.36; 'to:addr:python-list': 0.36; 'subject:: ': 0.37; 'johnson': 0.37; 'progress': 0.38; 'received:209': 0.38; 'reports': 0.38; 'skip:- 60': 0.39; 'to:addr:python.org': 0.40; 'times': 0.63; 'numerous': 0.66; 'sounds': 0.76; 'chrisa': 0.84; 'subject:Using': 0.84; 'skip:y 40': 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; bh=4NitS/RcLEdsywQb7CCh4geR7QNZEt51rQXhf0NZBhY=; b=irT+K36MWE7VFBLksIpbCHYhcNc9fSbZVJrsurozz/tpF8w4fnTbdQk6ZN8ItUv7z2 suxWgRz5vmZowuK2XffsUeBVwN3BvZbd38bySGwdsYQkszfvHGRjH0HXxUQgONL7zoyy Nwqns5S5apoPzhrq5NrpK8pID5gTRsAsiVqjdJnEWPO9Tq0pHFib7VeftwZnvAXZ7iBL gOVi/ZlPwQLeLJJDPfnxzH3qZuTY1hCCw+BGxwi4leeplvVRfAJzd+YV1lhlIB1WnTtJ UxxWKjB9YijEAEhjoE39qX/tpQtNh/DuzBhNJMjxvmNlmT0kbrKYn/wsXgF6nI9oJHzs haiw== |
| X-Received | by 10.107.10.233 with SMTP id 102mr6449490iok.31.1447198107028; Tue, 10 Nov 2015 15:28:27 -0800 (PST) |
| In-Reply-To | <20151110224756.GA1944@mail.akwebsoft.com> |
| 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:98621 |
Show key headers only | View raw
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 > youtube-dl as a subprocess. > > ------------------------------------------------------------------ > youtube-dl reports download progress on one line. I.E. the line is > overwritten numerous times with no carriage return until the > downloading is finished. > ------------------------------------------------------------------ > Sounds to me like a possible buffering problem. But since youtube-dl 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"]) Should be possible to manipulate around the outside of that. ChrisA
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: Using subprocess to capture a progress line Chris Angelico <rosuav@gmail.com> - 2015-11-11 10:28 +1100
csiph-web