@Test public void parseASearchResult() { TagChimpRepository repository = new TagChimpRepository(null, null, null, null); List<TagInfo> results = repository.process(getClass().getResourceAsStream("/tagchimpsearchresult.xml")); assertEquals(24, results.size()); }
// @Test public void search() { // https://www.tagchimp.com/ape/search.php?token=10664939374FF64C1FA0EFE&type=search&title=Tomorrow%20Never%20Dies&totalChapters=1 TagChimpRepository repository = new TagChimpRepository( "http", "www.tagchimp.com", "/ape/search.php", "10664939374FF64C1FA0EFE"); log.debug("**** Results ****"); for (TagInfo tagInfo : repository.search("Tomorrow Never Dies", 1)) { log.debug(tagInfo.toString()); } log.debug("**** End Results ****"); }