{"id":15359197,"url":"https://github.com/hugovk/randimgbot","last_synced_at":"2025-04-15T07:21:58.599Z","repository":{"id":22151857,"uuid":"25483134","full_name":"hugovk/randimgbot","owner":"hugovk","description":"Pick a random image and tweet it","archived":false,"fork":false,"pushed_at":"2024-11-11T19:37:31.000Z","size":44,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-28T17:47:54.858Z","etag":null,"topics":["bot","python","twitterbot"],"latest_commit_sha":null,"homepage":"https://twitter.com/FlagFacts","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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2014-10-20T19:33:59.000Z","updated_at":"2024-11-11T19:37:34.000Z","dependencies_parsed_at":"2025-01-06T00:50:28.099Z","dependency_job_id":"afe7d135-e6f2-4f28-a804-80603d35fbd8","html_url":"https://github.com/hugovk/randimgbot","commit_stats":{"total_commits":38,"total_committers":2,"mean_commits":19.0,"dds":"0.052631578947368474","last_synced_commit":"a1f4a004ea0aa24e91462f372dcc8a3740f671b6"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hugovk%2Frandimgbot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hugovk%2Frandimgbot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hugovk%2Frandimgbot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hugovk%2Frandimgbot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hugovk","download_url":"https://codeload.github.com/hugovk/randimgbot/tar.gz/refs/heads/main","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","python","twitterbot"],"created_at":"2024-10-01T12:44:04.500Z","updated_at":"2025-04-15T07:21:58.579Z","avatar_url":"https://github.com/hugovk.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# randimgbot\n\n[![Test](https://github.com/hugovk/randimgbot/actions/workflows/test.yml/badge.svg)](https://github.com/hugovk/randimgbot/actions/workflows/test.yml)\n[![Python: 3.9+](https://img.shields.io/badge/Python-3.9+-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\nPick a random image and toot it.\n\n## Example\n\nRandimgbot powers **[@FlagFacts@mas.to on Mastodon](https://mas.to/@FlagFacts)**.\n\n## Set up Mastodon\n\nCreate an account at:\n\nhttps://mas.to/auth/sign_up\n\nFollow https://gist.github.com/aparrish/661fca5ce7b4882a8c6823db12d42d26 to create a\nclient ID, client secret, and access token, and store in YAML file. See\n`data/randimgbot_example.yaml`.\n\n## Install dependencies\n\n```bash\npip install -r requirements.txt\n```\n\n## Run it\n\nCall something like:\n\n```bash\npython randimgbot.py -y path/to/randimgbot.yaml -i path/to/dir/full/of/images/*.jpg -t \"Random thing: {0} #randomthing {1}\"\n```\n\nWhere `{0}` will be replaced with a name taken from the filename, and `{1}` is a hashtag\nfrom the name. Either or both can be omitted.\n\nAlternatively with a JSON file:\n\n```bash\npython randimgbot.py -y path/to/randimgbot.yaml -i data/randimgbot_example.json -t \"Random thing: {0} #randomthing {1}\"\n```\n\nWhere the JSON file looks something like data/randimgbot_example.json:\n\n```json\n{\n  \"image1.jpg\": \"Description 1\",\n  \"image2.jpg\": \"Description 2\\nLine 2\"\n}\n```\n\nBy default it will only toot randomly 1/12 times. Change this denominator with\n`--chance`.\n\nCheck full options with:\n\n```bash\npython randimgbot.py -h\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhugovk%2Frandimgbot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhugovk%2Frandimgbot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhugovk%2Frandimgbot/lists"}