From da978899fdef32972c6c0b51c9fa7ee86a8e936e Mon Sep 17 00:00:00 2001 From: Julio Biason Date: Fri, 24 May 2013 11:17:15 -0300 Subject: [PATCH] initial import --- lyrics.py | 75 ++++++ lyrics.yaml | 727 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 802 insertions(+) create mode 100644 lyrics.py create mode 100644 lyrics.yaml diff --git a/lyrics.py b/lyrics.py new file mode 100644 index 0000000..3534dd0 --- /dev/null +++ b/lyrics.py @@ -0,0 +1,75 @@ +#!/usr/bin/env python + +import yaml +import random + + +def work(message): + print '>>>', message, '...' + + +def title(message): + print "\n{0}\n".format(message) + + +def display(message): + print message + + +def get_songs(): + work('Getting content') + result = None + with open('lyrics.yaml') as content: + result = yaml.load(content) + return result + + +def pick_song(songs): + work('Picking a song') + song = random.choice(songs) + + while song['done']: + work('Song "{0}" was already picked, getting a new ' + 'one'.format(song['song'])) + song = random.choice(songs) + + return song + + +def firstialize(string): + result = [] + for word in string.split(' '): + result.append(word[0]) + return ''.join(result).upper() + + +def show_hints(song): + display('Artist: {0}'.format(firstialize(song['artist']))) + display('Song: {0}'.format(firstialize(song['song']))) + + +def show_info(song): + display('Artist: {0}'.format(song['artist'])) + display('Song: {0}'.format(song['song'])) + + +def show_song(song): + title('Song picked, here it is:') + display(song['lyrics']) + display('') + + show_hints(song) + + raw_input('Press enter to display the answer:') + + show_info(song) + + +def main(): + songs = get_songs() + while True: + song = pick_song(songs) + show_song(song) + +if __name__ == '__main__': + main() diff --git a/lyrics.yaml b/lyrics.yaml new file mode 100644 index 0000000..e2c5283 --- /dev/null +++ b/lyrics.yaml @@ -0,0 +1,727 @@ +- + artist: Pink Floyd + song: Another Brink In the Wall + done: true + lyrics: > + When we grew up and went to school + + There were certain teachers who would + + Hurt the children in any way they could + + (oof!) + + By pouring their derision + + Upon anything we did + + And exposing every weakness + + However carefully hidden by the kids + + But in the town it was well known + + When they got home at night, their fat and + + Psychopathic wives would thrash them + + Within inches of their lives. + +- + artist: Meredith Brooks + song: B*tch + done: false + lyrics: > + I hate the world today + + You're so good to me + + I know but I can't change + + Tried to tell you + + But you look at me like maybe + + I'm an angel underneath + + Innocent and sweet + + Yesterday I cried + + Must have been relieved to see + + The softer side + + I can understand how you'd be so confused + + I don't envy you + + I'm a little bit of everything + + All rolled into one + +- + artist: Gipsy Kings + song: Bamboleo + done: false + lyrics: > + Este amor llega asi de esta manera + + No tiene la culpa + + Caballo de danza vana + + Porque es muy despreciado, por eso + + No te perdona de llorar + + + + Este amor llega asi de esta manera + + No tiene la culpa, + + Amor de compra e venta + + Amor de en el pasado + + Bem, bem, bem... + +- + artist: Michael Jackson + song: Billie Jean + done: true + lyrics: > + She was more like a beauty queen + From a movie scene + + I said don't mind + But what do you mean + I am the one + Who will dance on the floor in the round + + She said I am the one + Who will dance on the floor in the round + +- + artist: David Bowie + song: China Girl + done: false + lyrics: > + Oh oh oh ohoo little + + Oh oh oh ohoo little + + + + I could escape this feeling, with my + + I feel a wreck without my, little + + I hear her heart beating, loud as thunder + + Saw the stars crashing + +- + artist: Radiohead + song: Creep + done: false + lyrics: > + When you were here before + + Couldn't look you in the eye + + You're just like an angel + + Your skin makes me cry + + + + You float like a feather + + In a beautiful world + + I wish I was special + + You're so fucking special + +- + artist: Bobby Mcferring + song: Don't Worry Be Happy + done: false + lyrics: > + Here is a little song I wrote + + You might want to sing it note for note + + + + In every life we have some trouble + + When you worry you make it double + + ...... + +- + artist: Faith no More + song: Epic + done: true + lyrics: > + Can you feel it, see it, hear it today? + If you can't, then it doesn't matter anyway + You will never understand it cuz it happens too fast + And it feels so good, it's like walking on glass + It's so cool, it's so hip, it's alright + It's so groovy, it's outta sight + You can touch it, smell it, taste it so sweet + But it makes no difference cuz it knocks you off your feet + +- + artist: Tears For Fears + song: Everybody Wants To Rule the World + done: false + lyrics: > + Welcome to your life + + There's no turning back + + Even while we sleep + + We will find you + + Acting on your best behaviour + + Turn your back on mother nature + + + + + + It's my own design + + It's my own remorse + + Help me to decide + + Help me make the most + + Of freedom and of pleasure + + Nothing ever lasts forever + + + +- + artist: Technotronic + song: Pump Up the Jam + done: false + lyrics: > + Yo Come On Move This + + Shake That Body + + Shake That Body + + People dont you know, dont you know + + its about time + +- + artist: Cazuza + song: Exagerado + done: false + lyrics: > + Amor da minha vida + + Daqui até a eternidade + + Nossos destinos + + Foram traçados na maternidade + + + + Paixão cruel desenfreada + + Te trago mil rosas roubadas + + Pra desculpar minhas mentiras + + Minhas mancadas + +- + artist: Billy Idol + song: Eyes Without a Face + done: false + lyrics: > + I'm all out of hope + + One more bad break could bring a fall + + When I'm far from home + + Don't call me on the phone + + To tell me you're alone + + It's easy to deceive + + It's easy to tease + + But hard to get release + +- + artist: Kiss + song: Forever + done: false + lyrics: > + I gotta tell you what I'm feeling inside + + I could lie to myself, but it's true + + There's no denying when I look in your eyes + + Girl, I'm outta my head over you + + + + I lived so long believing all love is blind + + But everything about you + + Is telling me this time it's + +- + artist: the Cure + song: Friday I'm In Love + done: false + lyrics: > + Dressed up to the eyes + + It's a wonderful surprise + + To see your shoes and your spirits rise + + Throwing out your frown + + And just smiling at the sound + + And as sleek as a shriek + + Spinning round and round + + Always take a big bite + + It's such a gorgeous sight + + To see you eat in the middle of the night + + You can never get enough + + Enough of this stuff + + + +- + artist: Cyndi Lauper + song: Girls Just Want To Have Fun + done: false + lyrics: > + I come home in the morning light + + My mother says when you gonna live your life right + + Oh mother dear we're not the fortunate ones + + And + + Oh + +- + artist: Culture Club + song: Karma Chameleon + done: false + lyrics: > + There's a loving in your eyes all the way. + + If I listened to your lies would you say + + I'm a man (a man) without conviction, + + I'm a man (a man) who doesn't know + + How to sell (to sell) a contradiction. + + You come and go, you come and go. + +- + artist: David Bowie + song: Let's Dance + done: false + lyrics: > + If you say run, I'll run with you + + If you say hide, we'll hide + + Because my love for you + + Would break my heart in two + + If you should fall + + Into my arms + + And tremble like a flower + +- + artist: Roxette + song: Listen To Your Heart + done: false + lyrics: > + I know there's something in the wake of your smile + + I get a notion from the look in your eyes, yea + + You've built a love but that love falls apart + + Your little piece of heaven turns too dark + +- + artist: Suzanne Vega + song: Luka + done: false + lyrics: > + I live on the second floor + + I live upstairs from you + + Yes I think you've seen me before + + + + If you hear something late at night + + Some kind of trouble. some kind of fight + + Just don't ask me what it was + + Just don't ask me what it was + + Just don't ask me what it was + +- + artist: Michael Sembello + song: Maniac + done: false + lyrics: > + Just a steel town girl on a saturday night + + Looking for the fight of her life + + In the real-time world no one sees her at all + + They all say she's crazy + + + + Locking rhythms to the beat of her heart + + Changing woman into life + + She has danced into the danger zone + + When a dancer becomes a dance + +- + artist: Frankie Goes To Hollywood + song: Relax + done: false + lyrics: > + But shoot it in the right direction + + Make making it your intention-ooh yeah + + Live those dreams + + Scheme those schemes + + Got to hit me + + Hit me + + Hit me with those laser beams + +- + artist: scorpions + song: rock you like a hurricane + done: false + lyrics: > + It's early morning the Sun comes out + + Last night was shaking and pretty loud + + My cat is purring and scratches my skin + + So what is wrong with another sin? + + + + The bitch is hungry she needs to tell + + So give her inches and feed her well + + More days to come new places to go + + I've got to leave it's time for a show + +- + artist: tears for fears + song: shout + done: false + lyrics: > + In violent times + + You shouldn't have to sell your soul + + In black and white + + They really really ought to know + + Those one track minds + + That took you for a working boy + + Kiss them, goodbye + + You shouldn't have to jump for joy + +- + artist: ace of base + song: the sign + done: false + lyrics: > + I, I gotta new life + + You would hardly recognize me I'm so glad + + How could a person like me care for you? + + (Why?)Why do I bother + + When you're not the one for me + + Ooooo, is enough, enough? + +- + artist: michael jackson + song: thriller + done: false + lyrics: > + It's close to midnight + + Something evil's lurkin' in the dark + + Under the moonlight + + You see a sight that almost stops your heart + + You try to scream + + But terror takes the sound before you make it + + You start to freeze + + As horror looks you right between the eyes + + You're paralyzed + +- + artist: cyndi lauper + song: true colors + done: false + lyrics: > + You with the sad eyes + + Don't be discouraged + + Oh I realize + + It's hard to take courage + + In a world full of people + + You can lose sight of it all + + And the darkness inside you + + Can make you feel so small + +- + artist: p!nk + song: try + done: false + lyrics: > + Ever wonder ‘bout what he’s doing? + + How it all turned to lies? + + Sometimes I think that it’s better to never ask why + + + + Where there is desire there is gonna be a flame + + Where there is a flame someone’s bound to get burned + + But just because it burns doesn’t mean you’re gonna die + +- + artist: twisted sister + song: we're not gonna take it + done: false + lyrics: > + We've got the right to choose + + And there ain't no way we'll lose it + + This is our life, this is our song + + We'll fight the powers that be just + + Don't pick our destiny 'cause + + You don't know us, you don't belong + +- + artist: alice in chains + song: "would?" + done: false + lyrics: > + Know me broken by my master + + Teach thee on child of love hereafter + + + + Into the flood again + + Same old trip it was back then + + So I made a big mistake + + Try to see it once my way + + + + Drifting body it's sole desertion + + Flying not yet quite the notion + + +- + artist: scorpions + song: still loving you + done: false + lyrics: > + Time, it needs time + + To win back your love again + + I will be there, I will be there + + Love, only love + + Can bring back your love someday + + I will be there, I will be there + + +- + artist: rick james + song: super freak + done: false + lyrics: > + She's a very kinky girl + + The kind you don't take home to mother + + She will never let your spirits down + + Once you get her off the street, ow girl + + + + She likes the boys in the band + + She says that I'm her all-time favorite + + When I make my move to her room it's the right time + + She's never hard to please, oh no + + +- + artist: cheap trick + song: surrender + done: false + lyrics: > + Mother told me, yes, she told me + + That I'd meet girls like you + + She also told me, "Stay away + + You'll never know what you'll catch" + + Just the other day I heard + + Of a soldier's falling off + + Some Indonesian junk + + That's going round + +- + artist: spice girls + song: wannabe + done: true + lyrics: > + Yo, I'll say you what I want, what I really really want + + So tell me what you want, what you really really want + + I'll tell you what I want, what I really really want + + So tell me what you want, what you really really want + + I wanna, I wanna, I wanna, I wanna + + I wanna really really really wanna zig-a-zig, ah + + +- + artist: louis armstrong + song: what a wonderful world + done: false + lyrics: > + I see trees of green, red roses too + + I see them bloom for me and you + + And I think to myself, + + +- + artist: laura branigan + song: gloria + done: true + lyrics: > + , you're always on the run now + + Running after somebody, you gotta get him somehow + + I think you've got to slow down before you start to blow it + + I think you're headed for a breakdown, so be careful not to showit + +