{"id":15359209,"url":"https://github.com/hugovk/randomsentencebot","last_synced_at":"2025-11-17T13:40:19.114Z","repository":{"id":27691759,"uuid":"31178322","full_name":"hugovk/randomsentencebot","owner":"hugovk","description":"Tweet a random line from a text file.","archived":false,"fork":false,"pushed_at":"2020-10-30T17:08:40.000Z","size":973,"stargazers_count":6,"open_issues_count":0,"forks_count":2,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-04-15T07:41:36.750Z","etag":null,"topics":["bot","project-gutenberg","python","random","sentence","six-word-story","twitterbot","words"],"latest_commit_sha":null,"homepage":"https://twitter.com/sixworderbot","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-22T20:13:56.000Z","updated_at":"2023-07-31T14:57:44.000Z","dependencies_parsed_at":"2022-09-02T22:21:11.039Z","dependency_job_id":null,"html_url":"https://github.com/hugovk/randomsentencebot","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/hugovk/randomsentencebot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hugovk%2Frandomsentencebot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hugovk%2Frandomsentencebot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hugovk%2Frandomsentencebot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hugovk%2Frandomsentencebot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hugovk","download_url":"https://codeload.github.com/hugovk/randomsentencebot/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hugovk%2Frandomsentencebot/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":284893574,"owners_count":27080531,"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-11-17T02:00:06.431Z","response_time":55,"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":["bot","project-gutenberg","python","random","sentence","six-word-story","twitterbot","words"],"created_at":"2024-10-01T12:44:06.320Z","updated_at":"2025-11-17T13:40:19.099Z","avatar_url":"https://github.com/hugovk.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# randomsentencebot\n\n[![Build Status](https://travis-ci.org/hugovk/randomsentencebot.svg?branch=master)](https://travis-ci.org/hugovk/randomsentencebot)\n[![Python: 3.6+](https://img.shields.io/badge/python-3.6+-blue.svg?logo=python\u0026logoColor=FFE873)](https://www.python.org/downloads/)\n[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg?logo=python\u0026logoColor=black)](https://github.com/psf/black)\n\nTweet a random line from a text file. Use this to make your own Twitter bots.\n\nFor example, \n**[![](https://abs.twimg.com/favicons/favicon.ico)Six-Worder Bot](https://twitter.com/sixworderbot)** is tweeting six-word stories picked at random from a text file of six-word sentences taken from the [Project Gutenberg August 2003 CD](http://www.gutenberg.org/wiki/Gutenberg:The_CD_and_DVD_Project). Think along the lines of \"For Sale, Baby Shoes, Never Worn\" ([probably not by Ernest Hemingway](http://quoteinvestigator.com/2013/01/28/baby-shoes/)). See the [archive](https://hugovk.github.io/randomsentencebot/).\n\nIn [@sixworderbot](https://twitter.com/sixworderbot)'s case, the text file was generated using [gutengrep](https://github.com/hugovk/gutengrep) something like this:\n\n```bash\ngutengrep.py \"^\\W*([a-zA-ZåäöÅÄÖàéÉÈíšŠ]+['[a-zA-Z]+]?[- :;,.¿?\\!]+){6}\\W*$\" --correct --cache \u003e /tmp/1.txt\n\n# Remove blanks and duplicates:\nsort /tmp/1.txt | uniq \u003e six-word-sentences.txt  # \n```\n\n## Setup\n\nBefore you can use  this script you will need to get API credentials from Twitter.\n\nGo to https://developer.twitter.com/en/apps and create a new app. Once approved you will be able to access the credentials below.\n\n    consumer_key: TODO_ENTER_YOURS\n    consumer_secret: TODO_ENTER_YOURS\n    access_token: TODO_ENTER_YOURS\n    access_token_secret: TODO_ENTER_YOURS\n\nCopy `randomsentencebot_example.yaml` to `randomsentencebot.yaml`, then open `randomsentencebot.yaml` and replace each `TODO_ENTER_YOURS` with the value from your Twitter app.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhugovk%2Frandomsentencebot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhugovk%2Frandomsentencebot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhugovk%2Frandomsentencebot/lists"}