{"id":15359243,"url":"https://github.com/hugovk/gutendelight","last_synced_at":"2025-04-15T07:21:51.114Z","repository":{"id":27320941,"uuid":"30795312","full_name":"hugovk/gutendelight","owner":"hugovk","description":"Tweeting a mix of hip hop (Rapper's Delight, Fight the Power, The Message, etc.) and classic literature from Project Gutenberg.","archived":false,"fork":false,"pushed_at":"2019-12-22T19:26:27.000Z","size":12,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-28T17:47:50.997Z","etag":null,"topics":["bot","gutenberg","hip-hop","literature","rhymes","twitterbot"],"latest_commit_sha":null,"homepage":"https://twitter.com/gutendelight","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/hugovk.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":"2015-02-14T11:55:59.000Z","updated_at":"2019-12-22T19:26:28.000Z","dependencies_parsed_at":"2022-09-02T04:41:53.675Z","dependency_job_id":null,"html_url":"https://github.com/hugovk/gutendelight","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hugovk%2Fgutendelight","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hugovk%2Fgutendelight/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hugovk%2Fgutendelight/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hugovk%2Fgutendelight/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hugovk","download_url":"https://codeload.github.com/hugovk/gutendelight/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249024031,"owners_count":21200016,"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","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":["bot","gutenberg","hip-hop","literature","rhymes","twitterbot"],"created_at":"2024-10-01T12:44:11.712Z","updated_at":"2025-04-15T07:21:51.097Z","avatar_url":"https://github.com/hugovk.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @gutendelight\n\n[![Build Status](https://travis-ci.org/hugovk/python-ci-static-analysis.svg?branch=master)](https://travis-ci.org/hugovk/python-ci-static-analysis)\n[![Python: 3.6+](https://img.shields.io/badge/python-3.6+-blue.svg)](https://www.python.org/downloads/)\n[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)\n\nTweeting a mix of hip-hop (Rapper's Delight, Fight the Power, The Message, etc.) and classic literature from Project Gutenberg.\n\nSee the Twitter bot in action at **[![](https://abs.twimg.com/favicons/favicon.ico)@gutendelight](https://twitter.com/gutendelight)** and some of the best at [![](http://favstar.fm/favicon.ico)Favstar](http://favstar.fm/users/gutendelight).\n\n## Some examples\n\n\u003e The brother who rocks so viciously  \n\u003e *He gazed at me suspiciously*\n\nhttps://twitter.com/hugovk/status/564387719259111425\n\n\u003e He said, \"Sit down, punk, I wanna talk to you  \n\u003e *Each has his lot, and bears the fate he drew.*\n\nhttps://twitter.com/gutendelight/status/566563697787940865\n\n\u003e I guess by now you can take a hunch  \n\u003e *\"Let us consider,\" said he, after lunch.*\n\nhttps://twitter.com/gutendelight/status/566563143791673344\n\n\u003e Then you throw your hands high in the air,  \n\u003e *\"I don't see,\" said the native Bear.*\n\nhttps://twitter.com/gutendelight/status/566560879475687425\n\n## Algorithm goes a little something like this\n\n1. Pick a random line from a file containing a bunch of hip-hop lyrics.\n2. Take the last word and find its rhymes using the [Wordnik API](http://developer.wordnik.com/docs.html#!/word/getRelatedWords_get_4).\n3. Pick a rhyme at random.\n4. Find all the sentences from the [Project Gutenberg August 2003 CD](http://www.gutenberg.org/wiki/Gutenberg:The_CD_and_DVD_Project) (\"contains 600 of our best Ebooks\") that end with that rhyming word (using [gutengrep](https://github.com/hugovk/gutengrep)).\n5. Pick one that's about the same number of syllables as the first line (using [Akkana Peck's countsyl](https://github.com/akkana/scripts/blob/master/countsyl)).\n6. If no rhymes or matches found, or a sentence is too long, try another until something's found.\n7. Tweet 'em!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhugovk%2Fgutendelight","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhugovk%2Fgutendelight","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhugovk%2Fgutendelight/lists"}