Attempt to rip targetURL. @param targetURL URL to rip @param saveConfig Whether you want to save the config (?)
(String targetURL, boolean saveConfig)
| 290 | * @param saveConfig Whether you want to save the config (?) |
| 291 | */ |
| 292 | private static void ripURL(String targetURL, boolean saveConfig) { |
| 293 | try { |
| 294 | URL url = new URI(targetURL).toURL(); |
| 295 | rip(url); |
| 296 | saveHistory(); |
| 297 | } catch (MalformedURLException e) { |
| 298 | logger.error("[!] Given URL is not valid. Expected URL format is http://domain.com/..."); |
| 299 | // System.exit(-1); |
| 300 | } catch (Exception e) { |
| 301 | logger.error("[!] Error while ripping URL " + targetURL, e); |
| 302 | // System.exit(-1); |
| 303 | } |
| 304 | } |
| 305 | |
| 306 | /** |
| 307 | * Creates an Options object, returns it. |
no test coverage detected