Home | Trees | Index | Help |
|
---|
Package pywikipedia :: Module wikipedia :: Class Throttle |
|
object
--+
|
Throttle
Method Summary | |
---|---|
Make sure there are at least 'delay' seconds between page-gets after 'ignore' initial page-gets | |
This is called from getEditPage without arguments. | |
checkMultiplicity(self)
| |
Remove me from the list of running bots processes. | |
getDelay(self)
| |
setDelay(self,
delay,
absolute)
| |
Calculate the time in seconds we will have to wait if a query would be made right now | |
Inherited from object | |
x.__delattr__('name') <==> del x.name | |
x.__getattribute__('name') <==> x.name | |
x.__hash__() <==> hash(x) | |
T.__new__(S, ...) -> a new object with type S, a subtype of T | |
helper for pickle | |
helper for pickle | |
x.__repr__() <==> repr(x) | |
x.__setattr__('name', value) <==> x.name = value | |
x.__str__() <==> str(x) |
Method Details |
---|
__init__(self,
mindelay=2,
maxdelay=60,
multiplydelay=True)
Make sure there are at least 'delay' seconds between page-gets after
'ignore' initial page-gets
|
__call__(self,
requestsize=1)
This is called from getEditPage without arguments. It will make sure
that if there are no 'ignores' left, there are at least delay seconds
since the last time it was called before it returns.
|
drop(self)Remove me from the list of running bots processes. |
waittime(self)Calculate the time in seconds we will have to wait if a query would be made right now |
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.1 on Sun Jul 03 17:07:32 2005 | http://epydoc.sf.net |