2010-12-16, 18:46
I am attempting to expand the scope of my Icefilms plugin, which is incredibly shoddy code, but works rather well.
1)adding support for streaming from 2shared
2shared's actual pure download link structure is like this:
http://dc[server location].2shared.com/download1/?i=[some random letters/numbers]
the letters and numbers are plainly avaliable and scrapeable from the 2shared file webpage sourcecode.
the server location is not, and seems to be encoded in some complicated way.
there is also a bit of javascript code in the sourcecode that when executed on the page loads the direct link and downloads the file.
if one tries to guess the server location (by trying all locations from 1-250), 2shared tells you you've reached your download limit.
recaptcha is a feature of far greater urgency than 2shared
2)passing through the reCaptcha image to the user, so they can enter text in a box to complete it.
reCaptcha is not worth trying to crack! so i figured passing through the image and having the user complete it was the best thing to do. (reCaptcha is on icefilms.info, not 2shared)
I thought about maybe displaying the reCaptcha image as the folder icon... but i think that would stretch it and make it harder to read.
anyway, these 2 things are slightly beyond my [lack of] python skills at the moment, and i would appreciate any advice/patches/code.
1)adding support for streaming from 2shared
2shared's actual pure download link structure is like this:
http://dc[server location].2shared.com/download1/?i=[some random letters/numbers]
the letters and numbers are plainly avaliable and scrapeable from the 2shared file webpage sourcecode.
the server location is not, and seems to be encoded in some complicated way.
there is also a bit of javascript code in the sourcecode that when executed on the page loads the direct link and downloads the file.
if one tries to guess the server location (by trying all locations from 1-250), 2shared tells you you've reached your download limit.
recaptcha is a feature of far greater urgency than 2shared
2)passing through the reCaptcha image to the user, so they can enter text in a box to complete it.
reCaptcha is not worth trying to crack! so i figured passing through the image and having the user complete it was the best thing to do. (reCaptcha is on icefilms.info, not 2shared)
I thought about maybe displaying the reCaptcha image as the folder icon... but i think that would stretch it and make it harder to read.
anyway, these 2 things are slightly beyond my [lack of] python skills at the moment, and i would appreciate any advice/patches/code.