Skip to content

Instantly share code, notes, and snippets.

@cesarkawakami
Created August 19, 2013 18:33
Show Gist options
  • Save cesarkawakami/6272480 to your computer and use it in GitHub Desktop.
Save cesarkawakami/6272480 to your computer and use it in GitHub Desktop.
import random
import requests
import string
import sys
combining = []
combining += [unichr(x) for x in xrange(0x0300, 0x0370)]
# combining += [unichr(x) for x in xrange(0x1dc0, 0x1de7)]
s = u""
for i in xrange(450):
if i % 100 == 99:
s += "\n"
s += random.choice(string.ascii_lowercase)
for j in xrange(12):
s += random.choice(combining)
r = requests.post("https://api.flowdock.com/flows/geekie/main/messages",
# auth=(XXX),
data={"event": "message", "content": s})
print r
print r.text
# sys.stdout.write(s.encode("utf-8"))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment