def scrape(language, method, word, *args, **kwargs):
scraper = Scrape(language, word)<EOL>if hasattr(scraper, method):<EOL><INDENT>function = getattr(scraper, method)<EOL>if callable(function):<EOL><INDENT>return function(*args, **kwargs)<EOL><DEDENT><DEDENT>else:<EOL><INDENT>raise NotImplementedError('<STR_LIT>' + method + '<STR_LIT>')<EOL><DEDENT>
Uses custom scrapers and calls provided method.