Hi,
So here is what I need, I need a perl script to :
1. login to putlocker (since putlocker has captcha on their login page, the script should have a seperate login page where it should display the captcha and I can login, after the first successful login, it should save the cookies and use them from then on.)
2. once logged in, the function should follow the following structure to :
sub preFUNCTION_NAME {
my ($u,$ua) = @_;
##LOGIN SHOULD BE DONE HERE
my $res = $ua->get($u->{url})->decoded_content; #get the page
$res =~ /<meta name="description" content="(.*?)" \/>/gis; #find the name of the file from the page
$u->{file_name_orig} = $1.".flv"; #adding the extension to the video
$res =~ /file: "(.*?)",/gis; # finding the file on the page
($u->{url}) = $1; # assigning it to $u
return $u; #returning the info
}
Please note that the above code is the template and is written to work on another site, NOT putlocker, so it might be a bit different.
the most important part of the function is that it should get the info from : $u->{url} and store all the values etc in $u and return it.