{"id":29984406,"url":"https://github.com/clpo13/wikiget","last_synced_at":"2025-10-15T23:13:29.192Z","repository":{"id":62588967,"uuid":"161706395","full_name":"clpo13/wikiget","owner":"clpo13","description":"Download files from MediaWiki sites","archived":false,"fork":false,"pushed_at":"2023-12-02T00:09:04.000Z","size":427,"stargazers_count":4,"open_issues_count":1,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-31T22:21:15.316Z","etag":null,"topics":["batch-download","commons","downloader","mediawiki","multimedia","wikimedia"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/clpo13.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null},"funding":{"ko_fi":"clpo13","liberapay":"clpo13"}},"created_at":"2018-12-13T23:22:08.000Z","updated_at":"2023-12-01T19:31:17.000Z","dependencies_parsed_at":"2023-11-30T21:24:58.250Z","dependency_job_id":"7dbc3005-3649-4195-9aed-31a6838ea6c6","html_url":"https://github.com/clpo13/wikiget","commit_stats":null,"previous_names":[],"tags_count":18,"template":false,"template_full_name":null,"purl":"pkg:github/clpo13/wikiget","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clpo13%2Fwikiget","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clpo13%2Fwikiget/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clpo13%2Fwikiget/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clpo13%2Fwikiget/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/clpo13","download_url":"https://codeload.github.com/clpo13/wikiget/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clpo13%2Fwikiget/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268776169,"owners_count":24305962,"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-08-04T02:00:09.867Z","response_time":79,"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":["batch-download","commons","downloader","mediawiki","multimedia","wikimedia"],"created_at":"2025-08-04T21:01:50.755Z","updated_at":"2025-10-15T23:13:24.155Z","avatar_url":"https://github.com/clpo13.png","language":"Python","funding_links":["https://ko-fi.com/clpo13","https://liberapay.com/clpo13"],"categories":[],"sub_categories":[],"readme":"# wikiget\n\n[![Made with Python](https://img.shields.io/badge/made_with-python-3776AB?logo=python)][python]\n[![GitHub Actions](https://img.shields.io/github/actions/workflow/status/clpo13/wikiget/python.yml?logo=github)][action]\n[![Codecov coverage](https://img.shields.io/codecov/c/gh/clpo13/wikiget)][codecov]\n[![PyPI version](https://img.shields.io/pypi/v/wikiget)][pypi]\n[![PyPI license](https://img.shields.io/pypi/l/wikiget)][license]\n\nSomething like [wget] for downloading a file from MediaWiki sites (like Wikipedia or Wikimedia Commons) using only the\nfile name or the URL of its description page.\n\n## Installation\n\nRequires Python 3.7+ and pip. Install the latest version with:\n\n```bash\npip install wikiget\n```\n\nFor the latest features, at the risk of bugs and undocumented behavior, you can install the development version directly\nfrom [GitHub]:\n\n```bash\npip install https://github.com/clpo13/wikiget/archive/refs/heads/master.zip\n```\n\nAlternatively, if you have [Homebrew] installed:\n\n```bash\nbrew tap clpo13/clpo13\nbrew install wikiget\n```\n\n## Usage\n\n`wikiget [-h] [-V] [-q | -v] [-f] [-s SITE] [-P PATH] [-u USERNAME] [-p PASSWORD] [-o OUTPUT | -a] [-l LOGFILE] [-j THREADS] FILE`\n\nThe only required parameter is `FILE`, which is the file you want to download. It can either be the name of the file on\nthe wiki, including the namespace prefix, or a link to the file description page. If `FILE` is in the form\n`File:Example.jpg` or `Image:Example.jpg`, it will be fetched from the default site, which is \"commons.wikimedia.org\".\nIf it's the fully-qualified URL of a file description page, like `https://en.wikipedia.org/wiki/File:Example.jpg`, the\nfile is fetched from the site in the URL, in this case \"en.wikipedia.org\". Note: full URLs may contain characters your\nshell interprets differently, so you can either escape those characters with a backslash `\\` or surround the entire URL\nwith single `'` or double `\"` quotes. Use of a fully-qualified URL like this may require setting the `--path` flag (see\nnext paragraph).\n\nThe site can also be specified with the `--site` flag, though this will not have any effect if the full URL is given.\nNon-Wikimedia sites should work, but you may need to specify the wiki's script path with `--path` (where `index.php` and\n`api.php` live; on Wikimedia sites it's `/w/`, but other sites may use `/` or something else entirely). Private wikis\n(those requiring login even for read access) are also supported with the use of the `--username` and `--password` flags.\n\nMore detailed information, such as the site used and full URL of the file, can be displayed with `-v` or `--verbose`.\nUse `-vv` to display even more detail, mainly debugging information or API messages. `-q` can be used to silence\nwarnings.  A logfile can be specified with `-l` or `--logfile`. If this option is present, the logfile will contain the\nsame information as `-v` along with timestamps. New log entries will be appended to an existing logfile.\n\nBy default, the program won't overwrite existing files with the same name as the target, but this can be forced with\n`-f` or `--force`. Additionally, the file can be downloaded to a different name with `-o`.\n\nFiles can be batch downloaded with the `-a` or `--batch` flag. In this mode, `FILE` will be treated as an input file\ncontaining multiple files to download, one filename or URL per line. Blank lines and lines starting with \"#\" are\nignored. If an error is encountered, execution stops immediately and the offending filename is printed. For large\nbatches, the process can be sped up by downloading files in parallel. The number of parallel downloads can be set with\n`-j`. For instance, with `-a -j4`, wikiget will download four files at once. Without `-j` or with `-j` by itself without\na number, wikiget will download the files one at a time.\n\n### Example usage\n\n```bash\nwikiget File:Example.jpg\nwikiget --site en.wikipedia.org File:Example.jpg\nwikiget https://en.wikipedia.org/wiki/File:Example.jpg -o test.jpg\n```\n\n## Future plans\n\n- optional machine-readable (JSON) log output\n- batch download by (Commons) category or user uploads\n- maybe: download Wikipedia articles, in plain text, wikitext, or other formats\n\n## Contributing\n\nPull requests, bug reports, or feature requests are more than welcome.\n\nSee [CONTRIBUTING] for more info.\n\n## License\n\nCopyright (C) 2018-2023 Cody Logan and contributors\n\nThis program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public\nLicense as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later\nversion.\n\nThis program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied\nwarranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.\n\nYou should have received a copy of the GNU General Public License along with this program. If not, see\n\u003chttps://www.gnu.org/licenses/\u003e.\n\n[wget]: https://www.gnu.org/software/wget/\n[github]: https://github.com/clpo13/wikiget/\n[homebrew]: https://brew.sh/\n[python]: https://www.python.org/\n[action]: https://github.com/clpo13/wikiget/actions/workflows/python.yml\n[codecov]: https://app.codecov.io/gh/clpo13/wikiget/\n[pypi]: https://pypi.org/project/wikiget/\n[license]: https://github.com/clpo13/wikiget/blob/master/LICENSE\n[contributing]: CONTRIBUTING.md\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fclpo13%2Fwikiget","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fclpo13%2Fwikiget","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fclpo13%2Fwikiget/lists"}