def __init__(self, *pargs, **kwargs): super(Mvblfeast, self).__init__(*pargs, **kwargs) self.maize_vendors = basic_tools.get_maize_vendors() self.fb_api_key = kwargs['fb_api_key'] self.here_app_id = kwargs['here_app_id'] self.here_app_code = kwargs['here_app_code']
def __init__(self, *args, **kwargs): super(TruckStopSf, self).__init__(*args, **kwargs) self.maize_vendors = basic_tools.get_maize_vendors() self.api_key = kwargs['fb_api_key']
def __init__(self, api_key): self.maize_vendors = basic_tools.get_maize_vendors() self.api_key = api_key
def __init__(self, *pargs, **kwargs): scrapy.Spider.__init__(self, *pargs, **kwargs) self.maize_vendors = basic_tools.get_maize_vendors()
def __init__(self, *pargs, **kwargs): self.maize_vendors = basic_tools.get_maize_vendors() self.fb_api_key = kwargs['fb_api_key'] self.here_app_id = kwargs['here_app_id'] self.here_app_code = kwargs['here_app_code']
def start_requests(self): self.maize_vendors = basic_tools.get_maize_vendors() self.api_key = self.settings.get("FB_API_KEY") return [Request(self.api_url.format(self.api_key), callback=self.parse)]