Code Monkey home page Code Monkey logo

onlyfans-dl's Introduction

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

DON'T OPEN AN ISSUE ABOUT THE REQUESTS LIBRARY. ( #8 #25 #28 #29 #33 #44 #45 #104 #125 )

LOOK: python -m pip install requests

If you have installed requests and it still doesn't work, then this is an issue with your local environment, not onlyfans-dl.

Usage

First, make sure to set your session variables in auth.json.

./onlyfans-dl.py

Session Variables

Requests to the API now need to be signed. This is an obfuscation technique from the developers to discourage scraping. Thanks for the most recent patch goes to DIGITALCRIMINAL.

You need your browser's user-agent, onlyfans session cookie, x-bc HTTP header, and user-id HTTP header. Here's how to get them:

  • Get your user-agent here: ipchicken
  • Session Cookie
    1. Login to OnlyFans as normal
    2. Open the dev console Storage Inspector (SHIFT+F9 on FireFox). or the Application tab of Chrome DevTools
    3. Click Cookies -> https://onlyfans.com
    4. Copy the value of the sess cookie
  • x-bc and user-id
    1. Login to OnlyFans
    2. Open dev console F12 -> Network tab (Ctrl+Shift+E in FireFox)
    3. Go to the home page
    4. In dev tools, click Headers sub-tab (default)
    5. Click on one of the JSON elements (may need to refresh page) and look under request headers on the right. The hints request is a good request to look at, as not all requests have both headers.

There are variables for each of these values at the top of the script. Make sure to update them every time you login or your browser updates.

Contributing

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.

onlyfans-dl's People

Contributors

48763 avatar anonpatch avatar coinsearchr avatar cptpiepmatz avatar digitalnull avatar evgom avatar forsakendaemon avatar jinseobhong avatar k0rnh0li0 avatar livkx avatar lynndixon avatar ontionas avatar r56789-svg avatar spreagit avatar th3k1n91 avatar yonn-trimoreau avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.