Page 1 of 9 123 ... LastLast
Results 1 to 10 of 88

Thread: Download MySpace MP3

  1. #1
    Join Date
    Nov 2006
    Location
    Seoul
    Beans
    2

    Download MySpace MP3

    Hi,

    i don't have sound card at work so i usually download files to put in my MP3 player, but some MySpace's ones can't be downloaded directly so made a simple script for my own use to download it, if anyone is interested in here it is:

    Install ngrep if you don't have it:
    Code:
    sudo apt-get install ngrep
    Type this in a terminal:
    Code:
    packet=`gksudo 'ngrep -q -n 1 -W none /std_'` ; \
    ip=`echo $packet | awk -F '-> ' '{ print $2 }' | cut -d ' ' -f1` ; \
    path=`echo $packet | awk -F 'GET ' '{ print $2 }' | cut -d ' ' -f1` ; \
    firefox http://$ip$path
    Then just click the song you want using Firefox and you will be prompted to download it.

    If you want to launch it as a desktop icon just open a terminal and type:
    Code:
    cat > Desktop/MyGrab.desktop
    Select the code bellow:
    Code:
    [Desktop Entry]
    Encoding=UTF-8
    Version=1.0
    Type=Application
    Terminal=true
    Exec=sh -c "packet=`gksudo 'ngrep -q -n 1 -W none /std_'` ; ip=`echo $packet | awk -F '-> ' '{ print $2 }' | cut -d ' 
    ' -f1` ; path=`echo $packet | awk -F 'GET ' '{ print $2 }' | cut -d ' ' -f1` ; firefox http://$ip$path"
    Name=MyGrab
    Icon=/usr/share/pixmaps/gnome-vumeter.png
    Middle-click in the terminal and press Ctrl+D, then you have the MyGrab icon on your desktop, just launch it before clicking the song you want to download on MySpace.

    Camille.

  2. #2
    Join Date
    Sep 2007
    Beans
    1

    Re: Download MySpace MP3

    Alternatively, you can use http://www.myspacegrab.com/ to download myspace music.

  3. #3
    Join Date
    May 2008
    Beans
    518

    Re: Download MySpace MP3

    Didn't work for me, I had to adjust a bit. Here's my modified solution:

    Code:
    packet=`gksudo 'ngrep -q -n 1 -W none /std_'` ; \
    ip=`echo $packet | awk -F 'Host: ' '{ print $2 }' | cut -d '.' -f1-3` ; \
    path=`echo $packet | awk -F 'GET ' '{ print $2 }' | cut -d ' ' -f1` ; \
    firefox http://$ip$path
    dracayr

  4. #4
    Join Date
    Jul 2007
    Beans
    73
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Download MySpace MP3

    Hi, I've tried your scripts but none of them works for me......Can you help me?
    I write what you said in the terminal and then clicked in the music i want in the site and nothing happens......only passed a little time opens a firefox tab with this addressDo you know what I can do?

    thanks in advance

  5. #5
    Join Date
    Apr 2008
    Beans
    13
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: Download MySpace MP3

    I have made a Python script that will download and convert MySpace music. I have attached it to this post, and remember to make it executable before using it! Here is a quick usage guide:

    To install all requirements:
    Code:
    sudo ./dl_myspace_music.py -install
    To download the music from http://www.myspace.com/atlantafall and http://www.myspace.com/tokyokeys :
    Code:
    ./dl_myspace_music.py atlantafall tokyokeys
    Enjoy! I'm not sure how long before MySpace do things differently, but it works as of now.

    EDIT: Here is a pastie.org of the code: http://pastie.org/786253
    Attached Files Attached Files
    Last edited by timehAndGod; January 20th, 2010 at 11:08 PM.

  6. #6
    Join Date
    Jul 2007
    Beans
    73
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Download MySpace MP3

    not working for me...
    it detects the musics from the profile but gives an error:
    manuel@manuel-laptop:~$ ./dl-myspace-music.py jandek
    Profile jandek loaded.

    Loading tracks for jandek
    Found track Nancy Sings (26072257)
    Found track Moving Slow (26056945)
    Found track Pending Doom (26056947)
    Found track They Told Me I Was A Fool (26056950)

    Downloading 4 tracks
    Downloading Nancy Sings...
    Traceback (most recent call last):
    File "./dl-myspace-music.py", line 145, in <module>
    Popen( [ "rtmpdump", "-r", "rtmpe://" + track.getRtmpUrl(), "-o", track.title + ".flv" ], stdout = PIPE ).communicate()
    File "/usr/lib/python2.6/subprocess.py", line 621, in __init__
    errread, errwrite)
    File "/usr/lib/python2.6/subprocess.py", line 1126, in _execute_child
    raise child_exception
    OSError: [Errno 2] No such file or directory
    manuel@manuel-laptop:~$
    Is there any way to solve this?
    thnaks...

  7. #7
    Join Date
    Apr 2008
    Beans
    13
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: Download MySpace MP3

    Quote Originally Posted by Unkuiri View Post
    not working for me...
    it detects the musics from the profile but gives an error:

    Is there any way to solve this?
    thnaks...
    Have you tried the install flag first?
    Code:
    sudo ./dl-myspace-music.py -install
    This will install MPlayer, and build and compile rtmpdump ( http://rtmpdump.mplayerhq.hu/ )

  8. #8
    Join Date
    Jul 2007
    Beans
    73
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Download MySpace MP3

    I've done as you said and shows this:
    manuel@manuel-laptop:~$ sudo ./dl-myspace-music.py -install
    Installing MPlayer and Build-Essential...
    A ler as listas de pacotes... Pronto
    A construir árvore de dependências
    A ler a informação de estado... Pronto
    mplayer já está na versão mais recente.
    mplayer está definido para ser instalado manualmente.
    build-essential já está na versão mais recente.
    build-essential está definido para ser instalado manualmente.
    0 pacotes actualizados, 0 pacotes novos instalados, 0 a remover e 1 não actualizados.
    Downloading rtmpdump source...
    --2010-01-20 03:18:42-- http://rtmpdump.mplayerhq.hu/downloa...mp-2.1c.tar.gz
    A resolver rtmpdump.mplayerhq.hu... 213.144.138.186
    A conectar rtmpdump.mplayerhq.hu|213.144.138.186|:80... conectado.
    Pedido HTTP enviado, a aguardar resposta... 200 OK
    Tamanho: 85132 (83K) [application/x-gzip]
    A gravar em: 'rtmpdump.tar.gz'

    100%[======================================>] 85.132 104K/s em 0,8s

    2010-01-20 03:18:45 (104 KB/s) - 'rtmpdump.tar.gz' gravado [85132/85132]

    make[1]: Entering directory `/home/manuel/rtmpdump'
    gcc -Wall -DRTMPDUMP_VERSION=\"v2.1c\" -O2 -c -o log.o log.c
    gcc -Wall -DRTMPDUMP_VERSION=\"v2.1c\" -O2 -c -o rtmp.o rtmp.c
    rtmp.c:33:25: error: openssl/rc4.h: Ficheiro ou directoria inexistente
    rtmp.c: In function ‘ReadN’:
    rtmp.c:785: warning: implicit declaration of function ‘RC4’
    In file included from rtmp.c:2048:
    handshake.h:24:25: error: openssl/sha.h: Ficheiro ou directoria inexistente
    handshake.h:25:26: error: openssl/hmac.h: Ficheiro ou directoria inexistente
    In file included from handshake.h:28,
    from rtmp.c:2048:
    dh.h:28:24: error: openssl/bn.h: Ficheiro ou directoria inexistente
    dh.h:29:24: error: openssl/dh.h: Ficheiro ou directoria inexistente
    In file included from handshake.h:28,
    from rtmp.c:2048:
    dh.h: At top level:
    dh.h:61: error: expected ‘)’ before ‘*’ token
    dh.h:112: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
    dh.h:150: error: expected ‘)’ before ‘*’ token
    dh.h:181: error: expected ‘)’ before ‘*’ token
    dh.h:214: error: expected ‘)’ before ‘*’ token
    In file included from rtmp.c:2048:
    handshake.h:58: error: expected declaration specifiers or ‘...’ before ‘RC4_KEY’
    handshake.h:58: error: expected declaration specifiers or ‘...’ before ‘RC4_KEY’
    handshake.h: In function ‘InitRC4Encryption’:
    handshake.h:60: error: ‘SHA256_DIGEST_LENGTH’ undeclared (first use in this function)
    handshake.h:60: error: (Each undeclared identifier is reported only once
    handshake.h:60: error: for each function it appears in.)
    handshake.h:63: error: ‘rc4keyIn’ undeclared (first use in this function)
    handshake.h:63: error: ‘RC4_KEY’ undeclared (first use in this function)
    handshake.h:64: error: ‘rc4keyOut’ undeclared (first use in this function)
    handshake.h:66: error: ‘HMAC_CTX’ undeclared (first use in this function)
    handshake.h:66: error: expected ‘;’ before ‘ctx’
    handshake.h:67: warning: implicit declaration of function ‘HMAC_CTX_init’
    handshake.h:67: error: ‘ctx’ undeclared (first use in this function)
    handshake.h:68: warning: implicit declaration of function ‘HMAC_Init_ex’
    handshake.h:68: warning: implicit declaration of function ‘EVP_sha256’
    handshake.h:69: warning: implicit declaration of function ‘HMAC_Update’
    handshake.h:70: warning: implicit declaration of function ‘HMAC_Final’
    handshake.h:71: warning: implicit declaration of function ‘HMAC_CTX_cleanup’
    handshake.h:76: warning: implicit declaration of function ‘RC4_set_key’
    handshake.h:60: warning: unused variable ‘digest’
    handshake.h: In function ‘HMACsha256’:
    handshake.h:207: error: ‘HMAC_CTX’ undeclared (first use in this function)
    handshake.h:207: error: expected ‘;’ before ‘ctx’
    handshake.h:208: error: ‘ctx’ undeclared (first use in this function)
    handshake.h: In function ‘CalculateDigest’:
    handshake.h:221: error: ‘SHA256_DIGEST_LENGTH’ undeclared (first use in this function)
    handshake.h: In function ‘VerifyDigest’:
    handshake.h:236: error: ‘SHA256_DIGEST_LENGTH’ undeclared (first use in this function)
    handshake.h:236: warning: unused variable ‘calcDigest’
    handshake.h: In function ‘HandShake’:
    handshake.h:263: error: ‘RC4_KEY’ undeclared (first use in this function)
    handshake.h:263: error: ‘keyIn’ undeclared (first use in this function)
    handshake.h:264: error: ‘keyOut’ undeclared (first use in this function)
    handshake.h:318: warning: implicit declaration of function ‘DHInit’
    handshake.h:318: warning: assignment makes pointer from integer without a cast
    handshake.h:329: warning: implicit declaration of function ‘DHGenerateKey’
    handshake.h:337: warning: implicit declaration of function ‘DHGetPublicKey’
    handshake.h:353: error: ‘SHA256_DIGEST_LENGTH’ undeclared (first use in this function)
    In file included from rtmp.c:2048:
    handshake.h:437: warning: implicit declaration of function ‘DHComputeSharedSecretKey’
    handshake.h:452: error: too many arguments to function ‘InitRC4Encryption’
    handshake.h:457: warning: unused variable ‘digestResp’
    handshake.h:500: warning: unused variable ‘digest’
    handshake.h:499: warning: unused variable ‘signature’
    handshake.h: In function ‘SHandShake’:
    handshake.h:579: error: ‘RC4_KEY’ undeclared (first use in this function)
    handshake.h:579: error: ‘keyIn’ undeclared (first use in this function)
    handshake.h:580: error: ‘keyOut’ undeclared (first use in this function)
    handshake.h:648: warning: assignment makes pointer from integer without a cast
    handshake.h:683: error: ‘SHA256_DIGEST_LENGTH’ undeclared (first use in this function)
    handshake.h:771: error: too many arguments to function ‘InitRC4Encryption’
    handshake.h:776: warning: unused variable ‘digestResp’
    handshake.h:819: warning: unused variable ‘digest’
    handshake.h:818: warning: unused variable ‘signature’
    rtmp.c: In function ‘RTMP_Close’:
    rtmp.c:2413: warning: implicit declaration of function ‘DH_free’
    make[1]: *** [rtmp.o] Error 1
    make[1]: Leaving directory `/home/manuel/rtmpdump'
    make: *** [linux] Error 2
    mv: impossível analisar `rtmpdump': Ficheiro ou directoria inexistente
    Finished installation.
    thanks

  9. #9
    Join Date
    Apr 2008
    Beans
    13
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: Download MySpace MP3

    Looks like a issue compiling rtmpdump. I think I missed a prerequisite. I have updated the script so re-download it and try again

  10. #10
    Join Date
    Jul 2007
    Beans
    73
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Download MySpace MP3

    Works very well for me now......thanks...

Page 1 of 9 123 ... LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •