[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-2595":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":17,"stars7d":18,"stars30d":19,"stars90d":16,"forks30d":16,"starsTrendScore":20,"compositeScore":21,"rankGlobal":10,"rankLanguage":10,"license":22,"archived":23,"fork":23,"defaultBranch":24,"hasWiki":25,"hasPages":25,"topics":26,"createdAt":10,"pushedAt":10,"updatedAt":36,"readmeContent":37,"aiSummary":38,"trendingCount":16,"starSnapshotCount":16,"syncStatus":39,"lastSyncTime":40,"discoverSource":41},2595,"gallery-dl","mikf\u002Fgallery-dl","mikf","Command-line program to download image galleries and collections from several image hosting sites","https:\u002F\u002Fdiscord.gg\u002FrSzQwRvGnE",null,"Python",18492,1435,165,1100,0,11,114,387,82,44.47,"GNU General Public License v2.0",false,"master",true,[27,28,29,30,31,32,33,34,35],"danbooru","deviantart","downloader","gallery","kemono","mangadex","pixiv","tumblr","twitter","2026-06-12 02:00:42","==========\ngallery-dl\n==========\n\n*gallery-dl* is a command-line program\nto download image galleries and collections\nfrom several image hosting sites\n(see `Supported Sites \u003Cdocs\u002Fsupportedsites.md>`__).\nIt is a cross-platform tool\nwith many\n`command-line \u003Chttps:\u002F\u002Fgdl-org.github.io\u002Fdocs\u002Foptions.html>`__ and\n`configuration \u003Chttps:\u002F\u002Fgdl-org.github.io\u002Fdocs\u002Fconfiguration.html>`__\noptions, as well as powerful\n`file-naming capabilities \u003Chttps:\u002F\u002Fgdl-org.github.io\u002Fdocs\u002Fformatting.html>`__.\n\n-----\n\nMigration\n=========\n\n| Active development has moved to `Codeberg \u003Chttps:\u002F\u002Fcodeberg.org\u002Fmikf\u002Fgallery-dl>`__\n| (see `[Announcement] Moving to Codeberg \u003Chttps:\u002F\u002Fgithub.com\u002Fmikf\u002Fgallery-dl\u002Fissues\u002F9374>`__ for details)\n\n-----\n\n\n.. contents::\n\n|pypi| |discord| |build|\n\n\nDependencies\n============\n\n- Python_ 3.8+\n- Requests_\n\nOptional\n--------\n\n- yt-dlp_ or youtube-dl_: HLS\u002FDASH video downloads, ``ytdl`` integration\n- FFmpeg_: Pixiv Ugoira conversion\n- mkvmerge_: Accurate Ugoira frame timecodes\n- PySocks_: SOCKS proxy support\n- brotli_ or brotlicffi_: Brotli compression support\n- zstandard_: Zstandard compression support\n- PyYAML_: YAML configuration file support\n- toml_: TOML configuration file support for Python\u003C3.11\n- SecretStorage_: GNOME keyring passwords for ``--cookies-from-browser``\n- Psycopg_: PostgreSQL archive support\n- truststore_: Native system certificate support\n- Jinja_: Jinja template support\n\n\nInstallation\n============\n\n\nPip\n---\n\nThe stable releases of *gallery-dl* are distributed on PyPI_ and can be\neasily installed or upgraded using pip_:\n\n.. code:: bash\n\n    python -m pip install -U gallery-dl\n\nInstalling the latest dev version directly  from ``master``\ncan be done with pip_ as well:\n\n.. code:: bash\n\n    python -m pip install -U --force-reinstall --no-deps https:\u002F\u002Fcodeberg.org\u002Fmikf\u002Fgallery-dl\u002Farchive\u002Fmaster.tar.gz\n\nOmit :code:`--no-deps` if Requests_ hasn't been installed yet.\n\nNote: Windows users should use :code:`py` instead of :code:`python`.\n\nIt is advised to use the latest version of pip_,\nincluding the essential packages :code:`setuptools` and :code:`wheel`.\nTo ensure these packages are up-to-date, run\n\n.. code:: bash\n\n    python -m pip install --upgrade pip setuptools wheel\n\n\nStandalone Executable\n---------------------\n\nPrebuilt executable files with a Python interpreter and\nrequired Python packages included are available for\n\n- `Windows \u003Chttps:\u002F\u002Fcodeberg.org\u002Fmikf\u002Fgallery-dl\u002Freleases\u002Fdownload\u002Fv1.32.1\u002Fgallery-dl.exe>`__\n  (Requires `Microsoft Visual C++ Redistributable Package (x86) \u003Chttps:\u002F\u002Faka.ms\u002Fvs\u002F17\u002Frelease\u002Fvc_redist.x86.exe>`__)\n- `Linux   \u003Chttps:\u002F\u002Fcodeberg.org\u002Fmikf\u002Fgallery-dl\u002Freleases\u002Fdownload\u002Fv1.32.1\u002Fgallery-dl.bin>`__\n\n\nNightly Builds\n--------------\n\n| Executables built from the latest commit can be found at\n| https:\u002F\u002Fgithub.com\u002Fgdl-org\u002Fbuilds\u002Freleases\n\n\nSnap\n----\n\nLinux users that are using a distro that is supported by Snapd_ can install *gallery-dl* from the Snap Store:\n\n.. code:: bash\n\n    snap install gallery-dl\n\n\nChocolatey\n----------\n\nWindows users that have Chocolatey_ installed can install *gallery-dl* from the Chocolatey Community Packages repository:\n\n.. code:: powershell\n\n    choco install gallery-dl\n\n\nScoop\n-----\n\n*gallery-dl* is also available in the Scoop_ \"main\" bucket for Windows users:\n\n.. code:: powershell\n\n    scoop install gallery-dl\n\nHomebrew\n--------\n\nFor macOS or Linux users using Homebrew:\n\n.. code:: bash\n\n    brew install gallery-dl\n\nMacPorts\n--------\n\nFor macOS users with MacPorts:\n\n.. code:: bash\n\n    sudo port install gallery-dl\n\nDocker\n--------\nUsing the Dockerfile in the repository:\n\n.. code:: bash\n\n    git clone https:\u002F\u002Fcodeberg.org\u002Fmikf\u002Fgallery-dl.git\n    cd gallery-dl\u002F\n    docker build -t gallery-dl:latest .\n\nPulling image from `Docker Hub \u003Chttps:\u002F\u002Fhub.docker.com\u002Fr\u002Fmikf123\u002Fgallery-dl>`__:\n\n.. code:: bash\n\n    docker pull mikf123\u002Fgallery-dl\n    docker tag mikf123\u002Fgallery-dl gallery-dl\n\nPulling image from `GitHub Container Registry \u003Chttps:\u002F\u002Fgithub.com\u002Fmikf\u002Fgallery-dl\u002Fpkgs\u002Fcontainer\u002Fgallery-dl>`__:\n\n.. code:: bash\n\n    docker pull ghcr.io\u002Fmikf\u002Fgallery-dl\n    docker tag ghcr.io\u002Fmikf\u002Fgallery-dl gallery-dl\n\nPulling *Nightly Build* images built from the latest commit by using the ``dev`` tag:\n\n.. code:: bash\n\n    docker pull mikf123\u002Fgallery-dl:dev\n    docker pull ghcr.io\u002Fmikf\u002Fgallery-dl:dev\n\nTo run the container you will probably want to attach some directories on the host so that the config file and downloads can persist across runs.\n\nMake sure to either download the example config file reference in the repo and place it in the mounted volume location or touch an empty file there.\n\nIf you gave the container a different tag or are using podman then make sure you adjust.  Run ``docker image ls`` to check the name if you are not sure.\n\nThis will remove the container after every use so you will always have a fresh environment for it to run. If you setup a ci-cd pipeline to autobuild the container you can also add a ``--pull=newer`` flag so that when you run it docker will check to see if there is a newer container and download it before running.\n\n.. code:: bash\n\n    docker run --rm  -v $HOME\u002FDownloads\u002F:\u002Fgallery-dl\u002F -v $HOME\u002F.config\u002Fgallery-dl\u002Fgallery-dl.conf:\u002Fetc\u002Fgallery-dl.conf -it gallery-dl:latest\n\nYou can also add an alias to your shell for \"gallery-dl\" or create a simple bash script and drop it somewhere in your $PATH to act as a shim for this command.\n\nNix and Home Manager\n--------------------------\n\nAdding *gallery-dl* to your system environment:\n\n.. code:: nix\n\n    environment.systemPackages = with pkgs; [\n      gallery-dl\n    ];\n\nUsing :code:`nix-shell`\n\n.. code:: bash\n\n    nix-shell -p gallery-dl\n\n.. code:: bash\n\n    nix-shell -p gallery-dl --run \"gallery-dl \u003Cargs>\"\n\nFor Home Manager users, you can manage *gallery-dl* declaratively:\n\n.. code:: nix\n\n    programs.gallery-dl = {\n      enable = true;\n      settings = {\n        extractor.base-directory = \"~\u002FDownloads\";\n      };\n    };\n\nAlternatively, you can just add it to :code:`home.packages` if you don't want to manage it declaratively:\n\n.. code:: nix\n\n    home.packages = with pkgs; [\n      gallery-dl\n    ];\n\nAfter making these changes, simply rebuild your configuration and open a new shell to have *gallery-dl* available.\n\nUsage\n=====\n\nTo use *gallery-dl* simply call it with the URLs you wish to download images\nfrom:\n\n.. code:: bash\n\n    gallery-dl [OPTIONS]... URLS...\n\nUse :code:`gallery-dl --help` or see `\u003Cdocs\u002Foptions.md>`__\nfor a full list of all command-line options.\n\n\nExamples\n--------\n\nDownload images; in this case from danbooru via tag search for 'bonocho':\n\n.. code:: bash\n\n    gallery-dl \"https:\u002F\u002Fdanbooru.donmai.us\u002Fposts?tags=bonocho\"\n\n\nGet the direct URL of an image from a site supporting authentication with username & password:\n\n.. code:: bash\n\n    gallery-dl -g -u \"\u003Cusername>\" -p \"\u003Cpassword>\" \"https:\u002F\u002Ftwitter.com\u002Fi\u002Fweb\u002Fstatus\u002F604341487988576256\"\n\n\nFilter manga chapters by chapter number and language:\n\n.. code:: bash\n\n    gallery-dl --chapter-filter \"10 \u003C= chapter \u003C 20\" -o \"lang=fr\" \"https:\u002F\u002Fmangadex.org\u002Ftitle\u002F59793dd0-a2d8-41a2-9758-8197287a8539\"\n\n\n| Search a remote resource for URLs and download images from them:\n| (URLs for which no extractor can be found will be silently ignored)\n\n.. code:: bash\n\n    gallery-dl \"r:https:\u002F\u002Fpastebin.com\u002Fraw\u002FFLwrCYsT\"\n\n\nIf a site's address is nonstandard for its extractor, you can prefix the URL with the\nextractor's name to force the use of a specific extractor:\n\n.. code:: bash\n\n    gallery-dl \"tumblr:https:\u002F\u002Fsometumblrblog.example\"\n\n\nConfiguration\n=============\n\nConfiguration files for *gallery-dl* use a JSON-based file format.\n\n\nDocumentation\n-------------\n\nA list of all available configuration options and their descriptions\ncan be found at `\u003Chttps:\u002F\u002Fgdl-org.github.io\u002Fdocs\u002Fconfiguration.html>`__.\n\n| For a default configuration file with available options set to their\n  default values, see `\u003Cdocs\u002Fgallery-dl.conf>`__.\n\n| For a commented example with more involved settings and option usage,\n  see `\u003Cdocs\u002Fgallery-dl-example.conf>`__.\n\n\nLocations\n---------\n\n*gallery-dl* searches for configuration files in the following places:\n\nWindows:\n    * ``%APPDATA%\\gallery-dl\\config.json``\n    * ``%USERPROFILE%\\gallery-dl\\config.json``\n    * ``%USERPROFILE%\\gallery-dl.conf``\n\n    (``%USERPROFILE%`` usually refers to a user's home directory,\n    i.e. ``C:\\Users\\\u003Cusername>\\``)\n\nLinux, macOS, etc.:\n    * ``\u002Fetc\u002Fgallery-dl.conf``\n    * ``${XDG_CONFIG_HOME}\u002Fgallery-dl\u002Fconfig.json``\n    * ``${HOME}\u002F.config\u002Fgallery-dl\u002Fconfig.json``\n    * ``${HOME}\u002F.gallery-dl.conf``\n\nWhen run as `executable \u003CStandalone Executable_>`__,\n*gallery-dl* will also look for a ``gallery-dl.conf`` file\nin the same directory as said executable.\n\nIt is possible to use more than one configuration file at a time.\nIn this case, any values from files after the first will get merged\ninto the already loaded settings and potentially override previous ones.\n\n\nAuthentication\n==============\n\nUsername & Password\n-------------------\n\nSome extractors require you to provide valid login credentials in the form of\na username & password pair. This is necessary for\n``nijie``\nand optional for\n``aryion``,\n``danbooru``,\n``e621``,\n``idolcomplex``,\n``imgbb``,\n``inkbunny``,\n``mangadex``,\n``mangoxo``,\n``pillowfort``,\n``sankaku``,\n``subscribestar``,\n``tapas``,\n``tsumino``,\nand ``zerochan``.\n\nYou can set the necessary information in your\n`configuration file \u003CConfiguration_>`__\n\n.. code:: json\n\n    {\n        \"extractor\": {\n            \"subscribestar\": {\n                \"username\": \"\u003Cusername>\",\n                \"password\": \"\u003Cpassword>\"\n            }\n        }\n    }\n\nor you can provide them directly via the\n:code:`-u\u002F--username` and :code:`-p\u002F--password` or via the\n:code:`-o\u002F--option` command-line options\n\n.. code:: bash\n\n    gallery-dl -u \"\u003Cusername>\" -p \"\u003Cpassword>\" \"URL\"\n    gallery-dl -o \"username=\u003Cusername>\" -o \"password=\u003Cpassword>\" \"URL\"\n\n\nCookies\n-------\n\nFor sites where login with username & password is not possible due to\nCAPTCHA or similar, or has not been implemented yet, you can use the\ncookies from a browser login session and input them into *gallery-dl*.\n\nThis can be done via the\n`cookies \u003Chttps:\u002F\u002Fgdl-org.github.io\u002Fdocs\u002Fconfiguration.html#extractor-cookies>`__\noption in your configuration file by specifying\n\n- | the path to a Mozilla\u002FNetscape format cookies.txt file exported by a browser addon\n  | (e.g. `Get cookies.txt LOCALLY \u003Chttps:\u002F\u002Fchrome.google.com\u002Fwebstore\u002Fdetail\u002Fget-cookiestxt-locally\u002Fcclelndahbckbenkjhflpdbgdldlbecc>`__ for Chrome,\n    `Export Cookies \u003Chttps:\u002F\u002Faddons.mozilla.org\u002Fen-US\u002Ffirefox\u002Faddon\u002Fexport-cookies-txt\u002F>`__ for Firefox)\n\n- | a list of name-value pairs gathered from your browser's web developer tools\n  | (in `Chrome \u003Chttps:\u002F\u002Fdevelopers.google.com\u002Fweb\u002Ftools\u002Fchrome-devtools\u002Fstorage\u002Fcookies>`__,\n     in `Firefox \u003Chttps:\u002F\u002Fdeveloper.mozilla.org\u002Fen-US\u002Fdocs\u002FTools\u002FStorage_Inspector>`__)\n\n- | the name of a browser to extract cookies from\n  | (supported browsers are Chromium-based ones, Firefox, and Safari)\n\nFor example:\n\n.. code:: json\n\n    {\n        \"extractor\": {\n            \"instagram\": {\n                \"cookies\": \"$HOME\u002Fpath\u002Fto\u002Fcookies.txt\"\n            },\n            \"patreon\": {\n                \"cookies\": {\n                    \"session_id\": \"K1T57EKu19TR49C51CDjOJoXNQLF7VbdVOiBrC9ye0a\"\n                }\n            },\n            \"twitter\": {\n                \"cookies\": [\"firefox\"]\n            }\n        }\n    }\n\n| You can also specify a cookies.txt file with\n  the :code:`--cookies` command-line option\n| or a browser to extract cookies from with :code:`--cookies-from-browser`:\n\n.. code:: bash\n\n    gallery-dl --cookies \"$HOME\u002Fpath\u002Fto\u002Fcookies.txt\" \"URL\"\n    gallery-dl --cookies-from-browser firefox \"URL\"\n\n\nOAuth\n-----\n\n*gallery-dl* supports user authentication via OAuth_ for some extractors.\nThis is necessary for\n``pixiv``\nand optional for\n``deviantart``,\n``flickr``,\n``reddit``,\n``smugmug``,\n``tumblr``,\nand ``mastodon`` instances.\n\nLinking your account to *gallery-dl* grants it the ability to issue requests\non your account's behalf and enables it to access resources which would\notherwise be unavailable to a public user.\n\nTo do so, start by invoking it with ``oauth:\u003Csitename>`` as an argument.\nFor example:\n\n.. code:: bash\n\n    gallery-dl oauth:flickr\n\nYou will be sent to the site's authorization page and asked to grant read\naccess to *gallery-dl*. Authorize it and you will be shown one or more\n\"tokens\", which should be added to your configuration file.\n\nTo authenticate with a ``mastodon`` instance, run *gallery-dl* with\n``oauth:mastodon:\u003Cinstance>`` as argument. For example:\n\n.. code:: bash\n\n    gallery-dl oauth:mastodon:pawoo.net\n    gallery-dl oauth:mastodon:https:\u002F\u002Fmastodon.social\u002F\n\n\n.. _Python:     https:\u002F\u002Fwww.python.org\u002Fdownloads\u002F\n.. _PyPI:       https:\u002F\u002Fpypi.org\u002F\n.. _pip:        https:\u002F\u002Fpip.pypa.io\u002Fen\u002Fstable\u002F\n.. _Requests:   https:\u002F\u002Frequests.readthedocs.io\u002Fen\u002Flatest\u002F\n.. _FFmpeg:     https:\u002F\u002Fwww.ffmpeg.org\u002F\n.. _mkvmerge:   https:\u002F\u002Fwww.matroska.org\u002Fdownloads\u002Fmkvtoolnix.html\n.. _yt-dlp:     https:\u002F\u002Fgithub.com\u002Fyt-dlp\u002Fyt-dlp\n.. _youtube-dl: https:\u002F\u002Fytdl-org.github.io\u002Fyoutube-dl\u002F\n.. _PySocks:    https:\u002F\u002Fpypi.org\u002Fproject\u002FPySocks\u002F\n.. _brotli:     https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fbrotli\n.. _brotlicffi: https:\u002F\u002Fgithub.com\u002Fpython-hyper\u002Fbrotlicffi\n.. _zstandard:  https:\u002F\u002Fgithub.com\u002Findygreg\u002Fpython-zstandard\n.. _PyYAML:     https:\u002F\u002Fpyyaml.org\u002F\n.. _toml:       https:\u002F\u002Fpypi.org\u002Fproject\u002Ftoml\u002F\n.. _SecretStorage: https:\u002F\u002Fpypi.org\u002Fproject\u002FSecretStorage\u002F\n.. _Psycopg:    https:\u002F\u002Fwww.psycopg.org\u002F\n.. _truststore: https:\u002F\u002Ftruststore.readthedocs.io\u002Fen\u002Flatest\u002F\n.. _Jinja:      https:\u002F\u002Fjinja.palletsprojects.com\u002F\n.. _Snapd:      https:\u002F\u002Fdocs.snapcraft.io\u002Finstalling-snapd\n.. _OAuth:      https:\u002F\u002Fen.wikipedia.org\u002Fwiki\u002FOAuth\n.. _Chocolatey: https:\u002F\u002Fchocolatey.org\u002Finstall\n.. _Scoop:      https:\u002F\u002Fscoop.sh\u002F\n\n.. |pypi| image:: https:\u002F\u002Fimg.shields.io\u002Fpypi\u002Fv\u002Fgallery-dl?logo=pypi&label=PyPI\n    :target: https:\u002F\u002Fpypi.org\u002Fproject\u002Fgallery-dl\u002F\n\n.. |build| image:: https:\u002F\u002Fgithub.com\u002Fmikf\u002Fgallery-dl\u002Factions\u002Fworkflows\u002Ftests.yml\u002Fbadge.svg\n    :target: https:\u002F\u002Fgithub.com\u002Fmikf\u002Fgallery-dl\u002Factions\n\n.. |gitter| image:: https:\u002F\u002Fbadges.gitter.im\u002Fgallery-dl\u002Fmain.svg\n    :target: https:\u002F\u002Fgitter.im\u002Fgallery-dl\u002Fmain\n\n.. |discord| image:: https:\u002F\u002Fimg.shields.io\u002Fdiscord\u002F1067148002722062416?logo=discord&label=Discord&color=blue\n    :target: https:\u002F\u002Fdiscord.gg\u002FrSzQwRvGnE\n","gallery-dl 是一个命令行程序，用于从多个图像托管站点下载图像画廊和集合。它支持包括Danbooru、DeviantArt、Pixiv、Tumblr等在内的多种网站，并提供丰富的命令行选项与配置功能，以及强大的文件命名能力。该工具基于Python开发，具备跨平台特性，适用于需要批量下载在线图片集的用户或开发者。此外，通过安装一些可选依赖项，如yt-dlp、FFmpeg等，还可以增强其视频下载和支持特定格式转换的功能。",2,"2026-06-11 02:50:26","top_language"]