Results 1 to 7 of 7
-
11th Aug 2010, 12:14 AM #1OPMember
PHP how to get filehost file size without matching?
Hello, is there anyway to get a file's file size that is hosted on hosts such as RS, HF, MU, NL, etc? I have been trying many different things and can't think of a surefire way beside matching it, which wouldn't be too reliable.
c0rrup Reviewed by c0rrup on . PHP how to get filehost file size without matching? Hello, is there anyway to get a file's file size that is hosted on hosts such as RS, HF, MU, NL, etc? I have been trying many different things and can't think of a surefire way beside matching it, which wouldn't be too reliable. Rating: 5
-
11th Aug 2010, 12:25 AM #2Member
I think the only way to do this is to create a regex for each host
-
11th Aug 2010, 12:33 AM #3Respected DeveloperWebsite's:
wrzc.orgIt's easy for Rapidshare. You can use their API system.
Code:subroutine=checkfiles_v1 Description: Gets status details about a list of given files. (files parameter limited to 3000 bytes. filenames parameter limited to 30000 bytes.) Parameters: files=comma separated list of file ids filenames=comma separated list of the respective filename. Example: files=50444381,50444382 filenames=test1.rar,test2.rar incmd5=if set to 1, field 7 is the hex-md5 of the file. This will double your points! If not given, all md5 values will be 0 Reply fields: 1:File ID 2:Filename 3:Size (in bytes. If size is 0, this file does not exist.) 4:Server ID 5:Status integer, which can have the following numeric values: 0=File not found 1=File OK (Anonymous downloading) 3=Server down 4=File marked as illegal 5=Anonymous file locked, because it has more than 10 downloads already 50+n=File OK (TrafficShare direct download type "n" without any logging.) 100+n=File OK (TrafficShare direct download type "n" with logging. Read our privacy policy to see what is logged.) 6:Short host (Use the short host to get the best download mirror: http://rs$serverid$shorthost.rapidshare.com/files/$fileid/$filename) 7:md5 (See parameter incmd5 in parameter description above.) Reply format: integer,string,integer,integer,integer,string,string
Using this random file from Katz as an example
Code:http://rapidshare.com/files/411931722/qbqbspbdiujnfgpsboojijmbujpogou.rar
Adding the file number, name and the sub above you'll get a string like this:
Code:http://api.rapidshare.com/cgi-bin/rsapi.cgi?sub=checkfiles_v1&files=411931722&filenames=qbqbspbdiujnfgpsboojijmbujpogou.rar
For other file hosts (with the exception of SendSpace who also have an api system) you'll have to cURL the page and get the size using regex with is a bit of a balls, a lot slower and way less accurate.
Noobs guide:
Click this link and it returns funny stuff:
http://api.rapidshare.com/cgi-bin/rs...jmbujpogou.rarTutorial How to SEO your Warez Site a guide to help you increase your organic traffic
Huge list of Warez Sites and free Multiposter Templates
-
11th Aug 2010, 01:00 AM #4MemberWebsite's:
csoffensive.com fagbag.melolololololololo ok u have to use ff and get add on grasemonkey then go to userscripts and install rapidshare links checker and cavern links checker then it makes the links clickable so when u pass ur mous over it u see the size
it also tells u wheter the links are alive or not
-
11th Aug 2010, 01:05 AM #5MemberWebsite's:
intelligen2009.comi made a very small tool for this, but seems you more interested in how to do this; well i've published some delphi snippets how to do this in another forum.
Netload.in:
Megaupload.com:
Uploaded.to:
you just need to convert it to php ...
-
11th Aug 2010, 01:10 AM #6OPMember
@Mr Happy, my current script is adding a few thousand files per day, I think rapidshare API would limit me very quickly.
Looks like I will have to custom match with regex for each site!
-
11th Aug 2010, 01:30 AM #7Respected DeveloperWebsite's:
wrzc.orgNope they won't as you can request a few hundred links at a time and a few thousand requests a day. I managed to check upto a million before my server started to get dizzy. Rapidshare was still going strong.
get like this
http://api.rapidshare.com/cgi-bin/rs...jmbujpogou.rar
Used the same link 20 times so I didn't have to go looking for other links but hopefully it will give you the idea.
@ geskill, that's a nice script you have their.Tutorial How to SEO your Warez Site a guide to help you increase your organic traffic
Huge list of Warez Sites and free Multiposter Templates
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
I need A filehost site that i can RU files from HF premiume Acc to it with big size
By myincome2020 in forum File Host DiscussionReplies: 0Last Post: 2nd Nov 2012, 11:58 AM -
Rar a file and size
By zoug100 in forum General DiscussionReplies: 1Last Post: 10th Dec 2011, 04:21 PM -
uploaded.to file size?
By vladavina in forum File Host DiscussionReplies: 4Last Post: 23rd Oct 2011, 12:40 AM -
Hotfile File Size?
By _brazzO in forum General DiscussionReplies: 4Last Post: 9th Dec 2010, 01:36 PM -
Give' me the size - tool for checking the file size of over 20 filehosters
By geskill in forum Web Development AreaReplies: 2Last Post: 28th Jul 2010, 06:54 PM
themaRegister - register to forums...
Version 3.51 released. Open older version (or...