def update_service(): if settings.value['service'] == 'true': from socket import setdefaulttimeout # Begin Service storage = Storage(settings.storageName, type="dict") for key, url in storage.database.items(): importAll(key, url)
def update_service(): if settings.value['service'] == 'true': # Begin Service storage = Storage(settings.storageName, type="dict", eval=True) for key, (url, isIntegrated) in storage.database.items(): if isIntegrated: goodSpider() # to be a smart spider importAll(url)
def update_service(): if settings.value['service'] == 'true': from socket import setdefaulttimeout setdefaulttimeout(10) # Begin Service storage = Storage(settings.storageName, type="dict", eval=True) listUrl = storage.database.keys() # Begin reading for name in listUrl: if storage.database[name][1]: goodSpider() # to be a smart spider settings.notification(name) importAll(name)