ჩემი ფლუდ ბოტი viewe-ების მოსამატებლად...

youtube-ზე არ მუშაობს მგონი

მაგრამ ისე hit-ების მომატება შეიძლება შოტჩიკზე იდეაში....
import urllib2, threading
import sys, time
th = 100
x = 0
url = "http://anonymouse.org/cgi-bin/anon-www_de.cgi/http://forum.ge/"
class Flood(threading.Thread):
def __init__(self):
self.killed = False
threading.Thread.__init__(self)
def run(self):
global x
global url
while not self.killed:
try:
urllib2.urlopen(url)
x += 1
except KeyboardInterrupt:
return None
except urllib2.URLError:
pass
for i in range(th):
Flood().start()
while True:
try:
if x % 10 == 0:
print '\r'+str(x),
except KeyboardInterrupt:
for th in threading.enumerate():
th.killed = True
time.sleep(0.1)
sys.exit('Interrupted')
This post has been edited by Roofus on 15 Sep 2014, 00:27
ხელმოწერის მოსაფიქრებლად კრეატიულობა არ მყოფნის...