added config to NIST along with reliability check
This commit is contained in:
parent
a77eafe513
commit
f6f5c5f6fe
@ -23,9 +23,14 @@ class NIST(Source):
|
||||
search = 'cgi/cbook.cgi?Name=%s&Units=SI&cTP=on'
|
||||
|
||||
ignore_list = set()
|
||||
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 NIST', level=log.WARNING)
|
||||
self.cfg['reliability'] = ''
|
||||
|
||||
def parse(self, response):
|
||||
sel = Selector(response)
|
||||
|
Reference in New Issue
Block a user