https://github.com/tatsh/patreon-archiver
Download Patreon content.
https://github.com/tatsh/patreon-archiver
api patreon
Last synced: 5 months ago
JSON representation
Download Patreon content.
- Host: GitHub
- URL: https://github.com/tatsh/patreon-archiver
- Owner: Tatsh
- License: mit
- Created: 2022-01-24T23:26:41.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2025-04-07T23:10:32.000Z (over 1 year ago)
- Last Synced: 2025-04-08T00:23:30.458Z (over 1 year ago)
- Topics: api, patreon
- Language: Python
- Homepage: https://patreon-archiver.rtfd.io/
- Size: 527 KB
- Stars: 17
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Funding: .github/FUNDING.yml
- License: LICENSE.txt
Awesome Lists containing this project
README
# patreon-archiver
[](https://www.python.org/)
[](https://pypi.org/project/patreon-archiver/)
[](https://github.com/Tatsh/patreon-archiver/tags)
[](https://github.com/Tatsh/patreon-archiver/blob/master/LICENSE.txt)
[](https://github.com/Tatsh/patreon-archiver/compare/v0.1.6...master)
[](https://github.com/Tatsh/patreon-archiver/actions/workflows/codeql.yml)
[](https://github.com/Tatsh/patreon-archiver/actions/workflows/qa.yml)
[](https://github.com/Tatsh/patreon-archiver/actions/workflows/tests.yml)
[](https://coveralls.io/github/Tatsh/patreon-archiver?branch=master)
[](https://github.com/dependabot)
[](https://patreon-archiver.readthedocs.org/?badge=latest)
[](https://mypy-lang.org/)
[](https://pre-commit.com/)
[](https://python-poetry.org)
[](https://www.pydocstyle.org/)
[](https://docs.pytest.org)
[](https://github.com/astral-sh/ruff)
[](https://pepy.tech/project/patreon-archiver)
[](https://github.com/Tatsh/patreon-archiver/stargazers)
[](https://prettier.io/)
[](https://bsky.app/profile/Tatsh.bsky.social)
[](https://buymeacoffee.com/Tatsh)
[](irc://irc.libera.chat/Tatsh)
[](https://hostux.social/@Tatsh)
[](https://www.patreon.com/Tatsh2)
Save Patreon content you have access to.
## Installation
### Poetry
```shell
poetry add patreon-archiver
```
### Pip
```shell
pip install patreon-archiver
```
## Configuration
Video content will be saved using yt-dlp. You should ensure that you are logged into Patreon in the
appropriate browser profile.
Recommendations in `~/.config/yt-dlp/config` or equivalent file:
```plain
--cookies-from-browser chrome:Default
--add-metadata
--all-subs
--convert-subs srt
--embed-chapters
--embed-metadata
--embed-subs
--embed-thumbnail
--geo-bypass
--merge-output-format mkv
--no-overwrites
--sub-langs all
--write-info-json
--write-subs
--download-archive ~/somewhere-safe
```
## Usage
Run `patreon-archiver`. At minimum, campaign ID of the Patreon content creator is required. See help
with `--help`.
```plain
Usage: patreon-archiver [OPTIONS] CAMPAIGN_ID
Options:
-o, --output-dir TEXT Output directory
-b, --browser TEXT Browser to read cookies from
-p, --profile TEXT Browser profile
-x, --fail Do not continue processing after a failed
yt-dlp command.
-L, --yt-dlp-arg-limit INTEGER Number of media URIs to pass to yt-dlp at a
time.
-P, --use-yt-dlp-for-podcasts Use yt-dlp to download podcasts.
-S, --sleep-time INTEGER Number of seconds to wait between requests
-d, --debug Enable debug output
--help Show this message and exit.
```
## How to get the campaign ID
1. Go to the content creator's main page.
2. View the source and search for `patreon-media/p/campaign/`.
3. After the `/` there should be a number, as in `patreon-media/p/campaign/12345678`. In that case
the campaign ID is `12345678`.