Skip to content

About

OnlyFans content downloader

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

9 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

THE GREAT KORNHOLIO PRESENTS

OnlyFans Profile Downloader/Archiver

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/.

Usage

./onlyfans-dl.py <profile> <accessToken>

  • <profile> - the username of the profile to download
  • <accessToken> - your session's auth token (see below for how to find this)

Access Token

OnlyFans does a bunch of captcha schit in the login, so I wasn't able to automate the login process. It's very easy to get your auth token though, here's how:

  • Open your browser.
  • After check the value of your User-Agent(you can this here, copy it. and put it in the value of the User-Agent key of API_HEADER in ./onlyfans-dl.py
  • Login to OnlyFans as normal.
  • Once you have logged in, open the web console. (Press F12 and click "Console")
  • Type localStorage.getItem("accessToken"); and press Enter.
  • Copy the string between the quotes, that's your access token.

Once you have your access token, don't logout or otherwise end your session until you have finished downloading content with onlyfans-dl.

Contributing

Please open an issue if you have problems running this.

PRs are welcome; be sure to take some time to familiarize yourself with OnlyFans' API if you would like to extend/modify the functionality of this script.

About

OnlyFans content downloader

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages