A script for ripping full-quality Suicide Girls photosets.
- Make sure Google Chrome is installed
- Make sure Python 3.6 or greater is installed
- Install Selenium using PIP with
pip install -U selenium
- Clone the repo into the directory of your choosing. For future examples, we will use
C:\SGR
and/var/SGR
- Create a new directory called "dependencies" (
C:\SGR\dependencies
or/var/SGR/dependencies
) - Download the Chrome webdriver from http://chromedriver.chromium.org/ and place it into the dependencies directory (
C:\SGR\dependencies\chromedriver.exe
or/var/SGR/dependencies/chromedriver
) - Download aria2 from https://aria2.github.io/ and extract the files (not the directories) in the archive into a new folder
dependencies/aria2
(C:\SGR\dependencies\aria2\aria2c.exe
or/var/SGR/dependencies/aria2/aria
; compilation may be necessary for non-Windows users) - Follow the instructions in the credentials section
SGR requires a paid Suicide Girls account. Due to this, it requires a username and password. There are 3 different ways that you can specify your username and password, and you can mix them however you like. From highest to lowest priority, these are:
- Directly entering them into
main.py
on lines 4 and 5 - Creating a file called
credentials.json
in the same directory asmain.py
and filling it with JSON (template:{"username":"","password":""}
) - Using the command line switches (
-l
,-s
,--username
, and--password
) You can mix and match these however you want. For safety purposes, the command line switches are disabled if the username or password is found in either of the other 2 categories. This is done individually, so you can have your password in themain.py
and still use-l
to specify your username.
NOTE: It can be dangerous to enter login information (particularly passwords) directly into the command line. It is strongly recommended that you provide acredentials.json
file.
cd
into your install directory and call python main.py [options]
to run it.
NOTE: Suicide Girls has presented me with a CAPTCHA every time I've run this script. Due to this, the script will watch for a CAPTCHA and wait for you to solve it. The timer displayed when the script completes does not count time spent solving the CAPTCHA. Since CAPTCHA solving is required, it is strongly recommended that you not run Chrome in headless mode.
-d
,--dir
- The parent directory into which photosets should be downloaded (dir/Suicide Girls//); defaults to the current working directory-p
,--processes
- SGR uses Python's multiprocessing library for calling into aria2 for downloads, this flag sets the maximum number of processes it can spawn; defaults to 4-t [type]
,--type [type]
- The type of content to ripping
The following types are supported:g
orgirl
- all photosets by the specified suicide girlsh
orhopeful
- all photosets by the specified hopefulss
orset
- the photosets at the URLs providedag
orall_girls
- all photosets by all suicide girls who had a photoset in the chosen time periodah
orall_hopefuls
- all photosets by all hopefuls who had a photoset in the chosen time periodas
,all_sotds
, orall_sets_of_the_day
- all photosets by all suicide girls with a featured set of the day in the chosen time perioda
orall
- all photosets in the chosen time period
-i [time_period]
,--in [time_period]
- The time period to filter search results to; defaults toall
The following time periods are supported:all
- all time24hours
- the last 24 hours7days
- the last week1month
- the last month3months
- the last 3 months6months
- the last 6 months- All years from 2001 to 2018 inclusive
-n [name]
,--name [name]
- The name(s) of girls to rip; only works for suicide girls and hopefuls; DO NOT MIX SUICIDE GIRLS AND HOPEFULS-u [url]
,--url [url]
- The URL(s) of sets to rip-l [username]
,--username [username]
- The username to use when logging in-s [password]
,--password [password]
- The password to use when logging in
python main.py -p 2 -t all_sotds -i 7days
Download all photosets from all suicide girls who had a set of the day in the past week into the current directory while using only 2 worker processes
python main.py -t ah
Download all photosets from all hopefuls with the default 4 worker processes
python main.py -p 8 -t g -n vandoll pulp
Download all photosets from the suicide girls Vandoll and Pulp using 8 worker processes
python main.py -t s -u https://www.suicidegirls.com/girls/vandoll/album/3735859/blue-morning/ https://www.suicidegirls.com/girls/vandoll/album/3665933/come-closer/
Download the photosets "Blue Morning" and "Come Closer" by Vandoll