{"id":43993887,"url":"https://github.com/commons-app/commonsmisc","last_synced_at":"2026-02-07T11:08:44.775Z","repository":{"id":69181745,"uuid":"91939508","full_name":"commons-app/commonsmisc","owner":"commons-app","description":null,"archived":false,"fork":false,"pushed_at":"2024-01-19T11:43:58.000Z","size":28,"stargazers_count":4,"open_issues_count":6,"forks_count":5,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-01-19T12:53:24.457Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/commons-app.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}},"created_at":"2017-05-21T07:10:52.000Z","updated_at":"2024-01-19T11:44:02.000Z","dependencies_parsed_at":"2024-01-19T12:47:45.804Z","dependency_job_id":null,"html_url":"https://github.com/commons-app/commonsmisc","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/commons-app/commonsmisc","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/commons-app%2Fcommonsmisc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/commons-app%2Fcommonsmisc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/commons-app%2Fcommonsmisc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/commons-app%2Fcommonsmisc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/commons-app","download_url":"https://codeload.github.com/commons-app/commonsmisc/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/commons-app%2Fcommonsmisc/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29193098,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-07T07:37:03.739Z","status":"ssl_error","status_checked_at":"2026-02-07T07:37:03.029Z","response_time":63,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2026-02-07T11:08:44.229Z","updated_at":"2026-02-07T11:08:44.769Z","avatar_url":"https://github.com/commons-app.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# commonsmisc\n\nThis repo contains some scripts for using with Commons mobile app, in future maybe other ways too. All scripts reside in https://tools.wmflabs.org/urbanecmbot/commonsmisc/, just append filename. \n\n## uploadsbyuser.py\n\nThis script return a single number representing number of total uploads of certain given user. This includes reuploads of files either uploaded by the same user or by somebody else. \n\n### Overview\n* HTTP method: GET\n* Output - single number or nouser when no user was given\n* Parameters\n  * user - mandatory - string - username of user you want to examine - you can use spaces or underscores, Martin Urbanec and Martin_Urbanec is the same\n* Example request: http://tools.wmflabs.org/urbanecmbot/commonsmisc/uploadsbyuser.py?user=Martin%20Urbanec\n\n## feedback.py\n\nThis script returns various numbers about certain given user, like number of thanks they received or number of usages of their files at projects of the Wikimedia Foundation. \n\n### Overview\n* HTTP method: GET\n* Output - JSON\n  * Keys are described below\n  * status - string - ok or error, depending on successfullness of the request\n  * labs - boolean, indicates if request was made with production (false) or beta (true) database\n  * database - string, database that was queries (like \"commonswiki\" or \"enwiki\")\n  * user - username of the user we're examining (you can use spaces or underscores, Martin Urbanec and Martin_Urbanec is the same)\n  * errorCode - string - when status==\"error\", this described what actually happened, currently it may only be mustpassparams which means that not all mandatory parameters (see below) were passed to the script. \n  * uniqueUsedImages - number - how many images was used in at least one article\n  * articlesUsingImages - number - how many times was images uploaded by examined user used\n  * thanksReceived - number - how many thanks have the user recieved\n  * featuredImages - dictionary - how many images received particular award of Commons users\n    * key is category name of the award, value is number of images that are in that category = received that award\n  * deletedUploads - number - how many uploads uploaded by examined user was deleted\n* Parameters\n  * user - mandatory - string - username of user you want to examine (you can use spaces or underscores, Martin Urbanec and Martin_Urbanec is the same)\n  * fetch - optional - array; separated by | - values from the output that you want to receive - default value is calculate everything possible\n  * db - optional - string - select other production database to be queried, cannot be used with labs\n  * labs - optional - string - select beta/labs database to be queried, cannot be used with db\n* Example requests\n  * Everything about Martin Urbanec: https://tools.wmflabs.org/urbanecmbot/commonsmisc/feedback.py?user=Martin_Urbanec\n  * Featured images by Martin Urbanec and how many thanks did he receive: https://tools.wmflabs.org/urbanecmbot/commonsmisc/feedback.py?user=Martin_Urbanec\u0026fetch=featuredImages|thanksReceived\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcommons-app%2Fcommonsmisc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcommons-app%2Fcommonsmisc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcommons-app%2Fcommonsmisc/lists"}