fansly-downloader
fansly-downloader copied to clipboard
Add argparser and cli options
This PR adds the following:
- Command line options for creator, download mode, a help screen, and update. This partially addresses https://github.com/Avnsx/fansly-downloader/issues/79
- A .gitignore file to ignore the any 'pycache' directories and
- Moves config.ini to config.ini.example to allow for a custom config.ini in the code directory.
This PR allows for command-line scripting usage similar to the following shell command:
for i in creator1 creator2; do python3 fansly_downloader.py -c $1 -d Collections -b; done
This then downloads the collections for creator1
and creator2
with no additional prompting
usage: fansly_downloader [-h] [-c CREATOR] [-u] [-d DOWNLOAD] [-b]
Download a creator's picures and videos from fansly. Confiuration is read from config.ini, and can be overridden by the
following options
options:
-h, --help show this help message and exit
-c CREATOR, --creator CREATOR
The Name of the Creator to Download
-u, --upgrade Upgrade config file to the new version
-d DOWNLOAD, --download DOWNLOAD
Download Mode. One of Normal, Timeline, Messages, Single (Single by post id) or Collections
-b, --batch Batch mode, do not prompt on Exit
Thanks for using fansly_downloader! :)