Mr. fliticasone
#!/usr/bin/perl # checkportopening.pl use strict; use LWP::Simple; use URI::Escape; # MEncoder location my $mencoder = "c:\\mplayer\mencoder.exe"; # Get the Port URL print "paste in a URL and Press Enter. \n% "; my $url = <STDIN>; # Scrape the page my $response = get($url); # find the video file While ($response =~ m!videoURL\u003d(.*?)\\"!gis) { my $videoURL = $1; $videoURL = uri_unescape($videoURL); $videoURl =~ s!\\u003d!=!gs; # Find the site filename my $head = head($videoURL); my $filename = $head->{_headers}->{'content-disposition'}; $filename =~ s!attachment; filename||gis; # Download the video file print "Downloading $filename...\n"; getstore($videoURL,$filename); # make sure downloaded file is there if (-e $filename) { # change the extension my $newfilename = $filename; $newfilename =~ s!flv!avi!gis; print "Converting to $newfilename...\n"; # use MEncoder to convert to another file (rename intruder's site) my $cmd = "$mencoder $filename -ofps 15";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Network Outlet
by jwkrahn (Abbot) on Apr 28, 2012 at 03:21 UTC | |
|
Re: Network Outlet
by Khen1950fx (Canon) on Apr 29, 2012 at 03:12 UTC | |
by jwkrahn (Abbot) on Apr 29, 2012 at 06:53 UTC |