Shoutbox

download.php?id=[0 to 10000] => mp3 link...need a way to find direct link [Solved] - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Skype & Technology (/forumdisplay.php?fid=9)
+---- Forum: Tech Talk (/forumdisplay.php?fid=17)
+----- Thread: download.php?id=[0 to 10000] => mp3 link...need a way to find direct link [Solved] (/showthread.php?tid=85974)

download.php?id=[0 to 10000] => mp3 link...need a way to find direct link [Solved] by prashker on 09-15-2008 at 08:02 PM

so lets say

http://poop.com/download.php?id=1 goes to poop.com/magicjohnson.mp3.

Now multiply that by 10000 :p.

I need a script to tell me the actual mp3 location that the download.php?id=[1-10000] is telling me to go.

This site requires a login, and it's stored in a cookie, so I'll need the ability to use a cookie :p

THANKS <3


RE: download.php?id=[0 to 10000] => mp3 link...need a way to find direct link (script?) by Thor on 09-15-2008 at 08:05 PM

Are you out on your wild adventures on scriptlance again? :P

I'm not really sure what you want either. If you already have the download function, you could just use the same var and echo it instead of using Header: Location to re-dir and just display the link.


RE: download.php?id=[0 to 10000] => mp3 link...need a way to find direct link (script?) by NanaFreak on 09-15-2008 at 08:24 PM

why not store it in a database?? you can do so much with a db :)

edit: oh shit i didnt read it properly... use what absorbation said


RE: download.php?id=[0 to 10000] => mp3 link...need a way to find direct link (script?) by roflmao456 on 09-15-2008 at 08:31 PM

use mysql or something :P

and

code:
$result = mysql_query("SELECT * from MUSIC
WHERE id = " . $_GET['id']);
$mp3file = mysql_fetch_array($result)['url'];
header("Location: $mp3file");

2 columns:
- id (int)
- url (varchar)

table: MUSIC


if you're just talking about you downloading stuff from 0 to 10000, you can try out some download plugins on firefox (just what absorbation said)

lol. same here nanafreak
RE: download.php?id=[0 to 10000] => mp3 link...need a way to find direct link (script?) by absorbation on 09-15-2008 at 08:43 PM

https://addons.mozilla.org/firefox/addon/201

Use DownloadThemAll! and use this URL in the manager:

http://poop.com/download.php?id=[1:10000]

:)


RE: download.php?id=[0 to 10000] => mp3 link...need a way to find direct link (script?) by prashker on 09-15-2008 at 09:05 PM

I don't want to download them all :p. I just want the links, then filter out the ones I want ;<

But that'll do I suppose....thanks :p


RE: download.php?id=[0 to 10000] => mp3 link...need a way to find direct link (script?) by Mike on 09-15-2008 at 10:51 PM

You should be able to do this by using PHP and cURL (with the curl_getinfo function)


RE: download.php?id=[0 to 10000] => mp3 link...need a way to find direct link (script?) by prashker on 09-20-2008 at 04:56 PM

quote:
Originally posted by Mike
You should be able to do this by using PHP and cURL (with the curl_getinfo function)

Can someone make this for me :p

http://www.fastfeetmedia.net/ftphub/download.php?id=[0-10000]

I only want the links

http://www.fastfeetmedia.net/ftphub/upload/SONIC%...%20the%20Hedgehog/<blah>.mp3


But it doesn't even matter, I can manually filter those out after, I just want the direct mp3 links for 0-10000

I was reading about some setcookie, but if someone could incorporate that (as the site needs a login :p)
RE: download.php?id=[0 to 10000] => mp3 link...need a way to find direct link (script by Mike on 09-20-2008 at 08:06 PM

Here it is (attachment)...

However, it won't work on the site you posted, because like you said, you need to be logged in first, and I have never used cookies with cURL.

Someone else can probably help you :P


RE: download.php?id=[0 to 10000] => mp3 link...need a way to find direct link (script?) by WDZ on 09-20-2008 at 10:09 PM

I can write a script to get the links, but I'm too lazy to write it from scratch, so I'd use some of my custom PHP libraries which I'm not gonna release. (a)

Are there really 10000 files? [Image: zippyah.gif]


RE: download.php?id=[0 to 10000] => mp3 link...need a way to find direct link (script?) by prashker on 09-20-2008 at 10:17 PM

quote:
Originally posted by WDZ
I can write a script to get the links, but I'm too lazy to write it from scratch, so I'd use some of my custom PHP libraries which I'm not gonna release. (a)

Are there really 10000 files? [Image: zippyah.gif]

Well to my knowledge the ids go to 7000, but I put 10000 just to be sure :p.

out of those "10000" theres around 2200 Sonic ones :p

WDZ: I don't care how you do it, I just want the links, I don't need the script :p
RE: download.php?id=[0 to 10000] => mp3 link...need a way to find direct link (script?) by WDZ on 09-20-2008 at 10:57 PM

ok, the script is running... whenever it finishes I'll upload a text file with the links. :p


RE: download.php?id=[0 to 10000] => mp3 link...need a way to find direct link (script?) by prashker on 09-20-2008 at 11:19 PM

quote:
Originally posted by WDZ
ok, the script is running... whenever it finishes I'll upload a text file with the links. :p
very awesome :p
RE: download.php?id=[0 to 10000] => mp3 link...need a way to find direct link (script?) by WDZ on 09-20-2008 at 11:49 PM

[link removed - nobody needs that anymore =p]

It looks like the highest ID that actually works is 6126, so I stopped at 6999. :p


RE: download.php?id=[0 to 10000] => mp3 link...need a way to find direct link (script?) by prashker on 09-21-2008 at 12:17 AM

You have done well....I thank you (l)

(l)C:\Users\SonicSam\Desktop\wget>wget -i sonic.txt -x(l)