#!/usr/bin/perl $counter = 0; ######### CONFIGURATION ######### $username = 'yourusername'; $password = 'yourpassword'; $cookiefile = "cookie_hon"; #where to save the cookies to $age = '1'; #x = any age #1 = 18-25 #2 = 26-32 #3 = 33-40 #4 = 41+ $sex = 'female'; #female #male #$geo = "oh01"; #your assigned location #comment the line out if you dont want to have a location #$output = "output.html"; #the file to output to on every click #comment the line out if you dont want to review the output #$failure = "failure.html"; #the file to output to when it fails (for debugging) #comment the line out if you dont want to review errors ########## END CONFIG ########## $act = 1; $s = 'http://www.hotornot.com/'; $m = 'http://www.hotornot.com/m/'; print "Getting main page...\n"; use LWP::UserAgent; use HTTP::Cookies; #save it to a cookie $mycookie = HTTP::Cookies->new(file => $cookiefile, autosave => 1); $ua = LWP::UserAgent->new; $ua->cookie_jar($mycookie); my $req = HTTP::Request->new(GET => $s); my $res = $ua->request($req); if ($res->is_success){ print "Got main page. Posting password...\n"; $html = $res->content; $html = truncateat($html,'rightof','