SQUIRT automated submission tool...

Status
Not open for further replies.

smaxor

New member
Oct 17, 2006
2,514
87
0
San Diego
I was messing with ELI's SQUIRT this morning and there's nothing I hate more then to figure something out and then do it again and again. So I wrote a automation script for eli's tool that takes a file of url's and keywords and submits them to his SQUIRT tool. This way you can load up 10k url's and set it and forget it.

Just set a cronjob 1 time a day and it'll submit them for you.


Check it out BlueHat SEO's SQUIRT automated submitter tool - Oooff.com

Feel free to pay me in used tufts of hair, ball sack sweat in a jar or the proverbial mansling.
 


Code:
echo "As you now begin questioning your sexuality....homo!<br>Ask yourself am I gay?<br>If you're a member of wickedfire.com the answer is probably a resounding, YES!<br>Here we go.......<br>";

faggot
 
Glad to see you've come out of the closet Chatmasta. Thanks for letting us all know you claim you're a faggot, we'll steer clear and cover our assholes.

Code:
echo "As you now begin questioning your sexuality....homo!<br>Ask yourself am I gay?<br>If you're a member of wickedfire.com the answer is probably a resounding, YES!<br>Here we go.......<br>";
faggot
 
Being as this doesn't allow you to submit more then you daily alotment which is accounted for by them it shouldn't be an issue. Their system is setup to handle 200 members a day at 10 submissions each. This only automates the daily submissions and doesn't increase the number of submissions a day.

Capisce, Capt'n Kirk?
 
Thanks much, any chance you'll finish the posting tutorial on your site soon?

In the meantime, I forget who owns it (he's a member here), but wagerank has a good tutorial: How To Submit Forms With PHP

Or you could use this modified version of lerch's cURL class. (God damn shitty looking PHP code boxes)

PHP:
class Curl
{            
    function setup()
    {
        $cookieJar = 'cookies.txt';
        curl_setopt($this->curl,CURLOPT_COOKIEJAR, $cookieJar); 
        curl_setopt($this->curl,CURLOPT_COOKIEFILE, $cookieJar);
        curl_setopt($this->curl,CURLOPT_AUTOREFERER, true);
        curl_setopt($this->curl,CURLOPT_FOLLOWLOCATION, true);
        curl_setopt($this->curl,CURLOPT_RETURNTRANSFER, true);    
    }
    
    function clean($contents)
    {
        return $contents = str_replace('<script src="http://maps.google.com/maps?file=api&v=2&key=ABQIAAAAA6ElvpTmZs4PUpZpSAoK6BSHXJsp5oogWH5jZodYSc2VMsh-GBSvecccQD_seEoYLmo-SsWfitQQEw" type="text/javascript"></script>', '', $contents);
    }
    
    function get($url)
    { 
        $this->curl = curl_init($url);
        $this->setup();
        
        return $this->clean($this->request());
    }
    
    function getAll($reg,$str)
    {
        preg_match_all($reg,$str,$matches);
        return $matches[1];
    }
    
    function postForm($url, $fields, $referer='')
    {
        $this->curl = curl_init($url);
        $this->setup();
        curl_setopt($this->curl, CURLOPT_URL, $url);
        curl_setopt($this->curl, CURLOPT_POST, 1);
        curl_setopt($this->curl, CURLOPT_REFERER, $referer);
        curl_setopt($this->curl, CURLOPT_POSTFIELDS, $fields);
        return $this->request();
    }
    
    function getInfo($info)
    {
        $info = ($info == 'lasturl') ? curl_getinfo($this->curl, CURLINFO_EFFECTIVE_URL) : curl_getinfo($this->curl, $info);
        return $info;
    }
    
    function request()
    {
        return curl_exec($this->curl);
    }
}

Then when you want to submit a form, all you need to do is something like this:

PHP:
$curl = new Curl;
$field1 = 'candy';
$field2 = 'bar';
$field3 = 'candy bar'; // this has a space in it - don't forget to encode!
$field3 = urlencode($field3);

$curl->postForm('www.domain.com/action.php', "field1=$field1&field2=$field2&field3=$field3");

:D
 
Thanks chatmasta, and yes we need to start a campaign so they change the background color on those php boxes, i'll take a look at my vbulletin and see the exact css , so hopefully it will help them along.
 
Or you can send an email to rob(at)robstool.com and ask for the get method api info..

I've coded it, I just haven't wrote up docs for it.. On my list to do this weekend.

Rob =)
 
:)

I'll make a new release using the API as soon at the docs are available as API's are always more reliable then web scraping/posting :)


Or you can send an email to rob(at)robstool.com and ask for the get method api info..

I've coded it, I just haven't wrote up docs for it.. On my list to do this weekend.

Rob =)
 
Thaks for the script, but after using it when I look in the Squirt panel I see an error where it lists the submissions.

Instead of:

Jun-20-2007 URL:http://www.domain.com Keywords:keyword keyword keyword

It always has:

Jun-20-2007 URL:http://squirt.robstool.com/panel Keywords:keywordkeyword3=keyword

So how do I know it worked OK or not, as it seems to have submitted the URL http://squirt.robstool.com/panel 10 times

thanks,

chuckie

:yin-yang:
 
Thaks for the script, but after using it when I look in the Squirt panel I see an error where it lists the submissions.

Instead of:

Jun-20-2007 URL:http://www.domain.com Keywords:keyword keyword keyword

It always has:

Jun-20-2007 URL:http://squirt.robstool.com/panel Keywords:keywordkeyword3=keyword

So how do I know it worked OK or not, as it seems to have submitted the URL http://squirt.robstool.com/panel 10 times

thanks,

chuckie

:yin-yang:

Log into your account and look at your submission logs to make sure.
 
I'll take a look at it tonight wonder what's going on. Worked for me, but I only tested it on like 2 domains cause I didn't want to fill the tool up with crap.
 
Status
Not open for further replies.