* imdb page scraper helper for people that really need it

This commit is contained in:
Reinhard Pointner 2013-07-24 05:06:04 +00:00
parent 6217589f82
commit 97c0b369f3
1 changed files with 6 additions and 1 deletions

View File

@ -156,7 +156,12 @@ public class IMDbClient implements MovieIdentificationService {
public String scrape(String imdbid, String xpath) throws IOException, SAXException {
return selectString(xpath, parsePage(getMoviePageLink(getImdbId(imdbid)).toURL())); // helper for scraping data in user scripts
return scrape(getMoviePageLink(getImdbId(imdbid)).toURL(), xpath); // helper for scraping data in user scripts
}
public String scrape(URL url, String xpath) throws IOException, SAXException {
return selectString(xpath, parsePage(url)); // helper for scraping data in user scripts
}