如何在PyWikiBot上禁用“睡眠N秒”

Pywikibot's Mediawiki Talk page,这个问题已经在2年前问过了。

答案是“不应该”,maxthrottle并不是正确的参数。

对于Intranet用例,节流阀通常适得其反。尤其是在测试自动化时,无论API访问次数有多低,节流阀都会启动。因此,我宁愿将其关闭,也可以将其设置为几毫秒的合理时间,而不是默认的10秒。

如何将油门设置为不同的时间?

NOKIA3650 回答:如何在PyWikiBot上禁用“睡眠N秒”

请参阅https://github.com/donkaban/pywiki-bot/blob/master/user-config.py#L159

# Slow down the robot such that it never makes a second page edit within
# 'put_throttle' seconds.
put_throttle = 0

0看起来很不错

本文链接:https://www.f2er.com/2569116.html

大家都在问