Skip to content

FudgeRK/MyfansDownloader

Repository files navigation

Myfans.jp Downloader

Download Videos and Images

Details

All of this python code is generated by chatgpt-3.5 and can be used to retrieve data post id and download all files easily. Auto switch video quality (1080P is base) if not found

Type Support Yes or No
Videos 1080P
Videos 720P
Videos 480P
Videos 360P
Videos back number
Images All

Note

♦️ set the token in the header.txt file. (if you want download free content no require)
from cookies on the website myfans.jp.

Screenshot 2023-11-30 023059 Screenshot 2023-11-30 022826 Can be found from _mfans_token= or Token token=

♦️ This code run base on python version >= 3.8
♦️ reqiure FFmpeg

Tutorial video

Tutorial video

How to use

Python Usage

Use your system's terminal
Go to the main folder of myfans downloader
first run

python main.py
  1. To download all video files or single file (require name of creator).
  2. To download all pictures (require name of creator)

Docker Usage

Using Docker Compose (Recommended)

  1. Create the required directories:
mkdir -p config downloads
  1. Start the container:
docker compose up

Using Docker Run

docker run -it \
  -e FILENAME_PATTERN="{creator}_{date}_{id}" \
  -e FILENAME_SEPARATOR="_" \
  -e THREAD_COUNT="10" \
  -v $(pwd)/config:/config \
  -v $(pwd)/downloads:/downloads \
  frequency2098/myfans-downloader:latest

Environment Variables

Variable Default Description
FILENAME_PATTERN {creator}_{date} Pattern for naming downloaded files
FILENAME_SEPARATOR _ Separator between filename parts
THREAD_COUNT 10 Number of concurrent download threads

Configuration

Place your header.txt file in the config directory before running the container.

🤝 Contributing to Myfans Downloader

Any kind of positive contribution is welcome! Please help the project improve by opening a pull request with your suggested changes!

Special Thanks

Shenggang, bluems, Serph91P, albertphil, 0xSho