Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.fsmpi.rwth-aachen.de!news-1.dfn.de!news.dfn.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Thomas Kandler Newsgroups: comp.lang.python Subject: Re: Download all youtube favorites with youtube-dl script Date: Fri, 27 Sep 2013 09:27:55 +0200 Lines: 25 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: individual.net ggLC0jXWMq4lMpFchW92Ugem/MFD4+j/CPCx8O+GMuHEXV/9rM Cancel-Lock: sha1:p6cLWGEo771l9PSW/ICEiavOcO4= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130827 Icedove/17.0.8 In-Reply-To: Xref: csiph.com comp.lang.python:54866 On 26.09.2013 17:13, 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? Regarding the uploads: most profiles do have something called 'Popular Uploads' or 'Recent Uploads'. Hover with the mouse over the link, a 'play'-Button appears, click it, copy the URL (should have a &list parameter), paste the URL in youtube-dl (or a txt-file) and it will fetch all videos. I am not sure if this works for favorites, too, but that's the way I do it.