Chinaunix首页 | 论坛 | 博客
  • 博客访问: 391035
  • 博文数量: 117
  • 博客积分: 4416
  • 博客等级: 上校
  • 技术积分: 1135
  • 用 户 组: 普通用户
  • 注册时间: 2009-06-08 14:16
个人简介

一生醉生忘死,就让他继续下去吧!

文章分类

全部博文(117)

分类: LINUX

2011-06-16 23:23:44

#!/usr/bin/perl
use LWP::UserAgent;
  my $ua = LWP::UserAgent->new;
  my $req = HTTP::Request->new(GET => '%3D1%26filter%3Ddigest%26digest%3D1%26digest%3D1');
  my $res = $ua->request($req);
  open File,">file";
  if ($res->is_success) {
      print File $res->content;
  }else {
      print "Failed: ", $res->status_line, "\n";
  }
  close File;
  open File,"  open Fileout,">>file2";
while () {
        if ($_=~/(http:\/\/www\.boobooke.com\/v\/)(bbk\d{4})/)
        {
                print Fileout "$1$2\/video\.swf\n";
                $video="$1$2\/video\.swf";
                $name="$2";
                print "$video=====$2\n";
                @wget=("wget","$video","-O","$name\.swf");
                system (@wget);
        }

}
close Fileout;
阅读(1128) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~