|
|
@ -32,6 +32,7 @@ except ImportError:
|
|
|
|
words = fh.read().splitlines()
|
|
|
|
words = fh.read().splitlines()
|
|
|
|
fh.close()
|
|
|
|
fh.close()
|
|
|
|
shuffle(words)
|
|
|
|
shuffle(words)
|
|
|
|
|
|
|
|
|
|
|
|
def get_sentence():
|
|
|
|
def get_sentence():
|
|
|
|
return ' '.join(words[:randint(50, 150)])
|
|
|
|
return ' '.join(words[:randint(50, 150)])
|
|
|
|
|
|
|
|
|
|
|
@ -112,6 +113,7 @@ if whitelist:
|
|
|
|
subs=', '.join(whitelist))
|
|
|
|
subs=', '.join(whitelist))
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def get_things(after=None):
|
|
|
|
def get_things(after=None):
|
|
|
|
limit = None
|
|
|
|
limit = None
|
|
|
|
if item == "comments":
|
|
|
|
if item == "comments":
|
|
|
@ -123,6 +125,7 @@ def get_things(after=None):
|
|
|
|
else:
|
|
|
|
else:
|
|
|
|
raise Exception("Your deletion section is wrong")
|
|
|
|
raise Exception("Your deletion section is wrong")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def remove_things(things):
|
|
|
|
def remove_things(things):
|
|
|
|
removal_count = 0
|
|
|
|
removal_count = 0
|
|
|
|
for thing in things:
|
|
|
|
for thing in things:
|
|
|
@ -197,4 +200,3 @@ count = remove_things(things)
|
|
|
|
while count != 0:
|
|
|
|
while count != 0:
|
|
|
|
things = get_things()
|
|
|
|
things = get_things()
|
|
|
|
count = remove_things(things)
|
|
|
|
count = remove_things(things)
|
|
|
|
|
|
|
|
|
|
|
|