Skip to content

How to Download OnlyFans Profiles⚓︎

Summary⚓︎

Although this isn't something I advocate doing, I won't say that I haven't done it. There are a number of tools on GitHub that can be used, although some of them require a lot of work to accomplish. This method works as of the time of this writing, but isn't a guarantee it will work for long.

This will be a combination of a copy/paste from the README.md file from the GitHub repo and information I've found useful when using it.

How This Works⚓︎

This tool downloads all photos/videos from an OnlyFans profile, creating a local archive. You must be subscribed to the profile to download their content.

onlyfans-dl will create a directory called profiles in the repo directory. Each profile you download will be stored as a subdirectory of profiles. Inside each profile directory, some information will be saved in info.json, and all media will be downloaded to photos/ and videos/.

First, make sure to set your session variables in auth.json. Doing this will require logging into OnlyFans and opening the Developer Console. The auth.json file will require the following variables...

{
    "user-agent": "",
    "user-id": "",
    "sess": "",
    "x-bc": ""
}

Session Variables⚓︎

Requests to the API now need to be signed. This is an obfuscation technique from the developers to discourage scraping.

You need your browser's user-agent, onlyfans session cookie, x-bc HTTP header, and user-id. The most updated how-to can be found in the GitHub repo under Session Variables.

How to Run the Script⚓︎

It's assumed that at this point, OnlyFans has been logged into and the auth.json file has been populated accordingly. In order to run the script, open a terminal and do the following...

cd /Users/<userid>/onlyfans-dl
python -m onlyfans-dl default

At this point, the script should verify the auth.json file and assuming all is correct, it will provide a list of profiles that are subscribed to. Enter the number of the respective model that you'd like to download. The script will automatically download and organize all content from the profile into the profiles folder.

Resources⚓︎