{"id":33228541,"url":"https://github.com/pizzatowerfangd/wikimagebot","last_synced_at":"2026-05-12T20:41:12.916Z","repository":{"id":292663999,"uuid":"981566326","full_name":"PizzaTowerFanGD/wikimagebot","owner":"PizzaTowerFanGD","description":"A Mastodon bot posting random Wikipedia images (intermissions from 4-6PM)","archived":false,"fork":false,"pushed_at":"2025-11-12T05:28:49.000Z","size":743,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-11-12T05:31:06.936Z","etag":null,"topics":["bot","github-actions","mastodon","wikipedia"],"latest_commit_sha":null,"homepage":"https://mastodon.social/@wikimagebot","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/PizzaTowerFanGD.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-05-11T12:01:25.000Z","updated_at":"2025-11-12T05:28:53.000Z","dependencies_parsed_at":"2025-08-15T16:09:44.376Z","dependency_job_id":"2c89b7b2-d9c3-4d10-ad63-4201de254eb2","html_url":"https://github.com/PizzaTowerFanGD/wikimagebot","commit_stats":null,"previous_names":["pizzatowerfangd/wikimagebot"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/PizzaTowerFanGD/wikimagebot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PizzaTowerFanGD%2Fwikimagebot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PizzaTowerFanGD%2Fwikimagebot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PizzaTowerFanGD%2Fwikimagebot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PizzaTowerFanGD%2Fwikimagebot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PizzaTowerFanGD","download_url":"https://codeload.github.com/PizzaTowerFanGD/wikimagebot/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PizzaTowerFanGD%2Fwikimagebot/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":284742551,"owners_count":27056072,"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-16T02:00:05.974Z","response_time":65,"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","github-actions","mastodon","wikipedia"],"created_at":"2025-11-16T17:00:27.048Z","updated_at":"2025-11-16T17:01:13.141Z","avatar_url":"https://github.com/PizzaTowerFanGD.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# wiki-image-bot\n\nPosts random images from Wikipedia to Mastodon.\n\n## How to Run Your Own Instance\n\n1. **Fork the Repository:** Click the 'Fork' button at the top right of this page to create your own copy.\n2. **Clone and Install Dependencies:**\n   Clone your forked repository to your local machine. Make sure to replace `YOUR_USERNAME` with your actual GitHub username in the command below:\n   ```bash\n   git clone https://github.com/YOUR_USERNAME/wiki-image-bot.git\n   cd wiki-image-bot\n   pip install -r requirements.txt\n   ```\n3. **Configure Mastodon Access Token:**\n   This bot posts images to Mastodon and requires an access token. (It also requires a Gemini token named GEMINI_API_TOKEN which I'm not telling you how to set up)\n   - Navigate to your Mastodon instance's preferences, then go to 'Development'.\n   - Create a new application. Name it something like 'WikiImageBot'.\n   - Ensure the application has 'write:media' and 'write:statuses' permissions.\n   - After creating the application, your access token will be displayed.\n   - Set this token as an environment variable named `MASTODON_TOKEN`. You can do this by:\n     - Running `export MASTODON_TOKEN='YOUR_ACCESS_TOKEN'` in your terminal session before running the bot. (Replace `YOUR_ACCESS_TOKEN` with the actual token).\n     - Adding this export line to your shell's configuration file (e.g., `~/.bashrc` or `~/.zshrc`) for persistence across sessions.\n     - Using a `.env` file in the project root (note: this repository doesn't include built-in support for loading `.env` files, you'd need to add that functionality if desired).\n4. **Run the Bot Manually:**\n   With dependencies installed and the `MASTODON_TOKEN` environment variable set, run the bot using:\n   ```bash\n   python bot.py\n   ```\n5. **Optional: Automated Execution with GitHub Actions:**\n   This repository includes a GitHub Actions workflow (`.github/workflows/bot.yml`) to run the bot automatically on a schedule. To enable this in your fork:\n   - Go to your forked repository's 'Settings' tab.\n   - Navigate to 'Secrets and variables' \u003e 'Actions' in the sidebar.\n   - Under 'Repository secrets', click 'New repository secret'.\n   - For 'Name', enter `MASTODON_TOKEN`.\n   - For 'Secret', paste your Mastodon access token.\n   - Click 'Add secret'.\n   The GitHub Action should now run as scheduled (e.g., daily) or can be triggered manually from your repository's 'Actions' tab.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpizzatowerfangd%2Fwikimagebot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpizzatowerfangd%2Fwikimagebot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpizzatowerfangd%2Fwikimagebot/lists"}