added config to wikipedia along with reliability check
This commit is contained in:
parent
981615c6b3
commit
68139b4839
@ -19,8 +19,15 @@ class WikipediaParser(Source):
|
||||
__spider = None
|
||||
searched_compounds = []
|
||||
|
||||
cfg = {}
|
||||
|
||||
def __init__(self, config={}):
|
||||
Source.__init__(self, config)
|
||||
self.cfg = config
|
||||
if 'reliability' not in self.cfg or self.cfg['reliability'] == '':
|
||||
log.msg('Reliability not set for Wikipedia', level=log.WARNING)
|
||||
self.cfg['reliability'] = ''
|
||||
|
||||
|
||||
def parse(self, response):
|
||||
""" Distributes the above described behaviour """
|
||||
|
Reference in New Issue
Block a user