HCE Project Python language Distributed Tasks Manager Application, Distributed Crawler Application and client API bindings.
2.0.0-chaika
Hierarchical Cluster Engine Python language binding
|
Public Member Functions | |
def | __init__ (self, jsonData) |
def | setProxyData (self, proxyData) |
def | getProxyData (self, proxyName) |
def | getData (self) |
def | addProxyList (self, proxyList) |
def | getProxyList (self, state=None) |
def | addFrequency (self, proxyName, incrementSize=DEFAULT_VALUE_INCREMENT_FREQUENCY) |
def | addFaults (self, proxyName, incrementSize=DEFAULT_VALUE_INCREMENT_FAULTS) |
Public Attributes | |
jsonData | |
Static Public Attributes | |
string | PROXIES_HOST_NAME = 'host' |
string | PROXIES_DOMAINS_NAME = 'domains' |
string | PROXIES_PRIORITY_NAME = 'priority' |
string | PROXIES_LIMITS_NAME = 'limits' |
string | PROXIES_STATE_NAME = 'state' |
string | PROXIES_FREQ_NAME = 'freq' |
string | PROXIES_FAULTS_NAME = 'faults' |
string | PROXIES_FAULTS_MAX_NAME = 'faultsMax' |
list | PROXIES_DATA_LIST_NAMES |
int | PROXY_STATE_DISABLED = 0 |
int | PROXY_STATE_ENABLED = 1 |
dictionary | DEFAULT_VALUE_JSON_DATA = {} |
list | DEFAULT_VALUE_PROXIES_DOMAIN = ['*'] |
int | DEFAULT_VALUE_PROXIES_PRIORITY = 10 |
DEFAULT_VALUE_PROXIES_LIMITS = None | |
int | DEFAULT_VALUE_PROXIES_STATE = PROXY_STATE_ENABLED |
int | DEFAULT_VALUE_PROXIES_FREQ = 0 |
int | DEFAULT_VALUE_PROXIES_FAULTS = 0 |
int | DEFAULT_VALUE_PROXIES_FAULTS_MAX = 0 |
int | DEFAULT_VALUE_INCREMENT_FREQUENCY = 1 |
int | DEFAULT_VALUE_INCREMENT_FAULTS = 1 |
int | DEFAULT_VALUE_UNLIMITED_FAULTS_MAX = 0 |
Definition at line 19 of file ProxyJsonWrapper.py.
def dc_crawler.ProxyJsonWrapper.ProxyJsonWrapper.__init__ | ( | self, | |
jsonData | |||
) |
Definition at line 53 of file ProxyJsonWrapper.py.
def dc_crawler.ProxyJsonWrapper.ProxyJsonWrapper.addFaults | ( | self, | |
proxyName, | |||
incrementSize = DEFAULT_VALUE_INCREMENT_FAULTS |
|||
) |
Definition at line 175 of file ProxyJsonWrapper.py.
def dc_crawler.ProxyJsonWrapper.ProxyJsonWrapper.addFrequency | ( | self, | |
proxyName, | |||
incrementSize = DEFAULT_VALUE_INCREMENT_FREQUENCY |
|||
) |
def dc_crawler.ProxyJsonWrapper.ProxyJsonWrapper.addProxyList | ( | self, | |
proxyList | |||
) |
def dc_crawler.ProxyJsonWrapper.ProxyJsonWrapper.getData | ( | self | ) |
Definition at line 108 of file ProxyJsonWrapper.py.
def dc_crawler.ProxyJsonWrapper.ProxyJsonWrapper.getProxyData | ( | self, | |
proxyName | |||
) |
def dc_crawler.ProxyJsonWrapper.ProxyJsonWrapper.getProxyList | ( | self, | |
state = None |
|||
) |
def dc_crawler.ProxyJsonWrapper.ProxyJsonWrapper.setProxyData | ( | self, | |
proxyData | |||
) |
Definition at line 61 of file ProxyJsonWrapper.py.
|
static |
Definition at line 46 of file ProxyJsonWrapper.py.
|
static |
Definition at line 45 of file ProxyJsonWrapper.py.
|
static |
Definition at line 36 of file ProxyJsonWrapper.py.
|
static |
Definition at line 37 of file ProxyJsonWrapper.py.
|
static |
Definition at line 42 of file ProxyJsonWrapper.py.
|
static |
Definition at line 43 of file ProxyJsonWrapper.py.
|
static |
Definition at line 41 of file ProxyJsonWrapper.py.
|
static |
Definition at line 39 of file ProxyJsonWrapper.py.
|
static |
Definition at line 38 of file ProxyJsonWrapper.py.
|
static |
Definition at line 40 of file ProxyJsonWrapper.py.
|
static |
Definition at line 47 of file ProxyJsonWrapper.py.
dc_crawler.ProxyJsonWrapper.ProxyJsonWrapper.jsonData |
Definition at line 54 of file ProxyJsonWrapper.py.
|
static |
Definition at line 30 of file ProxyJsonWrapper.py.
|
static |
Definition at line 22 of file ProxyJsonWrapper.py.
|
static |
Definition at line 28 of file ProxyJsonWrapper.py.
|
static |
Definition at line 27 of file ProxyJsonWrapper.py.
|
static |
Definition at line 26 of file ProxyJsonWrapper.py.
|
static |
Definition at line 21 of file ProxyJsonWrapper.py.
|
static |
Definition at line 24 of file ProxyJsonWrapper.py.
|
static |
Definition at line 23 of file ProxyJsonWrapper.py.
|
static |
Definition at line 25 of file ProxyJsonWrapper.py.
|
static |
Definition at line 33 of file ProxyJsonWrapper.py.
|
static |
Definition at line 34 of file ProxyJsonWrapper.py.