Skip to content

Instantly share code, notes, and snippets.

@aeukqegoih
Last active August 29, 2015 13:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aeukqegoih/4749325dd3c1334c4dca to your computer and use it in GitHub Desktop.
Save aeukqegoih/4749325dd3c1334c4dca to your computer and use it in GitHub Desktop.

Downloads all images from tistories or fansites listed on https://www.googledrive.com/host/0BxWqcCHpay3da01KU2VsdjlkdUU/

Run with no args to get indexes for every site. Will skip files that have already been downloaded.

Args:

  • threads: Number of threads (number of simultaneous downloads). Default: 30.
  • sites: Specify sites (by index) to download. Accepts any number of comma-separated single indexes (e.g. 5) and/or index ranges (e.g. 2-6). Negate single indexes and ranges with a ! in front. No spaces.

Examples:

Command Description
scipt.py Gets index list.
scipt.py sites=1 Downloads site 1.
scipt.py sites=1,3 Downloads sites 1 and 3.
scipt.py sites=1-3,8 Downloads sites 1, 2, 3 and 8.
scipt.py sites=1-3,!2 Downloads sites 1 and 3.
scipt.py sites=1-5,!2,!5 Downloads sites 1,3 and 4.
scipt.py sites=1-5,!2-4 Downloads sites 1 and 5.
scipt.py sites=1-5,!2-4,20,30-33,!32 threads=100 Downloads sites 1, 5, 20, 30, 31, and 33 downloading 100 images simultaneously.
Works with Python 2.7.x and 3.x.
removed: buggy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment