Skip to content

Instantly share code, notes, and snippets.

@yosida95
Created March 31, 2012 11:35
Show Gist options
  • Save yosida95/2262541 to your computer and use it in GitHub Desktop.
Save yosida95/2262541 to your computer and use it in GitHub Desktop.
#geekdaytokyo
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