forked from wikimedia/pywikibot
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathuser-config.py
28 lines (25 loc) · 1.11 KB
/
user-config.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
family_files['mgp'] = 'https://mzh.moegirl.org.cn/api.php'
family_files['commons'] = 'https://commons.moegirl.org.cn/api.php'
family_files['enmgp'] = 'https://en.moegirl.org.cn/api.php'
family_files['mirror'] = 'https://moegirl.uk/api.php'
mylang = 'mgp'
family = 'mgp'
# Your username here
usernames['mirror']['*'] = 'Lihb'
usernames['*']['*'] = 'Lihaohong'
password_file = "user-password.py"
# Slow down the robot such that it never requests a second page within
# 'minthrottle' seconds. This can be lengthened if the server is slow,
# but never more than 'maxthrottle' seconds. However - if you are running
# more than one bot in parallel the times are lengthened.
#
# 'maxlag' is used to control the rate of server access (see below).
# Set minthrottle to non-zero to use a throttle on read access.
minthrottle = 1
maxthrottle = 20
# Slow down the robot such that it never makes a second page edit within
# 'put_throttle' seconds.
put_throttle = 20 # type: Union[int, float]
# Sometimes you want to know when a delay is inserted. If a delay is larger
# than 'noisysleep' seconds, it is logged on the screen.
noisysleep = 1.0