1
0
mirror of https://github.com/mitb-archive/filebot synced 2024-11-16 06:15:02 -05:00

* 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

View File

@ -156,7 +156,12 @@ public class IMDbClient implements MovieIdentificationService {
public String scrape(String imdbid, String xpath) throws IOException, SAXException { 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
} }