Package com.rarchives.ripme.ripper.rippers

Examples of com.rarchives.ripme.ripper.rippers.ImagefapRipper


            return;
        }
        Map<URL, String> testURLs = new HashMap<URL, String>();
        testURLs.put(new URL("http://www.imagefap.com/pictures/4649440/Frozen-%28Elsa-and-Anna%29?view=2"), "Frozen (Elsa and Anna)");
        for (URL url : testURLs.keySet()) {
            ImagefapRipper ripper = new ImagefapRipper(url);
            assertEquals(testURLs.get(url), ripper.getAlbumTitle(ripper.getURL()));
            deleteDir(ripper.getWorkingDir());
        }
    }
View Full Code Here


        }
        List<URL> contentURLs = new ArrayList<URL>();
        contentURLs.add(new URL("http://www.imagefap.com/pictures/4649440/Frozen-%28Elsa-and-Anna%29?view=2"));
        for (URL url : contentURLs) {
            try {
                ImagefapRipper ripper = new ImagefapRipper(url);
                ripper.rip();
                assert(ripper.getWorkingDir().listFiles().length > 1);
                deleteDir(ripper.getWorkingDir());
            } catch (Exception e) {
                fail("Error while ripping URL " + url + ": " + e.getMessage());
            }
        }
    }
View Full Code Here

TOP

Related Classes of com.rarchives.ripme.ripper.rippers.ImagefapRipper

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.