fansly-downloader icon indicating copy to clipboard operation
fansly-downloader copied to clipboard

Add argparser and cli options

Open ksonney opened this issue 1 year ago • 2 comments

This PR adds the following:

  1. Command line options for creator, download mode, a help screen, and update. This partially addresses https://github.com/Avnsx/fansly-downloader/issues/79
  2. A .gitignore file to ignore the any 'pycache' directories and
  3. 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! :)

ksonney avatar Aug 21 '23 19:08 ksonney