Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

Dumb perl script

Name: Why does this 405? 2009-03-15 1:13

use LWP::Simple;
use LWP::UserAgent;
use HTML::TokeParser;
use WWW::Mechanize;
$url = 'http://img.4chan.org/b/';
$url_all = $url;
my $html = get($url);
my $stream = HTML::TokeParser->new(\$html);
my @reply_urls;
my $mech = WWW::Mechanize->new();
$text = "Food Food Food Food Food Food Food Food Food Food Food Food Food Food Food Food Food Food Food ";
$test_url = "http://img.4chan.org/b/res/123725144.html";

sub userAg
{
my $browser = LWP::UserAgent->new;
$browser->agent('Mozilla/4.0 (compatible; MSIE 5.0; Linux) Opera 5.0  [en]');
my $response = $browser->post(
  $test_url,
  [
    'com'  => 'poooooooo 444',
  ],
);
if($response)
{
print $response->content;

};
}

sub mech_1
{
    $mech->submit_form
        (
        form_name => 'post',
        fields      => {com => "$text"},
        button    => 'Submit'
        )

}
sub mech_2{
$mech->get($test_url);
$mech->success or die $mech->response->status_line;
$mech->form_number(1);
$mech->field(com => "23452347562034765023746502347");
$mech->submit() or die $mech->response->status_line;
}
sub get_urls
{
  while(my $token = $stream->get_token)
  {
    if($token->[0] eq "S" && $token->[1] eq "a")
    {
    if ($token->[2]{href} !~ m/#/ && $token->[2]{href} =~ m/res\//)
    {
   
    $nice_url = $token->[2]{href};
    $nice_url =~ s/res\///g;
    $url_all .= $nice_url;
    push (@reply_urls,$url_all);
    $url_all = $url;
    }
    }
  }
}
sub print_urls
{
get_urls();
foreach(@reply_urls)
{
sleep(15);
}

}

Name: Anonymous 2009-03-15 2:33

>>1! I DISLIKE YOU! I DISLIKE YOUR POST I DIDN'T READ IT! STOP POSTING!

Name: Anonymous 2009-03-15 3:50

The fuck is this shit?
The Wallman would be turning in his grave.

Name: Anonymous 2009-03-15 7:26

>>3
He is very much alive.

Name: Anonymous 2009-03-15 8:20

>>4
You poor thing, I don't have the heart to tell you...
You are right though, he is alive in our hearts and mind, and he forever will be ``alive''

Name: Anonymous 2009-03-15 14:53

You guys don;t know perl ? fucking lamers.

Name: Anonymous 2009-03-15 14:57

$url = 'http://img.4chan.org/b/';
Back to /b/, please.

Name: Anonymous 2009-03-15 21:33

>>3
I think you mean Leisure Suit Larry Wall.

>>6
Everyone knows Perl. That doesn't mean we have to help /b/tards who don't.

Name: Anonymous 2009-03-16 4:28

Here he comes, here comes speedracer,
HE'S A DEMON ON WHEELS

Name: Anonymous 2009-03-16 4:41

Name: Anonymous 2009-03-16 23:42

You guy's just don't know anything about LWP. I lurked the board, all you guys do is program hello world shit that outputs ascii art. YOu guys suxor

Name: ​​​​​​​​​​ 2010-10-24 10:23


Don't change these.
Name: Email:
Entire Thread Thread List