Simply scrape / download all the media from an fansly account.

Overview

Title Banner Downloads Stars

UI Banner

Description

On click code, to scrape your favorite fansly creators media content. After you've ran the code, it'll create a folder named CreatorName_fansly in the same directory you launched the code from. That folder will have two sub-folders called Pictures & Videos, which will contain the downloaded content sorted into them. This is pretty useful for example; if you dislike the website theming and would like to view the media on your local machine instead. This code does not bypass any paywalls & no end user information is collected during usage.

How To

  1. If you have Python installed download the GitHub repository, else use the Executable version
  2. Make sure you have registered an account on fansly and are logged in with it in your browser or you'll not be able to get a authorization token from Developer Console.
  3. Go to whatever creators account page and open your browsers developer console (Most often Key: F12)
  4. Reload the website by using the rotating arrow symbol to the left of your browsers search bar(Key: F5), while the developer console is open. Now do the steps on the following picture:
  5. GitHub Banner
  6. Now paste both of the strings - that were on the right side of authorization: & User-Agent: - which you just copied, as shown in the picture above. Into the configuration file (config.ini) and replace the two strings with their corresponding values. (1. [MyAccount] > Authorization_Token= paste the value for authorization:; 2. [MyAccount] > User_Agent= paste the value for User-Agent:.
  7. Replace the value for [TargetedCreator] > Username= with whatever content creator you wish.
  8. Save the config.ini file with the changes you've done to it, close it & then start up fansly scraper.

From now on, you'll only need to re-do step 7 for every future use case.

Not enough content downloaded? Enable media previews. (Download_Media_Previews to True in the configuration file)

You can turn Open_Folder_When_Finished to False; if you no longer wish the download folder to automatically open after code completion.

Installation

You can just install the Executable version. Else you'll need to install python (ticking pip in installer) and paste below in cmd.exe.

pip install requests loguru imagehash pillow

Support

Dependant on how many people show me that they're liking the code by giving 's on this repo, I'll expand functionality & push more quality of life updates. Would you like to help out more? Any crypto donations are welcome!

BTC: bc1q82n68gmdxwp8vld524q5s7wzk2ns54yr27flst

ETH: 0x645a734Db104B3EDc1FBBA3604F2A2D77AD3BDc5

Disclaimer

"Fansly" or fansly.com is operated by Select Media LLC as stated on their "Contact" page. This code (Avnsx/fansly) isn't in any way affiliated with, sponsored by, or endorsed by Select Media LLC or "Fansly". The developer of this code is not responsible for the end users actions. Of course I've never even used this code myself ever before and haven't experienced its intended functionality on my local machine. This was written purely for educational purposes, in a entirely theoretical environment.

Written with python 3.9.7 for Windows 10, Version 21H1 Build 19043.1237

Comments
  • Scraper Not Downloading Media From Messages

    Scraper Not Downloading Media From Messages

    As title suggests, I am having trouble downloading media from messages. The scraper provides the line "No scrapable media found in messages" even though there is plenty of media to download from messages. Please help.

    opened by DennisKaizer 10
  • i can't downlaod the content in private messages - Fansly

    i can't downlaod the content in private messages - Fansly

    Hello Avnsx=) I Want Thank You For Your project about Fansly, is working well=) But it seems to me that the program is not working for the content that is in the messages, i hope/wish you get a solution for this situation=) Continuation of a good work

    added feature 
    opened by Milomamas 10
  • does not download entire media

    does not download entire media

    ive tried running this several times and it downloads maybe 1/6th of the total images and videos before closing/crashing (??) i dont have the knowledge necessary to offer anything more helpful than that to diagnose the problem, sorry.

    good first issue solved 
    opened by alfratrople 9
  • Incomplete download

    Incomplete download

    Hello,

    I noticed that the videos and photos older than a specific date (July 14 2022) were not downloaded.

    What could be the reason for this?

    Is there a way to specify media download for a specific date range?

    Thanks and congrats for this wonderful tool.

    builds 
    opened by mssm45 7
  • API Returned unauthorized

    API Returned unauthorized

    This started happening after updating to 0.3.4. The error message would show "Used authorization token" but it's completely different from the actual cookie. Pretty much like this issue. https://github.com/Avnsx/fansly/issues/30

    bug solved 
    opened by ForcedToRock 7
  • API returned unauthorized

    API returned unauthorized

    Hey, firstly thank you for this, it's really a nice tool to use ! I used it several times without issues. I didnt change anything but now I have this message : [11]ERROR | 20:56 || API returned unauthorized. This is most likely because of a wrong authorization token, in the configuration file.

    But I cant change the authorization token.

    Can you tell me what to do there ? Thank you very much !

    bug solved 
    opened by sashacorosk 7
  • EOF Error

    EOF Error

    The application crashed and provided me with an error and instructions as I'm sure you know because you programmed it. Here is the error. I'm not sure what extra information I can provide. I was using previously downloaded files from .2 and tried the new update old download folder option. Let me know if you need more information.

    Traceback (most recent call last):
      File "urllib3\connectionpool.py", line 703, in urlopen
      File "urllib3\connectionpool.py", line 398, in _make_request
      File "urllib3\connection.py", line 239, in request
      File "http\client.py", line 1282, in request
      File "http\client.py", line 1328, in _send_request
      File "http\client.py", line 1277, in endheaders
      File "http\client.py", line 1037, in _send_output
      File "http\client.py", line 998, in send
      File "ssl.py", line 1236, in sendall
      File "ssl.py", line 1205, in send
    ssl.SSLEOFError: EOF occurred in violation of protocol (_ssl.c:2384)
    
    During handling of the above exception, another exception occurred:
    
    Traceback (most recent call last):
      File "requests\adapters.py", line 440, in send
      File "urllib3\connectionpool.py", line 785, in urlopen
      File "urllib3\util\retry.py", line 592, in increment
    urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='cdn2.fansly.com', port=443): Max retries exceeded with url (Caused by SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:2384)')))
    
    During handling of the above exception, another exception occurred:
    
    Traceback (most recent call last):
      File "fansly_scraper.py", line 304, in <module>
      File "requests\sessions.py", line 542, in get
      File "requests\sessions.py", line 529, in request
      File "requests\sessions.py", line 645, in send
      File "requests\adapters.py", line 517, in send
    requests.exceptions.SSLError: HTTPSConnectionPool(host='cdn2.fansly.com', port=443): Max retries exceeded with url  (Caused by SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:2384)')))
    
    bug solved 
    opened by Nostang3 7
  • Did I miss a step

    Did I miss a step

    I used the auto config. Entered the name I wanted. Ran the scraper, the scraper couldn't find the folder where to download. It didn't create one so I did using the exact name and interior folder names. It ran saying it was downloading a bunch of files, but once fully finished only videos were downloaded.

    I double checked the folder names and they are exactly like the prompt. At first I thought I was due to the folder, but since the videos are downloading I am very confused why the photos are not.

    invalid 
    opened by EricVodka 6
  • Download more then one model at a time

    Download more then one model at a time

    can i just download all models consecutively or list more then one manually. If i sub to 5 models and want to run one command to grab them all is that possible

    opened by ctrlcmdshft 4
  • Naming files by date posted feature?

    Naming files by date posted feature?

    Hello! I'm just wondering if it's possible to have an option to add the post date to the file name? With all the ones I've downloaded so far, all of the files seem to be out of order according to the creator's video/image set.

    solved 
    opened by pamman2 4
  • Getting Error When Running

    Getting Error When Running

    When I run the scraper I get the error " "'TargetedCreator'" is missing or malformed in the configuration file! Read the ReadMe file for assistance."

    I copied the authorization and User-Agent from the dev tools as explained in the ReadMe but I still get the error. Should they be in quotes or a space between the = and the information I am putting into the config file?

    invalid 
    opened by BDM96 4
  • Doesn't download all posts; Subscribed content is missing

    Doesn't download all posts; Subscribed content is missing

    There are posts that aren't downloaded, it also says 218 duplicates declined! Those 218 could be mistaken for a duplicate but they aren't those are missing posts photos and I'm pretty sure. Wouldn't it be good if there was an option in the config "Put duplicates in separate folder", but it still downloads the duplicates?

    Either way it's missing posts!

    bug help wanted investigating 
    opened by Joakimgreenday 8
  • Executable randomly closes; due to being Rate Limited

    Executable randomly closes; due to being Rate Limited

    I leave it running in the background and after some downloads it simply closes (it's far from having downloaded everything). I'm using Windows 11 and set it to run as admin (without admin it also would close after a bit)

    bug investigating 
    opened by RobertoJKN 7
Releases(v0.3.5)
  • v0.3.5(Sep 1, 2022)

    This is the compiled release of Fansly Scraper. It provides an executable file, with which you can launch the program without having python installed. You'll have to unzip the "Fansly_Scraper.zip" file first with winrar or similar programs.

    Read Quick Start to know how to run fansly scraper

    Changelog v0.3.5

    added configuration settings for:
    + seperating messages or previews into subfolders
      > option "seperate _messages/_previews" can be set to "True" or "False"
    + naming files by date posted (issues id 28 - thanks @pawnstar81)
      > option "naming_convention" is now supported with values "Datepost" or "Standard"
    
    changes:
    + configuration "update_recent_download" can now also be set to "Auto"
    + added support for two factor authentication with AC
    + adjusted scraper for fansly api version 3
    
    fixed a bug:
    + where api would return unauthorized (issues id 30 & 39)
    + where login request no longer returned auth token (issues id 18)
    
    module changes:
    + removed requirement for module selenium_wire
    + adjusted AC for undetected_chromedriver > 3.1.5 (please update!)
    + fixed compability for opera gx (issues id 38)
    

    More information about the new configuration options

    Full Changelog: https://github.com/Avnsx/fansly/compare/v0.3.3...v0.3.5

    VirusTotal (detections?): fansly scraper: https://rebrand.ly/scraper_035 automatic configurator: https://rebrand.ly/config_035 updater: https://rebrand.ly/updater_031

    Compiled using pyinstaller

    Source code(tar.gz)
    Source code(zip)
    Fansly_Scraper.zip(83.95 MB)
  • v0.3.3(Apr 29, 2022)

    This is the compiled release of Fansly Scraper. It provides an executable file, with which you can launch the program without having python installed. You'll have to unzip the "Fansly_Scraper.zip" file first with winrar or similar programs.

    Read Quick Start to know how to run fansly scraper

    Changelog v0.3.3

    bug fixes:
    + adjusted scraper to recent fansly API changes (issues id 17)
    

    VirusTotal (detections?): fansly scraper: https://rebrand.ly/scraper_033 automatic configurator: https://rebrand.ly/config_031 updater: https://rebrand.ly/updater_031

    Compiled using pyinstaller

    Source code(tar.gz)
    Source code(zip)
    Fansly_Scraper.zip(89.00 MB)
  • v0.3.2(Feb 28, 2022)

    This is the compiled release of Fansly Scraper. It provides an executable file, with which you can launch the program without having python installed. You'll have to unzip the "Fansly_Scraper.zip" file first with winrar or similar programs.

    Read Quick Start to know how to run fansly scraper

    Changelog v0.3.2

    changes:
    + low content warnings no longer print; if update_recent is enabled
    + errors now wait for user input; instead of a closing timer
    + now using github api, for version checks
    + improved error outputs, for config.ini issues
    + added rare stargazers reminder
    + added go to github shortcut into download folder
    
    bug fixes:
    + fixed issue with saving (issues id 14)
    

    VirusTotal (detections?): fansly scraper: https://rebrand.ly/scraper_032 automatic configurator: https://rebrand.ly/config_031 updater: https://rebrand.ly/updater_031

    Compiled using pyinstaller

    Source code(tar.gz)
    Source code(zip)
    Fansly_Scraper.zip(88.81 MB)
  • v0.3.1(Feb 4, 2022)

    This is the compiled release of Fansly Scraper. It provides an executable file, with which you can launch the program without having python installed. You'll have to unzip the "Fansly_Scraper_v0.3.1.zip" file first with winrar or similar programs.

    Read Quick Start to know how to run fansly scraper

    Changelog v0.3.1

    changed:
    + if OS unsupported; configurator now automatically redirects to Get Started
    + sleep timers highered for errors
    
    fixed a bug:
    + with message scraping (issues id 11)
    + with profile scraping (issues id 9)
    

    Q&A: Your opinion is asked! Test the software and let me know here

    VirusTotal (detections?): fansly scraper: https://rebrand.ly/scraper_031 automatic configurator: https://rebrand.ly/config_031 updater: https://rebrand.ly/updater_031

    Compiled using pyinstaller 4.8

    Source code(tar.gz)
    Source code(zip)
    Fansly_Scraper_v0.3.1.zip(87.22 MB)
  • v0.3(Feb 2, 2022)

    This is the compiled release of Fansly Scraper. It provides an executable file, with which you can launch the program without having python installed. You'll have to unzip the "Fansly_Scraper_v0.3.zip" file first with winrar or similar programs.

    Changelog v0.3

    changed:
    + added support for scraping media from messages
    + added option to update old download folders
    + added option to show file names during downloads
    + added configurator to now automatically get required token & user agent
    + changed configurator user agent to chrome v97
    + configurator checks if running compiled/IDE & version of required module
    + added updater to update all compiled repository files by just clicking on it
    + scraper now forces you to update it, if it has booted up on a old version
    + scraper version now is stored in config.ini
    
    fixed a bug:
    + with scraping media from messages, if creator had not DMed you
    + where config parser would throw interpolation errors
    + where pyinstaller binary would crash while exiting
    + with the open_when_finished function
    + where creator id would not be found, if no avatar
    + where filenames with over 175 characters might cause a crash
    + where open when finished did not work due to OS
    + where imagehash created lists with numpy arrays in them
    + where save_changes() wouldn't save user_agent
    + causing configurator to fail logging required data
    

    Q&A: Your opinion is asked! Test the software and let me know here

    VirusTotal: Fansly Scraper: https://www.virustotal.com/gui/file/f60aabcc26a2bf6c63cf96fe7d382a283925832f1cbbd936d2ba5f32c3ba1090 Automatic Configurator: https://www.virustotal.com/gui/file/264b02cafb20d215abb39da7d5dcf31fd9eeed11da57aee97fd1f93d9cb9d1c2 updater: https://www.virustotal.com/gui/file/d7244d3eba12320b6e4ead0bf5a136314add49586acb41a6f34d23e4a57d4ec3

    Obviously any detections, are false positives.

    Compiled using pyinstaller 4.8

    Source code(tar.gz)
    Source code(zip)
    Fansly_Scraper_v0.3.zip(87.22 MB)
  • v0.2(Oct 17, 2021)

    This is the compiled release of Fansly Scraper. It provides an executable file, with which you can launch the program without having python installed. You'll have to unzip the "FanslyScraperExecutableV0.2.zip" file first with winrar or similar programs.

    Changelog v0.2

    + now using image fingerprinting & hashing to greatly reduce duplicate videos / images
    + visual updates: now using loguru module for colored output
    + introduced logic to self check:
        - for github repo updates
        - internet connection
        - creators subscribers, followers & available content
    + changed functionality:
        - user now is warned if atleast 20% of available content wasn't successfully archieved
        - adjusted & added more output texts for even more clarification
        - errors now print the full error traceback
    + bug fixes:
        - fixed a bug, where a error would be caused if filenames had characters incompatible with windows
    

    Compiled using pyinstaller.

    VirusTotal: https://www.virustotal.com/gui/file/60c358e606658ea8a329cc25b8368f4293246097cde40cbd8fbe54851b9d215c

    Source code(tar.gz)
    Source code(zip)
    FanslyScraperExecutableV0.2.zip(50.27 MB)
  • v0.1(Oct 9, 2021)

    This is the compiled release of Fansly Scraper. It provides an executable file, with which you can launch the program without having python installed. You'll have to unzip the "FanslyScraperExecutable.zip" file first with winrar or similar programs.

    VirusTotal: https://www.virustotal.com/gui/file/05ea28312775f9e4c5c28bb1d946468b58e67cfcf561a28f0c08c1e6014f4a5d Compiled using: https://github.com/brentvollebregt/auto-py-to-exe

    Source code(tar.gz)
    Source code(zip)
    FanslyScraperExecutable.zip(6.79 MB)
Owner
Mika C.
Passionate programmer and freelancer for various languages, currently focused on Python. I only publish a small portion of the code I write on here.
Mika C.
A web service for scanning media hosted by a Matrix media repository

Matrix Content Scanner A web service for scanning media hosted by a Matrix media repository Installation TODO Development In a virtual environment wit

Brendan Abolivier 5 Dec 1, 2022
Simple tool to scrape and download cross country ski timings and results from live.skidor.com

LiveSkidorDownload Simple tool to scrape and download cross country ski timings and results from live.skidor.com Usage: Put the python file in a dedic

null 0 Jan 7, 2022
Liveskidordownload - Simple tool to scrape and download cross country ski timings and results from live.skidor.com

LiveSkidorDownload Simple tool to scrape and download cross country ski timings

null 0 Jan 7, 2022
This code will be able to scrape movies from a movie website and also provide download links to newly uploaded movies.

Movies-Scraper You are probably tired of navigating through a movie website to get the right movie you'd want to watch during the weekend. There may e

null 1 Jan 31, 2022
script to scrape direct download links (ddls) from google drive index.

bhadoo Google Personal/Shared Drive Index scraper. A small script to scrape direct download links (ddls) of downloadable files from bhadoo google driv

sαɴᴊɪᴛ sɪɴʜα 53 Dec 16, 2022
A command-line program to download media, like and unlike posts, and more from creators on OnlyFans.

onlyfans-scraper A command-line program to download media, like and unlike posts, and more from creators on OnlyFans. Installation You can install thi

null 185 Jul 23, 2022
a way to scrape a database of all of the isef projects

ISEF Database This is a simple web scraper which gets all of the projects and abstract information from here. My goal for this is for someone to get i

William Kaiser 1 Mar 18, 2022
This program will help you to properly scrape all data from a specific website

This program will help you to properly scrape all data from a specific website

MD. MINHAZ 0 May 15, 2022
This tool crawls a list of websites and download all PDF and office documents

This tool crawls a list of websites and download all PDF and office documents. Then it analyses the PDF documents and tries to detect accessibility issues.

AccessibilityLU 7 Sep 30, 2022
Library to scrape and clean web pages to create massive datasets.

lazynlp A straightforward library that allows you to crawl, clean up, and deduplicate webpages to create massive monolingual datasets. Using this libr

Chip Huyen 2.1k Jan 6, 2023
Scrape Twitter for Tweets

Backers Thank you to all our backers! ?? [Become a backer] Sponsors Support this project by becoming a sponsor. Your logo will show up here with a lin

Ahmet Taspinar 2.2k Jan 5, 2023
mlscraper: Scrape data from HTML pages automatically with Machine Learning

?? Scrape data from HTML websites automatically with Machine Learning

Karl Lorey 798 Dec 29, 2022
Docker containerized Python Flask API that uses selenium to scrape and interact with websites

Docker containerized Python Flask API that uses selenium to scrape and interact with websites

Christian Gracia 0 Jan 22, 2022
An utility library to scrape data from TikTok, Instagram, Twitch, Youtube, Twitter or Reddit in one line!

Social Media Scraper An utility library to scrape data from TikTok, Instagram, Twitch, Youtube, Twitter or Reddit in one line! Go to the website » Vie

null 2 Aug 3, 2022
A tool to easily scrape youtube data using the Google API

YouTube data scraper To easily scrape any data from the youtube homepage, a youtube channel/user, search results, playlists, and a single video itself

null 7 Dec 3, 2022
Scrape data on SpaceX: Capsules, Rockets, Cores, Roadsters, SpaceX Info

SpaceX Sofware I developed software to scrape data on SpaceX: Capsules, Rockets, Cores, Roadsters, SpaceX Info to use the software you need Python a

Maxence Rémy 16 Aug 2, 2022
Script for scrape user data like "id,username,fullname,followers,tweets .. etc" by Twitter's search engine .

TwitterScraper Script for scrape user data like "id,username,fullname,followers,tweets .. etc" by Twitter's search engine . Screenshot Data Users Only

Remax Alghamdi 19 Nov 17, 2022
An helper library to scrape data from TikTok in one line, using the Influencer Hunters APIs.

TikTok Scraper An utility library to scrape data from TikTok hassle-free Go to the website » View Demo · Report Bug · Request Feature About The Projec

null 6 Jan 8, 2023
Github scraper app is used to scrape data for a specific user profile created using streamlit and BeautifulSoup python packages

Github Scraper Github scraper app is used to scrape data for a specific user profile. Github scraper app gets a github profile name and check whether

Siva Prakash 6 Apr 5, 2022