{"id":17444127,"url":"https://github.com/paladini/py-simple-lyric-generator","last_synced_at":"2025-08-10T08:15:06.208Z","repository":{"id":70062228,"uuid":"49835646","full_name":"paladini/py-simple-lyric-generator","owner":"paladini","description":"A simple Markov chains lyric generator written in Python.","archived":false,"fork":false,"pushed_at":"2016-01-17T21:42:25.000Z","size":3,"stargazers_count":18,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-21T07:31:18.956Z","etag":null,"topics":["artists","creator","generator","lyric","lyric-generator","lyrics","markov-chain","music","pink-floyd","pymarkovchain","python","song"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/paladini.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-01-17T21:07:57.000Z","updated_at":"2024-02-15T08:30:08.000Z","dependencies_parsed_at":"2023-03-18T09:21:22.635Z","dependency_job_id":null,"html_url":"https://github.com/paladini/py-simple-lyric-generator","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/paladini/py-simple-lyric-generator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paladini%2Fpy-simple-lyric-generator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paladini%2Fpy-simple-lyric-generator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paladini%2Fpy-simple-lyric-generator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paladini%2Fpy-simple-lyric-generator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/paladini","download_url":"https://codeload.github.com/paladini/py-simple-lyric-generator/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paladini%2Fpy-simple-lyric-generator/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269693601,"owners_count":24460251,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-10T02:00:08.965Z","response_time":71,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["artists","creator","generator","lyric","lyric-generator","lyrics","markov-chain","music","pink-floyd","pymarkovchain","python","song"],"created_at":"2024-10-17T17:05:36.803Z","updated_at":"2025-08-10T08:15:06.184Z","avatar_url":"https://github.com/paladini.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# py-simple-lyric-generator\nA simple Markov chains lyric generator written in Python.\n\nThis small project generate new lyrics based on the lyrics of a given artist. For example, you can ask the script to generate Pink Floyd-like lyrics, so it will read all the lyrics from Pink Floyd and generate a new one with the same style. \n\nI've made a small \"database\" too, so whenever you load all lyrics from a given artist it will be saved on your computer under the *db* folder. This way we can avoid a lot of API calls (that are quite expensive).\n\n### Dependencies\n- [PyMarkovChain](https://github.com/TehMillhouse/PyMarkovChain) (install it using `pip3 install PyMarkovChain`)\n- [requests](http://www.python-requests.org/en/latest/) (install it using `pip3 install requests`)\n- [Wikya Lyrics API](http://api.wikia.com/wiki/LyricWiki_API) (you don't need to install/configure it)\n- Python 3\n\n### Usage\nThe program expects the following arguments:\n```bash\npython3 py-simple-lyric-generator.py \"\u003cname of the artist\u003e\" \u003cnumber_of_phrases_to_generate\u003e\n```\n\nFor example, if you want to generate 10 sentences based on Pink Floyd lyrics you should run:\n```bash\npython3 py-simple-lyric-generator.py \"Pink Floyd\" 10\n```\n\nThen you'll get somewhat like that:\n```\nI'd be gone\nCause I'm the man on the outside looking in\nPlaying to rules\nLotuses lean on each other in yearning\nThe Schoolmaster\nAnd all that you see\nAnd if you don't mind\nIt's awfully considerate of you to leave, Lucy\nWheeling, soaring, gliding b Instrumental He made his way to the see-saw It's awfully considerate of you to think of me here\nDon't accept that what's hap One sound, one single kiss\n```\n\nIf you want to reset cached artists from the database, just run the following:\n```sh\nchmod +x clean_db.sh\n./clean_db.sh\n```\n\n### How it works?\nThis's my first experiment within lyrics generation with Markov chains, but I've read some texts and a lot of examples. In order to understand how can I generate lyrics, please check the following links:\n\n- [Lyricize: A Flask App to Create Lyrics Using Markov Chains](https://realpython.com/blog/python/lyricize-a-flask-app-to-create-lyrics-using-markov-chains/) [very useful]\n- [Text generation with Markov chains](https://lauris.github.io/text-generation-markov-chain)\n- [Generating pseudo random text with Markov chains using Python](http://agiliq.com/blog/2009/06/generating-pseudo-random-text-with-markov-chains-u/)\n\nAnd here you can check some projects on Github that helped me:\n- [Lyrics Can Be Easy](https://github.com/zeyus/lyrics-can-be-easy)\n- [taytay](https://github.com/caktus/taytay) [Taylor-Swift-like lyric generator, I really want to read their code, they have awesome results]\n- [PyMarkovChain](https://github.com/TehMillhouse/PyMarkovChain)\n\n### About\nThe `py-simple-lyric-generator` was created by Fernando Paladini on 01-17-2016, but it was heavily based on another open-source projects you can find at the web. If you have any issue, doubt, problem or suggestion, please feel free to create a [new Issue](https://github.com/paladini/py-simple-lyric-generator/issues) or even contact me at fnpaladini at gmail dot com. \n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpaladini%2Fpy-simple-lyric-generator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpaladini%2Fpy-simple-lyric-generator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpaladini%2Fpy-simple-lyric-generator/lists"}