From 6d04828d9f9d7a74fc29ef207533ce8617810e20 Mon Sep 17 00:00:00 2001 From: cyian-1756 Date: Thu, 21 Jun 2018 16:42:15 -0400 Subject: [PATCH] Added entry for hasASAPRipping --- How-To-Create-A-Ripper-for-HTML-websites.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/How-To-Create-A-Ripper-for-HTML-websites.md b/How-To-Create-A-Ripper-for-HTML-websites.md index 9e08136..603eb42 100644 --- a/How-To-Create-A-Ripper-for-HTML-websites.md +++ b/How-To-Create-A-Ripper-for-HTML-websites.md @@ -191,10 +191,17 @@ The `addURLToDownload()` method is *heavily* overloaded with lots of options. Variants of this method allow you to: * Define the exact file name to save as, * The subdirectory to save to, -* HTTP headers (such as cookies or referrers) that should be used while downloading the file +* HTTP headers (such as cookies or referrers) that should be used while downloading the file, +* Saving the file with the MIME type as it's extension Other rippers, as mentioned before, start a separate Thread to retrieve the full-size image from the provided URL. Your implementation may vary. +#### Bool hasASAPRipping() // Optional! + +If this function returns true then ripme does not call addURLToDownload and does not expect getURLsFromPage to return any urls. This is usful if you want to download images as you find them instead of waiting for getURLsFromPage to finish + +For an example of a ripper which rips like this see the [8muses ripper](https://github.com/ripmeapp/ripme/blob/master/src/main/java/com/rarchives/ripme/ripper/rippers/EightmusesRipper.java) + ### Step 6: Test! RipMe **automatically detects new rippers** without any other code changes required.