{"id":27931436,"url":"https://github.com/wikimedianorge/ukbot","last_synced_at":"2025-05-07T03:45:33.288Z","repository":{"id":3761744,"uuid":"4837931","full_name":"WikimediaNorge/UKBot","owner":"WikimediaNorge","description":"Weekly Contest Bot for Wikipedia","archived":false,"fork":false,"pushed_at":"2025-04-22T09:38:05.000Z","size":1248,"stargazers_count":5,"open_issues_count":25,"forks_count":5,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-05-07T03:45:25.845Z","etag":null,"topics":["toolforge","ukbot","wikipedia","wikitech"],"latest_commit_sha":null,"homepage":"https://ukbot.toolforge.org","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/WikimediaNorge.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"MIT-LICENSE.txt","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,"zenodo":null}},"created_at":"2012-06-29T22:37:00.000Z","updated_at":"2025-04-22T09:38:07.000Z","dependencies_parsed_at":"2025-02-15T08:47:34.763Z","dependency_job_id":"639090c8-6d03-45c5-a25e-07491754bfe6","html_url":"https://github.com/WikimediaNorge/UKBot","commit_stats":null,"previous_names":["wikimedianorge/ukbot","danmichaelo/ukbot"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WikimediaNorge%2FUKBot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WikimediaNorge%2FUKBot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WikimediaNorge%2FUKBot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WikimediaNorge%2FUKBot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/WikimediaNorge","download_url":"https://codeload.github.com/WikimediaNorge/UKBot/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252810273,"owners_count":21807759,"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":["toolforge","ukbot","wikipedia","wikitech"],"created_at":"2025-05-07T03:45:32.428Z","updated_at":"2025-05-07T03:45:33.283Z","avatar_url":"https://github.com/WikimediaNorge.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003eUKBot\u003c/h1\u003e\n\n\u003cp align=\"center\"\u003eBot for updating results in writing contests at Wikipedia, deployed at \u003ca href=\"https://ukbot.toolforge.org/\"\u003eukbot.toolforge.org\u003c/a\u003e.\u003c/p\u003e\n\n\u003cdiv align=\"center\"\u003e\n  \u003cp\u003eCreated by \u003ca href=\"https://github.com/danmichaelo\"\u003eDan Michael\u003c/a\u003e and maintained with ❤︎ by \u003ca href=\"https://github.com/WikimediaNorge/UKBot/graphs/contributors\"\u003econtributors\u003c/a\u003e\u003c/p\u003e\n\u003c/div\u003e\n \n## Getting Started\n\nClone code from github\n\n\tgit clone https://github.com/WikimediaNorge/UKBot.git\n\tcd UKBot\n\nCreate a new Python3 virtualenv and activate it:\n\n\tmkdir -p www/python/venv\n\tpython3 -m venv www/python/venv\n\t. www/python/venv/bin/activate\n\nInstall dependencies:\n\n\tpip install .\n\nIf installation fails on Mac, try\n\n\tLDFLAGS=-L/opt/homebrew/lib pip install .\n\nGenerate locales:\n\n    make all\n\nStart a MariaDB instance with the necesseary database tables:\n\n\tdocker compose up -d\n\nCreate a configuration file:\n\n\tcp .env.dist .env\n\nand modify it if needed. The default database credentials should work with the MariaDB instance from Docker, but you may need to add Wikimedia credentials ([Oauth 1.0a consumer-only credentials](https://meta.wikimedia.org/wiki/Special:OAuthConsumerRegistration/propose?wpownerOnly=1\u0026wpoauthVersion=2))\nif you want to actually run the bot locally.\n\nWithin the virtualenv you should now be able to run the bot. For testing purposes, you can create\na sandbox contest page such as this one: https://no.wikipedia.org/wiki/Bruker:Danmichaelo/Sandkasse5\nand test the bot with that page:\n\n\tukbot --page Bruker:Danmichaelo/Sandkasse5 --simulate config/config.no-mk.yml\n\nor using the wrapper script:\n\n\tJOB_NAME=no-mk JOB_ID=adhoc1 ./jobs/run.sh --page Bruker:Danmichaelo/Sandkasse5\n\nTo test the webinterface locally:\n\n\tFLASK_UWSGI_DEBUG=true uwsgi --ini uwsgi.dev.ini --python-autoreload 1 --master --http :5000\n\nTo modify the code and test it locally, you'll need to install it as a pip package first, and then run it:\n\n\tpip install .\n\tukbot --page Bruker:Danmichaelo/Sandkasse5 --simulate config/config.no-mk.yml\n\n\n\n\n## Deployment\n\nThe bot is deployed at [ToolForge](https://wikitech.wikimedia.org/wiki/Portal:Toolforge) under the \"UKBot\" account using \n[Webservice](https://wikitech.wikimedia.org/wiki/Help:Toolforge/Web) and the [Toolforge Jobs Framework](https://wikitech.wikimedia.org/wiki/Portal:Toolforge/Admin/Kubernetes/Jobs_framework). \n\nSee https://wikitech.wikimedia.org/wiki/Tool:UKBot for deployment notes.\n\n## Other notes\n\nForenklet flytkart:\n![Flowchart](https://github.com/danmichaelo/UKBot/raw/master/flowchart.png)\n \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwikimedianorge%2Fukbot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwikimedianorge%2Fukbot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwikimedianorge%2Fukbot/lists"}