Exemplo n.º 1
0
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)
Exemplo n.º 2
0
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)
Exemplo n.º 3
0
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)
Exemplo n.º 4
0
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)