What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Skype & Technology » Tech Talk » download.php?id=[0 to 10000] => mp3 link...need a way to find direct link [Solved]

Pages: (2): « First [ 1 ] 2 » Last »
download.php?id=[0 to 10000] => mp3 link...need a way to find direct link [Solved]
Author: Message:
prashker
Veteran Member
*****


Posts: 5109
Reputation: 104
– / Male / –
Joined: Mar 2005
Status: Away
O.P. download.php?id=[0 to 10000] => mp3 link...need a way to find direct link [Solved]
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

This post was edited on 09-21-2008 at 12:52 AM by prashker.
09-15-2008 08:02 PM
Profile PM Find Quote Report
Thor
Veteran Member
*****

Avatar
Awwwwwwww.

Posts: 1118
Reputation: 42
32 / – / Flag
Joined: May 2006
RE: download.php?id=[0 to 10000] => mp3 link...need a way to find direct link (script?)
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.

This post was edited on 09-15-2008 at 08:08 PM by Thor.
:plus4: Translation guidelines for Messenger Plus! Live
I'm no longer around this town, but I miss the community dearly. You can always find me lurking in #banana, or at
nitrolinken.net.
09-15-2008 08:05 PM
Profile PM Web Find Quote Report
NanaFreak
Scripting Contest Winner
*****


Posts: 1476
Reputation: 53
32 / Male / Flag
Joined: Jul 2006
RE: download.php?id=[0 to 10000] => mp3 link...need a way to find direct link (script?)
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

This post was edited on 09-15-2008 at 08:48 PM by NanaFreak.
09-15-2008 08:24 PM
Profile PM Find Quote Report
roflmao456
Skinning Contest Winner
****

Avatar

Posts: 955
Reputation: 24
30 / Male / Flag
Joined: Nov 2006
Status: Away
RE: download.php?id=[0 to 10000] => mp3 link...need a way to find direct link (script?)
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

This post was edited on 09-15-2008 at 09:04 PM by roflmao456.
[quote]
Ultimatess6
: What a noob mod
09-15-2008 08:31 PM
Profile PM Web Find Quote Report
absorbation
Elite Member
*****

Avatar

Posts: 3636
Reputation: 81
– / Male / Flag
Joined: Feb 2005
RE: download.php?id=[0 to 10000] => mp3 link...need a way to find direct link (script?)
https://addons.mozilla.org/firefox/addon/201

Use DownloadThemAll! and use this URL in the manager:

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

:)
09-15-2008 08:43 PM
Profile PM Find Quote Report
prashker
Veteran Member
*****


Posts: 5109
Reputation: 104
– / Male / –
Joined: Mar 2005
Status: Away
O.P. RE: download.php?id=[0 to 10000] => mp3 link...need a way to find direct link (script?)
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
09-15-2008 09:05 PM
Profile PM Find Quote Report
Mike
Elite Member
*****

Avatar
Meet the Spam Family!

Posts: 2795
Reputation: 48
32 / Male / Flag
Joined: Mar 2003
Status: Online
RE: download.php?id=[0 to 10000] => mp3 link...need a way to find direct link (script?)
You should be able to do this by using PHP and cURL (with the curl_getinfo function)
YouTube closed-captions ripper (also allows you to download videos!)
09-15-2008 10:51 PM
Profile E-Mail PM Web Find Quote Report
prashker
Veteran Member
*****


Posts: 5109
Reputation: 104
– / Male / –
Joined: Mar 2005
Status: Away
O.P. RE: download.php?id=[0 to 10000] => mp3 link...need a way to find direct link (script?)
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)

This post was edited on 09-20-2008 at 04:57 PM by prashker.
09-20-2008 04:56 PM
Profile PM Find Quote Report
Mike
Elite Member
*****

Avatar
Meet the Spam Family!

Posts: 2795
Reputation: 48
32 / Male / Flag
Joined: Mar 2003
Status: Online
RE: download.php?id=[0 to 10000] => mp3 link...need a way to find direct link (script
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

.php File Attachment: sam.php (674 bytes)
This file has been downloaded 192 time(s).
YouTube closed-captions ripper (also allows you to download videos!)
09-20-2008 08:06 PM
Profile E-Mail PM Web Find Quote Report
WDZ
Former Admin
*****

Avatar

Posts: 7106
Reputation: 107
– / Male / Flag
Joined: Mar 2002
RE: download.php?id=[0 to 10000] => mp3 link...need a way to find direct link (script?)
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]
09-20-2008 10:09 PM
Profile PM Web Find Quote Report
Pages: (2): « First [ 1 ] 2 » Last »
« Next Oldest Return to Top Next Newest »


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On