This tool downloads all photos/videos from OnlyFans profiles, creating a local archive.\ You must be subscribed to the profile to download their content.
onlyfans-dl will create a directory named after the profile in the current working directory.\ A subdirectory structure will be built depending on the options set.\ Any existing media will be skipped, not redownloaded.\ Content will be named as DATE_ID.EXT (e.g. 2021-04-17_123456.jpg)
Requires Python3 and 'requests': python -m pip install requests
First make sure to set your session variables in the script and configure your options.
./onlyfans-dl.py <profiles / all> <max age (optional)>
<profiles>
- the usernames of profiles to download. Use "all" to get all currently subscribed profiles<max age>
- Optional: Only get posts from the last <integer> days (Messages/Paid not affected)
max age = 0
- sets max age to latest date from the filenames for each profile individuallyYou need your browser's user-agent, onlyfans session cookie, x-bc HTTP header, and user-id. Here's how to get them
SHIFT+F9
on FireFox). or the Application tab of Chrome DevToolssess
cookieF12
-> Network tab (Ctrl+Shift+E
in FireFox)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.
A post with a single photo and video shouldn't be considered an album.\ Allow messages to be limited by age through a separate mechanism/function.