Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!xlned.com!feeder3.xlned.com!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!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.055 X-Spam-Evidence: '*H*': 0.89; '*S*': 0.00; 'json': 0.07; 'subject:script': 0.09; 'url:github': 0.09; 'api': 0.11; 'cc:addr :python-list': 0.11; 'suggest?': 0.16; 'wrote:': 0.18; 'looked': 0.18; 'thu,': 0.19; 'putting': 0.22; 'cc:addr:python.org': 0.22; 'file.': 0.24; 'cc:2**0': 0.24; 'script': 0.25; 'header:In-Reply- To:1': 0.27; 'wondering': 0.29; 'am,': 0.29; 'message- id:@mail.gmail.com': 0.30; 'url:mailman': 0.30; 'sep': 0.31; 'txt': 0.31; "user's": 0.31; 'subject:all': 0.32; 'url:python': 0.33; 'screen': 0.34; 'problem': 0.35; 'subject:with': 0.35; 'received:google.com': 0.35; 'there': 0.35; 'module.': 0.36; 'url:listinfo': 0.36; 'url:org': 0.36; 'list': 0.37; 'displays': 0.38; 'bill': 0.39; 'url:mail': 0.40; 'simple': 0.61; 'youtube': 0.65; '26,': 0.68; 'url:youtube': 0.71; '(none': 0.84; "it'd": 0.84; 'joel': 0.91; '2013': 0.98 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 :cc:content-type; bh=YQotSkp3rF9VIdtObvzk1+CjAyvmgELKxD5tU61ubwI=; b=QrDlAVRwlF7+RJcgA+v5pxe2KdtopmN+I8huwFXjD7d6yJMBweA3RYK2EW14qfp9su gqCJXNmdPN3NWeDOAkIvwSYefBZUVSGwRT1K7z3+oGXqj6yktnxj9zWixurYwLGgWJ+i AaNwLWMe7JPUawqtujKUyHj1wjRlcJO1NOfyYCaAqLkv3Ync5hE7Rp0/dFaLfE95vA8L vsWkyeJ9hoAawT7GxyASPVRNHM8GU721NfjNpj4j/omDxIJG6T+qpFfWBW+awMZCz8kj 1oEGaahG+t3v+2eiNA1IZLOE8rexIVIjvFdYJUF4sqX5hF4ug6ry5B8EgMJeenCIg320 IL4A== MIME-Version: 1.0 X-Received: by 10.220.145.75 with SMTP id c11mr1122400vcv.30.1380208872488; Thu, 26 Sep 2013 08:21:12 -0700 (PDT) In-Reply-To: References: Date: Thu, 26 Sep 2013 11:21:12 -0400 Subject: Re: Download all youtube favorites with youtube-dl script From: Joel Goldstick To: Bill Content-Type: multipart/alternative; boundary=047d7b3439708f85be04e74aebc4 Cc: "python-list@python.org" 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: 75 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1380208880 news.xs4all.nl 15970 [2001:888:2000:d::a6]:40357 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:54834 --047d7b3439708f85be04e74aebc4 Content-Type: text/plain; charset=UTF-8 On Thu, Sep 26, 2013 at 11:13 AM, Bill wrote: > I have been using the script youtube-dl http://rg3.github.io/youtube-**dl/ > > And I was wondering if there is a way to download all of a user's > favorites or uploads. > > The script has a functionality to download all videos in a txt file. So if > there is a way using the youtube API or JSON (none of which I am familiar > with) to bring up a list of all these videos then it'd be a simple case > putting these urls into a file. > > The problem is youtube displays favorites or user uploads in pages or > infinite scroll. So it is difficult to access them by the BeautifulSoup > module. > > > What do you suggest? > -- > https://mail.python.org/**mailman/listinfo/python-list > Have you looked at the youtube API? That would be better than screen scraping. https://developers.google.com/youtube/getting_started -- Joel Goldstick http://joelgoldstick.com --047d7b3439708f85be04e74aebc4 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable



On Thu, Sep 26, 2013 at 11:13 AM, Bill <Bill@bill.com> w= rote:
I have been using the scr= ipt youtube-dl http://rg3.github.io/youtube-dl/

And I was wondering if there is a way to download all of a user's favor= ites or uploads.

The script has a functionality to download all videos in a txt file. So if = there is a way using the youtube API or JSON (none of which I am familiar w= ith) to bring up a list of all these videos then it'd be a simple case = putting these urls into a file.

The problem is youtube displays favorites or user uploads in pages or infin= ite scroll. So it is difficult to access them by the BeautifulSoup module.<= br>

What do you suggest?
--
https://mail.python.org/mailman/listinfo/python-list

Have = you looked at the youtube API?=C2=A0 That would be better than screen scrap= ing.=C2=A0 https://developers.google.com/youtube/getting_started


--
--047d7b3439708f85be04e74aebc4--