Skip to main content

DeviantArt Downloader

语言 / Language: 中文 · English

一个可靠、聚焦的 DeviantArt 下载 / 归档命令行工具。

完整文档 · 更新日志

CI PyPI Python Downloads License Docs

快速开始

需要 Python 3.10 或更高版本。

python -m pip install -U devart-dl

# 单张作品(也支持 fav.me 短链、裸 artwork id)
devart-dl https://www.deviantart.com/username/art/title-123456

# 画廊 / 作者全集
devart-dl https://www.deviantart.com/username/gallery

# 收藏夹 / 标签
devart-dl https://www.deviantart.com/username/favourites
devart-dl https://www.deviantart.com/tag/landscape

# 解析为 JSON 描述(不下载文件)
devart-dl resolve https://www.deviantart.com/username/art/title-123456

首次下载前建议使用 OAuth 登录:

devart-dl login oauth --client-id 你的_PUBLIC_CLIENT_ID
devart-dl whoami

不会注册 OAuth 应用也可以使用 Cookie。最简单的是一键浏览器登录(本机装 Chrome + Node ≥ 22):

devart-dl login browser   # 打开你的 Chrome 登录,自动保存 Cookie,无需 F12 复制

完整图文式步骤见 登录与认证教程。

普通用户无需手动下载 GitHub Release 里的 .whl、.tar.gz 或 Source code,运行上面的 pip install 即可。文件区别和 SHA256 校验方法见完整文档。

功能

  • 官方 API(OAuth)优先:登录一次即可下载原图,无需导出 Cookie,也无需防封延时。
  • URL 优先:直接粘贴作品 / 画廊 / 收藏夹 / 标签链接即可下载。
  • 文本作品:文学 / 日志型 deviation 在响应内直接提取正文,保存为 UTF-8 .txt;媒体与文本自动分流。
  • 下载可靠:HTTP Range 断点续传、自动重试、429 退避、原子落盘。
  • 下载档案:--archive 用 SQLite 记住已下载,跨会话自动跳过。
  • 路径模板 + 元数据 sidecar:--directory/--filename 模板与 --write-info-json。
  • 代理与降级:支持 --proxy;未登录 OAuth 时自动回退 Cookie。
  • Resolve 模式:devart-dl resolve URL 输出 ResolvedDeviation/MediaAsset 的 JSON 契约,不写文件。
  • 付费/订阅锁定识别:官方 API 返回 premium_folder_data / tier_access,或网页端非成熟作品的模糊主图(blur_),都会识别为「需要订阅/购买」:网页通道跳过,官方通道明确报错,不再把打码图当原图保存。

文档

你想做什么 文档
下载安装包 下载页
登录与认证 登录与认证
命令、配置与 Python 调用 文档站

致谢

  • requests:HTTP 客户端。
  • 登录与归档目录的实现与 gallery-dl 交叉核对过。

许可证与免责声明

本项目基于 MIT License 开源。

注意:本工具仅供个人学习和研究使用。使用者应遵守 DeviantArt 服务条款及版权规定,请勿用于商业用途或大规模抓取导致服务器过载。作者不对任何滥用后果负责。

Metadata

Release files for devart-dl 4.4.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for devart-dl 4.4.1
File Size Uploaded Provenance
devart_dl-4.4.1.tar.gz 61.3 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for devart-dl 4.4.1
File Interpreter ABI Platform
devart_dl-4.4.1-py3-none-any.whl Python 3 none any Details

Total release size: 110.3 kB

Release files / devart_dl-4.4.1.tar.gz

Download URL devart_dl-4.4.1.tar.gz
Size 61.3 kB
Tags Source
SHA-256 checksum
How to use checksums
f76fbcddbd7603b4f05ada154c983b86782a5f859fb8c950af795ca706b8806f
BLAKE2b-256 checksum
How to use checksums
3fbdc99e77370db29d1ce23b6ae6db40b4efec7e6c61ab53322f4e0340c81eba
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 7, 2026.

Transparency log

Release files / devart_dl-4.4.1-py3-none-any.whl

Download URL devart_dl-4.4.1-py3-none-any.whl
Size 49.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
73b5ebc1a36419e55cc0e1dd7ed3e0290c4c85401e0c0eaf686da18201daac1f
BLAKE2b-256 checksum
How to use checksums
c32b0c4343f79dca8ca5a7b9107050f81de7ba0b4b13e743d5f986cbc05802b2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 7, 2026.

Transparency log

Security for devart-dl 4.4.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for devart_dl-4.4.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 7, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Release history Release notifications | RSS feed

This release

4.4.1 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page