Aug 10, 2017At least the term SoundCloud rapper can die now
-
Bojack, DetroitDGAF, Ghostface and 13 others like this.
-
Aug 10, 2017
lol why is batmans butler voicing thisOrdinary Joel, KWO, DKC and 4 others like this. -
Aug 10, 2017
Ordinary Joel, Trackz, Lil Chano from 79 and 3 others like this. -
Aug 10, 2017
I guess the ppl can bump Lil Devil on Audiomack insteadDeadpool, Ordinary Joel, Michael Vick and 3 others like this. -
Aug 11, 2017
if this happens , a lot of rappers bout to be homelessRetiredAccount, Deadpool, Ordinary Joel and 2 others like this. -
Aug 10, 2017
Ordinary Joel, Michael Vick, Flacko and 2 others like this.(This ad goes away when signing up) -
Aug 11, 2017
DetroitDGAF, Ordinary Joel, pluto✰ and 1 other person like this. -
Aug 10, 2017
Bandcamp was better anyway.Bojack, DetroitDGAF, Ordinary Joel and 1 other person like this. -
-
Aug 10, 2017
audiomack boutta be feastingOrdinary Joel, Trackz, Sqrt Sqrt and 1 other person like this. -
Aug 10, 2017
Hey guys check out my blog, it's f---ing dope.
http://www.trapadan.comOrdinary Joel, Flacko, Sqrt Sqrt and 1 other person like this. -
(This ad goes away when signing up)
-
Aug 11, 2017
Bojack, Ordinary Joel and Deadpool like this. -
Aug 10, 2017
d--- SoundCloud made it to where you can't parse all contents of a users profile anymore..
Regardless, I'm sure someone will view this and find it helpful but for now I'm calling it quits.
PHP:<?php
set_time_limit(0);
ini_set('max_execution_time', 0);
$userid = $_GET['id'];
$profile = 'https://api.soundcloud.com/users/'.$userid.'?client_id=';
$profile_json = file_get_contents($profile);
$data = json_decode($profile_json);
$useraccount = $data->id;
$track = 'https://api.soundcloud.com/users/'.$useraccount.'/tracks?client_id=';
$track_json = file_get_contents($track);
$trackfo = json_decode($track_json);
$i = 0;
if (!file_exists('/path/sc/'.$userid.'')) {
mkdir('/path/sc/'.$userid.'', 0777, true);
}
define('DIRECTORY', '/path/sc/'.$userid.'');
foreach ($trackfo as $song) {
$i++;
$song_id = $song->id;
$title = $song->title;
$tracklocation = file_get_contents('https://api.soundcloud.com/tracks/'.$song_id.'/stream?&client_id=');
file_put_contents(DIRECTORY . '/'.$title.'.mp3', $tracklocation);
}
$dir = '/path/sc/'.$userid.'';
$zip_file = ''.$userid.'.zip';
$rootPath = realpath($dir);
$zip = new ZipArchive();
$zip->open($zip_file, ZipArchive::CREATE | ZipArchive::OVERWRITE);
$files = new RecursiveIteratorIterator(
new RecursiveDirectoryIterator($rootPath),
RecursiveIteratorIterator::LEAVES_ONLY
);
foreach ($files as $name => $file)
{
if (!$file->isDir())
{
$filePath = $file->getRealPath();
$relativePath = substr($filePath, strlen($rootPath) + 1);
$zip->addFile($filePath, $relativePath);
}
}
// Zip archive will be created only after closing object
$zip->close();
header('Content-Type: application/zip');
header('Content-Disposition: attachment; filename='.basename($zip_file));
header('Content-Length: ' . filesize($zip_file));
readfile($zip_file);
unlink($zip_file);
?>
However it is missing like 5 tracks, and because of that it returns an error in the zip process.Boos, Deadpool and Ordinary Joel like this. -
Aug 10, 2017
Ordinary Joel, Trackz and Sqrt Sqrt like this. -
Aug 10, 2017
Wouldn't have happened if sumone without a trash voice woulda saved it insteadOrdinary Joel, Michael Vick and Sqrt Sqrt like this. -
Aug 10, 2017
Ordinary Joel, Michael Vick and Sqrt Sqrt like this. -
Aug 10, 2017
Ordinary Joel, Loyalty and Sqrt Sqrt like this. -
Aug 10, 2017
its not closing down they would announce it. Close thread im not convinced im already depressed...Ordinary Joel, 83837477 and Sqrt Sqrt like this. -
Aug 10, 2017
And this is the rise of the blogsOrdinary Joel, 83837477 and Sqrt Sqrt like this.