Created
March 31, 2012 11:35
-
-
Save yosida95/2262541 to your computer and use it in GitHub Desktop.
#geekdaytokyo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def like(color): | |
from urllib import urlopen | |
urlopen('http://reallike.geekday.jp/?post=1&color=%s' % (color, )) | |
def send(color, count=100): | |
from multiprocessing import Pool | |
pool = Pool(processes=4) | |
for x in range(0, count): | |
pool.apply_async(func=like, args=(color, )) | |
pool.close() | |
pool.join() | |
if __name__ == '__main__': | |
send('ffffff', 256) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment