Aquas Home

Yet another private Blog

June 7th, 2011

The Spacesphere

Applications/Programme, Botting/Coding, English, Linux, by Dave.

After @AnnoyingNavi (http://davidcurado.com.br/projects/annoyingnavi/) and @DBZNappa it was finally time for me to create a Twitterbot

The idea came from Portal2s “Spacesphere”. The thing which always says “SPAAAACE”.

 

How did i do this?

I wrote a little python script :)

It simply searches every 5 mins the Twitter API and replies to everyone who wrote “portal2″. Due to the API Limit it can’t reach everyone, but many of them tho :)

// A little update here: 5 mins was way too fast. Lot of people got spammed again and again. To avoid this, i changed the time to 30 mins. For now.

 

// Another Update: SpaceSphere got suspended for violating the Twitter rules. I created a new account and completly rebuild the API Script to avoid spamming.

 

Technology

- Python

- Tweepy

- Linux (Cron)

 

Interested in the Script? Mail me.

 

Visit him here: http://twitter.com/#!/spacesphere

http://www.youtube.com/watch?v=BVn1oQL9sWg

 

Back Top

Responses to “The Spacesphere”

Comments (7) Trackbacks (0) Leave a comment Trackback url
  1. Hey, I liked your bot! =) I also liked how you did it… never considered using cron, my program does all the waiting… =(
    Very cool bot!

    • Hey, nice to hear that.
      It’s pretty simple :) On Ubuntu just type “crontab -e”. This will open the crontab file with your favourite editor.

      */30 * * * * python /scripts/spacesphere.py does the job for me.
      */30 means every 30 minutes. */5 would do it every 5 minutes

      http://en.wikipedia.org/wiki/Cron gives a very nice explanation about the timing syntax

  2. @Dave: Thanks! =)

  3. No problem :)
    You’re navi was a inspiration :p

  4. @Dave: Although I did the coding, the idea came from a friend… inspired by DBZNappa =P I think he inspired many bots afterwards…
    Even so, it’s nice to hear that you liked Navi… =P

  5. Awesome! I’m the creator of DBZNappa :P
    DBZNappa runs every 5 minutes, without duplicates. What I did with it was save the maximum tweet ID, and pass that as the “since_id” parameter to the search.

    PHP source code for DBZNappa is available at https://gist.github.com/820281

  6. @Daniel15: cool stuff :) gonna try that later !

  1. No trackbacks yet.

Leave a Reply