Beispiel #1
0
 def __init__(self, config=None):
     """
     Initialization of NIST scraper
     :param config: configuration variables for this scraper, must contain 
     'reliability' key.
     """
     Source.__init__(self, config)
     self.ignore_list = set()
Beispiel #2
0
 def __init__(self, config=None):
     """
     Initialization of NIST scraper
     :param config: configuration variables for this scraper, must contain 
     'reliability' key.
     """
     Source.__init__(self, config)
     self.ignore_list = set()
Beispiel #3
0
 def __init__(self, data_file, client_id, client_secret, from_address,
              header, footer):
     Source.__init__(self, data_file)
     self.consumer = Consumer(client_id, client_secret)
     self.from_address = from_address
     self.header = header
     self.footer = footer
     self.access_token = None
    def __init__(self, config):
        Source.__init__(self, "mqtt", config)
        self.new_content = []
        self.mqttc = mqtt.Client()

        self.mqttc.on_connect = self.on_connect
        self.mqttc.on_message = self.on_message

        self.mqttc.connect(self.get("server"), int(self.get("port")), 60)
Beispiel #5
0
    def __init__(self, source_fn: str, radar_fn: str, dipole=False):

        # To pass values to parent classes
        Source.__init__(self, source_fn, dipole)
        Antenna.__init__(self, radar_fn)

        # Source to antenna distances
        self.distance, self.path_vec = self.multi_dist()
        print("\x1b[1;31mDistance:\n\x1b[0m", self.distance,
              "\n\x1b[1;31mVector:\n\x1b[0m", self.path_vec)
Beispiel #6
0
 def __init__(self, config=None):
     """
     Initialization of ChemSpider scraper
     :param config: a dictionary of settings for this scraper, must contain 
     'reliability' key
     """
     Source.__init__(self, config)
     self.ignore_list = []
     if 'token' not in self.cfg or self.cfg['token'] == '':
         log.msg('ChemSpider token not set or empty, search/MassSpec API '
                 'not available', level=log.WARNING)
         self.cfg['token'] = ''
     self.search += self.cfg['token']
     self.extendedinfo += self.cfg['token']
Beispiel #7
0
 def __init__(self, config=None):
     """
     Initialization of ChemSpider scraper
     :param config: a dictionary of settings for this scraper, must contain 
     'reliability' key
     """
     Source.__init__(self, config)
     self.ignore_list = []
     if 'token' not in self.cfg or self.cfg['token'] == '':
         log.msg(
             'ChemSpider token not set or empty, search/MassSpec API '
             'not available',
             level=log.WARNING)
         self.cfg['token'] = ''
     self.search += self.cfg['token']
     self.extendedinfo += self.cfg['token']
Beispiel #8
0
 def __init__(self, config, progress, changes):
     Source.__init__(self, config, progress, changes)
     self.config = config
     self.html = None
     self.outdir = "wiki-cpds"
Beispiel #9
0
 def __init__(self, value):
     Source.__init__(self, value)
Beispiel #10
0
 def __init__(self):
     self.output_type = type(BaseMessage)
     Source.__init__(self)
Beispiel #11
0
 def __init__(self, config):
     Source.__init__(self, config)
     self.cfg = config
Beispiel #12
0
 def __init__(self, config, progress, changes):
     Source.__init__(self, config, progress, changes)
     self.session = requests.session()
     self.outdir = 'tmiri'
	def __init__(self, config):
		Source.__init__(self, "mail", config)
		self.new_content=[]
Beispiel #14
0
 def __init__(self, config, progress, changes):
     Source.__init__(self, config, progress, changes)
     self.config = config
     self.html = None
     self.data = None
     self.raco_errors = 0
Beispiel #15
0
 def __init__(self, source):
     self.input_type = kafka.consumer.fetcher.ConsumerRecord
     self.output_type = WireMessage
     Sink.__init__(self, source)
     Source.__init__(self)
Beispiel #16
0
 def __init__(self, data_file, client_id, client_secret):
     Source.__init__(self, data_file)
     self.consumer = Consumer(client_id, client_secret)
     self.access_token = None
Beispiel #17
0
 def __init__(self, config):
     Source.__init__(self, config)
     self.cfg = config
Beispiel #18
0
 def __init__(self, config=None):
     Source.__init__(self, config)