def load_scrap(self, path):
try:<EOL><INDENT>conf = self.load_settings(path)<EOL><DEDENT>except:<EOL><INDENT>self.exception("<STR_LIT>")<EOL>raise WEBFileException("<STR_LIT>".format(path))<EOL><DEDENT>if "<STR_LIT>" not in conf:<EOL><INDENT>raise WEBParameterException("<STR_LIT>")<EOL><DEDENT>if "<STR_LIT:url>" not in conf:<EOL><INDENT>raise WEBParameterException("<STR_LIT>")<EOL><DEDENT>version = conf.get('<STR_LIT:version>', None)<EOL>if version != "<STR_LIT:1.0>":<EOL><INDENT>raise WEBParameterException(<EOL>"<STR_LIT>".format(version)<EOL>)<EOL><DEDENT>self.scheme = conf['<STR_LIT>']<EOL>self.url = conf['<STR_LIT:url>']<EOL>self.timeout = conf.get('<STR_LIT>', self.timeout)<EOL>if conf.get('<STR_LIT>'):<EOL><INDENT>self._set_html2text(conf['<STR_LIT>'])<EOL><DEDENT>
Load scraper settings from file

:param path: Path to file
:type path: str
:rtype: None
:raises WEBFileException: Failed to load settings
:raises WEBParameterException: Missing parameters in file