initial code+corpus commit

main
Gabe Ortiz 4 years ago
parent 10d9b894f5
commit 531673116c

4
.gitignore vendored

@ -1,6 +1,10 @@
#secrets #secrets
.env .env
#logs etc
tweets.txt
tweets.log
# Byte-compiled / optimized / DLL files # Byte-compiled / optimized / DLL files
__pycache__/ __pycache__/
*.py[cod] *.py[cod]

@ -1 +1,7 @@
# endlessgenghis # endlessgenghis
A Twitter bot which creates additional verses for Miike Snow's Genghis Khan.
To create the verses, run `python3 write_verses > tweets.txt`.
Then `python3 tweet.py` tweets one verse.

@ -0,0 +1,191 @@
take a nap
agree on stuff
show your chest
make a nest
make some love
push and shove
take off pants
swap spit
take a hit
do a dance
sink the boat
pet a goat
berzerker
bake a cake
basket-make
be intimate
belly-bump
bisect triangles
boom-boom
bop squiddles
bouncy-bouncy
bow-chick-a-wow-wow
bushwack
cave-dive
check the oil
churn butter
crush buns
daub the brush
dip the wick
disappoint the wife
dock the boat
do the dirty
dipsy doodle
do the dew
hibbety-dibbety
horizontal tango
break the ice
have some fun
go to town
go downtown
slip n slide
smudge some sage
humpty dance
do the nasty
doodle-bop
Drive Miss Daisy
dunk the dingus
enrage the cave
entangle
enter the castle
feed the kitty
fickey-fick
fill the tank
fish for kippers
fix the clap flap
forbidden polka
do the foxtrot
frickle-frackle
funny business
get busy
get down
get it on
get laid
get some
get down with
banana peel
wax the bean
wax the floor
hoobastank
turn the crank
get crunked up
hide the bone
hone the bone
shellack canoes
mend the kettle
go all the way
go balls-deep
go crabbing
heels-to-Jesus
glaze donuts
grease yer pan
hang 20 toes
hang at the Y
hanky panky
harpoon the moon
have relations
hide the pole
hit some skins
humpy-squirty
hot yoga
intromission
jam the clam
jiffy-stiff
jiggery-poke
jingle-jangle
have intercourse
knock boots
lay some pipe
lust-and-thrust
make bacon
make love
make whoopee
have marital congress
mash the fat
mattress dance
mingle limbs
monkey business
monster mash
mort douce
move furniture
myrtle turtles
nail the wall
occupy france
organ grind
oscillate
pass the gravy
peel tree bark
pile-drive
plant the parsnip
play DND
play tetris
poke squid
polish floors
pork n beans
make out
post a letter
pump fur
bread and butter
take a flyer
smack the salmon
stuff the beaver
hide the canoli
shake the trailer
shake that bear
do the deed
play catcher
play doctor
get frisky
muck barn
naked wrestle
choke the nun
park the bus
pully hawly
quim-stick
release the kraken
ride St. George
rip-n-dip
rock n roll
rub wet spots
rumbusticate
rumpy-pumpy
netflix and chill
plow the land
search for pocket change
make sexy time
shaboink
shake sheets
shampoo the wookie
sharpen the pencil
shock the monkey
shrimp the barbie
shuck the oyster
sink the pink
skeet-shoot
skin the cat
slam the clam
slap and tickle
slap sloppies
sourkraut
spear the clam
struggle snuggle
stuff the muffin
stuff tacos
sweep the chimney
tame the strange
tame the shrew
tap that ass
thump thighs
thrash the gash
thread the needle
push rope
making fuck
waka-waka
wax that ass
play scrabble
pick up sticks
lay them straight
suck some face
rock the taco
play boggle
cross the moat

File diff suppressed because it is too large Load Diff

@ -0,0 +1,44 @@
#!/usr/bin/env python3
import tweepy
from dotenv import load_dotenv
import os
import random
load_dotenv()
def tweet():
lines = open('tweets.txt').read().splitlines()
new_tweet = random.choice(lines)
if find_dup(new_tweet):
tweet()
else:
return new_tweet
def find_dup(tweet):
with open('tweets.log', 'rt') as f:
tweets = f.readlines()
for line in tweets:
if line.__contains__(tweet):
return True
else:
return False
# Authenticate to Twitter
auth = tweepy.OAuthHandler(os.getenv("APIKEY"), os.getenv("APISECRET"))
auth.set_access_token(os.getenv("TOKEN"), os.getenv("TOKENSECRET"))
# Create API object
api = tweepy.API(auth)
# Create a tweet
new_tweet = tweet()
if find_dup(new_tweet):
new_tweet = tweet()
api.update_status(new_tweet)
# log to file
file = open('tweets.log', 'a')
file.write(new_tweet + "\n")

@ -0,0 +1,23 @@
#!/usr/bin/env python3
import pronouncing
import sys
import random
file1 = open('famous_ppl.txt', 'r')
people = file1.readlines()
random.shuffle(people)
file2 = open('euphemisms.txt', 'r')
euphemisms = file2.readlines()
random.shuffle(euphemisms)
for person in people:
for euphemism in euphemisms:
person = person.rstrip()
last_name = person.split(" ")[-1]
for p in pronouncing.rhymes(last_name.rstrip()):
last = euphemism.split(" ")[-1]
if p == last.rstrip() and last_name.lower() != last.rstrip():
euphemism = euphemism.rstrip()
print(f'♫ I get a little bit {person} / Don\'t want you to {euphemism} / ♪ With nobody else but me')
Loading…
Cancel
Save