{"id":19507177,"url":"https://github.com/mouse-reeve/twitter-bot","last_synced_at":"2025-07-10T19:04:38.368Z","repository":{"id":77871067,"uuid":"114055564","full_name":"mouse-reeve/twitter-bot","owner":"mouse-reeve","description":"Boilerplate code for quickly creating a simple twitter bot","archived":false,"fork":false,"pushed_at":"2017-12-13T16:18:34.000Z","size":18,"stargazers_count":34,"open_issues_count":0,"forks_count":2,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-26T02:51:31.403Z","etag":null,"topics":["boilerplate","python3","twitter-bot"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mouse-reeve.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-12-13T00:54:55.000Z","updated_at":"2024-02-15T02:19:28.000Z","dependencies_parsed_at":"2023-04-12T12:17:55.438Z","dependency_job_id":null,"html_url":"https://github.com/mouse-reeve/twitter-bot","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mouse-reeve/twitter-bot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mouse-reeve%2Ftwitter-bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mouse-reeve%2Ftwitter-bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mouse-reeve%2Ftwitter-bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mouse-reeve%2Ftwitter-bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mouse-reeve","download_url":"https://codeload.github.com/mouse-reeve/twitter-bot/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mouse-reeve%2Ftwitter-bot/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264638260,"owners_count":23642133,"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":["boilerplate","python3","twitter-bot"],"created_at":"2024-11-10T22:41:24.514Z","updated_at":"2025-07-10T19:04:38.350Z","avatar_url":"https://github.com/mouse-reeve.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Twitter Bot Template\n\nBoilerplate for creating simple, non-interactive twitter bots that post periodically. My comparisons bot, [@botaphor](https://github.com/mouse-reeve/metaphinder), is an example of how I use this template in practice.\n\nThis is intended for coders familiar with Python and bash.\n\n## Instructions\n\nTo make a bot, copy this repo and run `start.sh` to create\na virtualenv and settings file.\n\nWhen you're done (or at a stop-and-test point) with your bot,\nrun `ready.sh` to set up the python package and run tests.\n\nTo start tweeting on a schedule, run `python cron_lines.py` to generate\nthe lines you'll need to add to cron.\n\n\n## Structure\n\nThe code that generates tweet content lives in the `get_tweet` method in `bot/generator.py`. Until you add your own functionality, it will tweet out \"test tweet\".\n\nYou will need to fill out the `bot/settings.py` that is generated when you run `start.sh`. Make sure you set an absolute path in `FILEPATH`, and fill in the API keys section with the keys you get from twitter.\n\nIf you set `USE_QUEUE` to `True` in `bot/settings.py`, a `queue.json` file will be created when the bot runs and populated with tweet data objects, which can be tweeted out later. This allows you to check what your bot will do before it goes live, and make sure that there is enough content waiting if your `get_tweet` script doesn't always produce results. The script will attempt to write 10 tweets to the queue every time it is run; you can customize this number by changing `QUEUE_COUNT`.\n\nBy default, potential tweets will be checked against a non-comprehensive list of potentially offensive words in `bot/blacklist.py`, and if the check fails, no tweet will be created or posted.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmouse-reeve%2Ftwitter-bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmouse-reeve%2Ftwitter-bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmouse-reeve%2Ftwitter-bot/lists"}