Created
February 25, 2015 07:04
-
-
Save marsimaria/e7cfb0415cc319b27bb1 to your computer and use it in GitHub Desktop.
Mixing a list of words into Britney's song
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
Oh baby, baby | |
Oh baby, baby | |
Oh baby, baby | |
How was I supposed to know | |
That something wasn't right here | |
Oh baby baby | |
I shouldn't have let you go | |
And now you're out of sight, yeah | |
Show me, how you want it to be | |
Tell me baby | |
'Cause I need to know now what we've got | |
My loneliness is killing me | |
I must confess, I still believe | |
When I'm not with you I lose my mind | |
Give me a sign | |
Hit me baby one more time | |
Oh baby, baby | |
The reason I breathe is you | |
Boy you got me blinded | |
Oh baby, baby | |
There's nothing that I wouldn't do | |
That's not the way I planned it | |
Show me, how you want it to be | |
Tell me baby | |
'Cause I need to know now what we've got | |
Oh baby, baby | |
Oh baby, baby | |
Ah, yeah, yeah | |
Oh baby, baby | |
How was I supposed to know | |
Oh pretty baby | |
I shouldn't have let you go | |
I must confess, that my loneliness | |
Is killing me now | |
Don't you know I still believe | |
That you will be here | |
And give me a sign | |
Hit me baby one more time | |
I must confess that my loneliness | |
Is killing me now | |
Don't you know I still believe | |
That you will be here | |
And give me a sign | |
Hit me baby one more time |
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
import sys | |
import random | |
boring = ["of", "for", "or", "the", "and", "with", "from", "to", "by", "use", "others", "may", "include:", "about", "\n", "signs", "symptoms", "Using"] | |
# List of words to be randomly inserted | |
psycho_lines = list() | |
for line in open("AntisocialDO.txt"): | |
words = line.split(" ") | |
# print words | |
for word in words: | |
word = word.strip() | |
if word not in boring: | |
# print word | |
psycho_lines.append(word) | |
# print psycho_lines | |
# line = line.strip() | |
# psycho_lines.append(line) | |
random.shuffle(psycho_lines) | |
# print psycho_lines | |
bomt_lines = list() | |
for line in open('babyonemoretime.txt'): | |
line = line.strip() | |
if len(line) > 0: | |
bomt_lines.append(line) | |
# print bomt_lines | |
for line in bomt_lines: | |
if 'baby' in line: | |
r = random.randint(0, len(psycho_lines)) | |
print line.replace('baby', 'baby ' + psycho_lines[r]) | |
else: | |
print line |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment