def register(scraper):
global scrapers<EOL>language = scraper('<STR_LIT>').language<EOL>if not language:<EOL><INDENT>raise Exception('<STR_LIT>')<EOL><DEDENT>if scrapers.has_key(language):<EOL><INDENT>scrapers[language].append(scraper)<EOL><DEDENT>else:<EOL><INDENT>scrapers[language] = [scraper]<EOL><DEDENT>
Registers a scraper to make it available for the generic scraping interface.