TuxPirate

from TuxPirate 375 days ago #
Votes: 0 | Vote:
+ -

I concur, it isn't true. Everyone know you have to make extensive use of this great service by registering a few dozen accounts to vote automatically for your own benefit.

Of course it is very different with better social networks like Sphinn!

#!/usr/bin/python
#

import sys
import mechanize

from time import sleep
from random import randrange
from optparse import OptionParser

agents = ['Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en) AppleWebKit/418.9.1 (KHTML, like Gecko) Safari/419.3',
          'Mozilla/4.0 (compatible; MSIE 6.0; Windows XP)',
          'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.2) Gecko/20070219 Firefox/2.0.0.2',
          'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)',
          'Mozilla/4.0 (compatible; MSIE 6.1; Windows XP)',
          'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.8.1.2) Gecko/20070219 Firefox/2.0.0.2',
          'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.2) Gecko/20060601 Firefox/2.0.0.2 (Ubuntu-edgy)',
          'Opera/9.01 (Windows NT 5.1; U; cs)']

class StumbleAgent:
    def __init__(self, user, passwd):
        self.br = mechanize.Browser()
        self.br.addheaders = [("User-agent",
                               agents[randrange(0, len(agents) - 1)])]
        self.login(user, passwd)

    def login(self, user, passwd):
        self.br.open('http://www.stumbleupon.com/login.php')

        assert self.br.viewing_html()

        self.br.select_form('formLogin')
        self.br['username'] = user
        self.br['password'] = passwd
        resp = self.br.submit()
        
        print self.br.title()

    def stumble(self, url, comment, topic, adult=0, *tags):
        if topic < 0 or 415 < topic:
            raise ValueError("Invalid topic number `%s'" % topic)
        elif adult not in (0, 1):
            raise ValueError("You must specify if this is adult content using 0 or 1")

        self.br.open("

from TuxPirate 375 days ago #
Votes: 0 | Vote:
+ -

*Un* *fair*, I had your eyes, we'd all get noticed around here. hah! :-P

from TuxPirate 375 days ago #
Votes: 0 | Vote:
+ -

I'm erasing the spot I had reserved for Jim Boykins's RSS feed to replace it with yours.

from TuxPirate 375 days ago #
Votes: 0 | Vote:
+ -

I came up with the exact same numbers! hah, it was my destiny to find this post that's *sick* . You and I are the same

from TuxPirate 375 days ago #
Votes: 0 | Vote:
+ -

Thanks for the tips! I'll stop by to Sphinn you again

from TuxPirate 375 days ago #
Votes: 0 | Vote:
+ -

Hi Nanny :-)

from TuxPirate 375 days ago #
Votes: 0 | Vote:
+ -

I larned a fyou things about social networking sites (SNSs). Thanks to iool

Search Marketing Expo

Save the date for:
SMX West - Feb. 10-12, 2009
SMX Munich - April 22-23, 2009
SMX Advanced - June 2-3, 2009

Search Marketing Now

Learn more about search marketing through free online webcasts and webinars from our sister site Search Marketing Now.

Upcoming Webcasts: