Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

youtube downloader

Name: Anonymous 2011-02-23 18:59

hey /prog/ i wanna download youtube movies with a bookmark, i know there's hundreds of sites out there that do this for you... but i want to automate part of the archiving so i feel a custom solution is in order. anyhoo

i installed apache2 and php5-curl (i know there's probably something better i could use) but i'm having some trouble finding the url of the .flv i need to download. i tried to find some example code, and i found something that works but it's OBFUSTCATED

http://deturl.com/download-video.js

does anyone know how to extract the url for the best quality FLV from a youtube url? if not, should we crack deturl's?

Name: Anonymous 2011-02-23 19:01

userscripts.org

Name: Anonymous 2011-02-23 19:24

There is a python script that will handle the downloading and saving for you http://rg3.github.com/youtube-dl/

Quickest route would be to write a bookmarklet that saves the URLs to a db to be passed it into a queue to be processed by youtube-dl later.

Name: Anonymous 2011-02-23 19:33

Name: Anonymous 2011-02-23 19:46

well, turns out it wasn't so hard...


wget -O test http://www.youtube.com/etc...
wget -O test.flv $(grep "fullscreen" test | tr '[:blank:]' '\n' | grep 'videoplayback?sparams' | cut -f 2 -d '"' | tr ',|' '\n ' | sort -n | tail -n 1 | cut -d ' ' -f 2 | tr -d '\\')

Name: Anonymous 2011-02-24 4:04

>>5
That is some nice piping.

Name: Anonymous 2011-02-24 7:13

>>6
>>5-san must be a plumber.

Name: Anonymous 2011-02-24 8:24

>>5
grep "fullscreen" test | tr '[:blank:]' '\n' | grep 'videoplayback?sparams' | cut -f 2 -d '"' | tr ',|' '\n ' | sort -n | tail -n 1 | cut -d ' ' -f 2 | tr -d '\\'
This isn't normal. But on UNIX it is.

UNIX
not even once.

Name: Anonymous 2011-02-24 9:26

>>5
This is how all my scrapers look. Hatters gonna hate.

Name: Anonymous 2011-02-24 9:26

    +--------------------------------------
    |     __ _   _  ____  _   _ _ _  _ *
         /  |  \| |/ __ \|  \| | | \/ /
        /   |   \ | |  | |   \ | |\  /
       /  . | |\  | |__| | |\  | |/  \
      /__/|_|_| \_|\____/|_| \_|_|_/\_\
     GENERAL PURPOSE MACHINE CONTROL SYSTEM |
     ---------------------------------------+

Name: Anonymous 2011-02-24 9:28

I use DUBSIX

Name: Anonymous 2011-02-25 12:20

http://repo.hu/projects/yget/
For all your non-FIOC needs

Name: Anonymous 2011-04-21 8:21

>>5
Doesn't work anymore. Looks like Google are being dicks again...

Don't change these.
Name: Email:
Entire Thread Thread List