Skip to main content
OF-Scraper

OF-Scraper

Download what you're subscribed to on OnlyFans and Fansly, from the command line.

Latest release PyPI Python 3.11 to 3.15 codecov Discord

Install · Docs · Help · Releases · Discord · Support


OF-Scraper in a terminal

✨ Features

📥 Downloads Posts, messages, stories, highlights, purchases, streams and labels. Resumes where it stopped, even after an IP change.
🔐 DRM video Protected videos download and decrypt, with ffmpeg 6, 7 and 8+.
🌐 Fansly Posts, messages, purchases, labels and livestream recording, alongside OnlyFans.
🔎 Filters Choose exactly what to download by date, type, length, size, price, text and more.
🗂️ Check table Browse a creator's media, pick what you want, and download only that.
❤️ Bulk actions Like or unlike posts in bulk.
🐳 Runs anywhere PyPI, Windows/macOS/Linux builds, or Docker, with a daemon mode for scheduled runs.

📦 Install

This version is on PyPI as ofscraper-community. The command is ofscraper.

uv tool install ofscraper-community
Other ways to install, update or switch

Requirements: Python 3.11 to 3.15, and ffmpeg 6 or newer for DRM-protected videos.

pipx or pip

pipx install ofscraper-community
pip install ofscraper-community

Update

uv tool upgrade ofscraper-community
pipx upgrade ofscraper-community
pip install -U ofscraper-community

Coming from ofscraper: the old ofscraper package on PyPI stops at 3.14.7. Both install the same ofscraper command, so uninstall the old one first (uv tool uninstall ofscraper, pipx uninstall ofscraper or pip uninstall ofscraper). Your config, auth and databases are used as they are.

Without Python: download the Windows, macOS or Linux build from the latest release. A Docker image is also available.

🚀 Getting started

Run ofscraper and follow the prompts. The first run asks for your auth details and creates a config file in ~/.config/ofscraper/.

📖 Read the docs for setup, auth, config options and commands. Every command, option and setting is also listed in the reference. Docs for 3.14 and earlier are here.

🆘 Help

Auth keeps failing
  • Copy sess, auth_id, x-bc and user_agent again from the browser you're logged in with. They stop working when you log out, and user_agent must match that browser exactly.
  • Make sure you're on the latest release. The auth check says why it failed: a logged-out session, an unusable dynamic rule, or a network error.
  • If one dynamic rule keeps failing, try another with dynamic-mode-default in your config.
Protected videos stay as .part files
  • Set up cdm_options in your config. See the CDM guide.
  • Install ffmpeg 6 or newer and put its full path in binary_options → ffmpeg.
Migrating from DIGITALCRIMINALS' script

OF-Scraper is built to make the move easy. See the Migration Guide.

Reporting a bug or asking for a feature
  • Open an issue, or ask in the Discord.
  • Bug reports need a log (run with --log debug) and your config. Reports without them will be closed.
  • Feature requests are welcome as issues or in Discord Suggestions.
  • For a private report, open a ticket in the Discord ticket channel. Only you and the admins can see it.

📜 About

OF-Scraper started as a fork of the original onlyfans-scraper. With support from the community and steady updates, the code has been largely rewritten since. Some changes are listed in CHANGES.md; the rest are in the commit history and the release notes.

💖 Support

If OF-Scraper is useful to you, you can support its development:

Buy Me A Coffee

BTC ETH
BTC address ETH address

⚖️ Disclaimers

  1. This tool isn't affiliated, associated or partnered with OnlyFans or Fansly in any way, and isn't authorized, endorsed or sponsored by them. All OnlyFans trademarks belong to Fenix International Limited.
  2. This is a theoretical program for educational purposes only. It may or may not work. If you use it, you accept full responsibility and indemnify the creator, hosts, contributors and everyone else involved from any and all responsibility.

Metadata

Release files for ofscraper 3.16.14

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

Source distribution (sdist)

Source distribution for ofscraper 3.16.14
File Size Uploaded Provenance Actions
ofscraper-3.16.14.tar.gz 1.8 MB Without provenance Details for ofscraper-3.16.14.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for ofscraper 3.16.14
File Interpreter ABI Platform Actions
ofscraper-3.16.14-py3-none-any.whl Python 3 none any Details for ofscraper-3.16.14-py3-none-any.whl

Total release size: 2.3 MB

Release files / ofscraper-3.16.14.tar.gz

Download URL ofscraper-3.16.14.tar.gz
Size 1.8 MB
Tags Source
SHA-256 checksum
How to use checksums
c3e9bfb7f85311ef2b720e26204391d98bda6cf89b43ed857b3b8904512314c1
BLAKE2b-256 checksum
How to use checksums
8e10b52c8da76271c2a8b5c1f7c7244159c123634a230aacea98679ca694cd6e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / ofscraper-3.16.14-py3-none-any.whl

Download URL ofscraper-3.16.14-py3-none-any.whl
Size 544.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
42cfcd817e07898aee36c3ed186e76695968ed4fd6c78bdee585a63231079263
BLAKE2b-256 checksum
How to use checksums
e0a4ae527ffca76ad9a95ade535fa39f250e8c86b55f292565c110ea3c503dd2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Security for ofscraper 3.16.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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

3.16.14 This release

2 release files No 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