Recent Posts
None | 37 sec ago
Java | 45 sec ago
C++ | 49 sec ago
C++ | 1 min ago
PHP | 1 min ago
C++ | 1 min ago
None | 1 min ago
None | 1 min ago
Lisp | 1 min ago
None | 2 min ago
Sitereport
Find cool info about any domain on the internet?
visit sitereport
Free Subdomains
Want a pastebin.com sub-domain for your community?
learn more...
What is pastebin?
Pastebin is a website that hosts all your text & code on dedicated servers for easy sharing.
learn more...
By bigodines on the 29th of Oct 2009 10:37:12 PM
Download |
Raw |
Embed |
Report
# -*- coding: utf-8 -*-
import twitter
import time
import os
from datetime import datetime
class BigoBot(object):
"""
BigoBot is a Twitter bot for server manipulation. It was designed to download pr0n into our home server. Use at your own risk.
"""
def __init__(self,username,password):
self.username = username
self.api = twitter.Api(username=username, password=password)
self.tweets = []
self.latest = None
def checkTweets(self):
self.readTweets(self.username)
def readDirectMessages(self):
return self.api.GetDirectMessages()
def check(self):
self.tweets = self.readDirectMessages()
for tweet in self.tweets:
self.download(tweet)
self.api.DestroyDirectMessage(tweet.GetId())
def download(self,tweet):
url,name = tweet.GetText().split(" ")
print "downloading:",url,name
os.system("wget %s; mv *.torrent /discao/HD\ 1TB/torrents/%s" % (url, name))
if __name__ == "__main__":
bb = BigoBot("bigobot","<senha super secreta>")
while True:
bb.check()
time.sleep(3600)
Submit a correction or amendment below.
Make A New Post