Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Paste
P10991
python3 pwb.py protect -catr:"2020년 3월" -lang:ko -family:wikinews -edit:autoconfirmed -summary:"자동 보존" -user:"-revi" -debug
Active
Public
Actions
Authored by
revi
on Apr 15 2020, 5:16 PM.
Edit Paste
Archive Paste
View Raw File
Subscribe
Mute Notifications
Award Token
Flag For Later
Tags
None
Referenced Files
F31757931: raw.txt
Apr 15 2020, 5:16 PM
2020-04-15 17:16:46 (UTC+0)
Subscribers
None
$
python3
pwb
.
py
protect
-
catr
:
"2020년 3월"
-
lang
:
ko
-
family
:
wikinews
-
edit
:
autoconfirmed
-
summary
:
"자동 보존"
-
user
:
"-revi"
-
debug
~/
dev
/
wikimedia
/
pywikibot
/
pywikibot
-
prod
/
pywikibot
/
config2
.
py
:
1085
:
_ConfigurationDeprecationWarning
:
"special_page_limit"
present
in
our
user
-
config
.
py
is
no
longer
a
supported
configuration
variable
and
should
be
removed
.
Please
inform
the
maintainers
if
you
depend
on
it
.
_ConfigurationDeprecationWarning
)
~/
dev
/
wikimedia
/
pywikibot
/
pywikibot
-
prod
/
pywikibot
/
config2
.
py
:
1085
:
_ConfigurationDeprecationWarning
:
"line_separator"
present
in
our
user
-
config
.
py
is
no
longer
a
supported
configuration
variable
and
should
be
removed
.
Please
inform
the
maintainers
if
you
depend
on
it
.
_ConfigurationDeprecationWarning
)
~/
dev
/
wikimedia
/
pywikibot
/
pywikibot
-
prod
/
pywikibot
/
config2
.
py
:
1085
:
_ConfigurationDeprecationWarning
:
"LS"
present
in
our
user
-
config
.
py
is
no
longer
a
supported
configuration
variable
and
should
be
removed
.
Please
inform
the
maintainers
if
you
depend
on
it
.
_ConfigurationDeprecationWarning
)
handle_args
()
completed
.
Instantiated
APISite
object
'wikinews:ko'
general
siteinfo
not
loaded
yet
.
general
siteinfo
not
loaded
yet
.
Load
siteinfo
properties
'namespaces'
,
'namespacealiases'
along
with
'general'
Load
siteinfo
properties
'namespaces'
,
'namespacealiases'
along
with
'general'
CachedRequest
:
cache
hit
(
~/
dev
/
wikimedia
/
pywikibot
/
pywikibot
-
prod
/
apicache
-
py3
/
366439
a2e6c7412a69c58c88d9cce16b9b96e75016a304e844620c9f6d518f90
)
for
API
request
:
APISite
(
"ko"
,
"wikinews"
)
LoginStatus
(
-
1
)[(
'action'
,
'query'
),
(
'continue'
,
''
),
(
'format'
,
'json'
),
(
'maxlag'
,
'5'
),
(
'meta'
,
'siteinfo|userinfo'
),
(
'siprop'
,
'namespaces|namespacealiases|general'
),
(
'uiprop'
,
'blockinfo|hasmsg'
)]
CachedRequest
:
cache
hit
(
~/
dev
/
wikimedia
/
pywikibot
/
pywikibot
-
prod
/
apicache
-
py3
/
9
b14076a3368c673fc64cfae69a00d500de1cc8f5ab8a653222ac42011180317
)
for
API
request
:
APISite
(
"ko"
,
"wikinews"
)
LoginStatus
(
-
1
)[(
'action'
,
'query'
),
(
'continue'
,
''
),
(
'format'
,
'json'
),
(
'maxlag'
,
'5'
),
(
'meta'
,
'siteinfo|userinfo'
),
(
'siprop'
,
'restrictions'
),
(
'uiprop'
,
'blockinfo|hasmsg'
)]
CachedRequest
:
cache
hit
(
~/
dev
/
wikimedia
/
pywikibot
/
pywikibot
-
prod
/
apicache
-
py3
/
4
daced5c07b50111cc760ebcdddf35076403b1f288cd7596bdbfe088fedc4412
)
for
API
request
:
APISite
(
"ko"
,
"wikinews"
)
LoginStatus
(
-
1
)[(
'action'
,
'paraminfo'
),
(
'format'
,
'json'
),
(
'maxlag'
,
'5'
),
(
'modules'
,
'main|paraminfo|query'
)]
CachedRequest
:
cache
hit
(
~/
dev
/
wikimedia
/
pywikibot
/
pywikibot
-
prod
/
apicache
-
py3
/
9748287313
bae1d78ae28e83dba3f070869dc5bd085bda0c086535695705fc23
)
for
API
request
:
APISite
(
"ko"
,
"wikinews"
)
LoginStatus
(
-
1
)[(
'action'
,
'paraminfo'
),
(
'format'
,
'json'
),
(
'maxlag'
,
'5'
),
(
'modules'
,
'query+categorymembers'
)]
PageGenerator
:
Set
query_limit
to
500.
PageGenerator
:
query_limit
:
500
,
api_limit
:
500
,
limit
:
None
,
new_limit
:
500
,
count
:
0
PageGenerator
:
gcmlimit
:
[
'500'
]
CachedRequest
:
cache
hit
(
~/
dev
/
wikimedia
/
pywikibot
/
pywikibot
-
prod
/
apicache
-
py3
/
0
cf8e2ed5700b9ebc2a2982f3c48607283c72c71286f79b1507473d3acd2fbb0
)
for
API
request
:
APISite
(
"ko"
,
"wikinews"
)
LoginStatus
(
-
1
)[(
'action'
,
'query'
),
(
'continue'
,
''
),
(
'format'
,
'json'
),
(
'maxlag'
,
'5'
),
(
'meta'
,
'siteinfo|userinfo'
),
(
'siprop'
,
'extensions'
),
(
'uiprop'
,
'blockinfo|hasmsg'
)]
CachedRequest
:
cache
hit
(
~/
dev
/
wikimedia
/
pywikibot
/
pywikibot
-
prod
/
apicache
-
py3
/
f6b05d9736b833a4e0452af4061b2b9456acdf1e712161cf107e19a8fea464a4
)
for
API
request
:
APISite
(
"ko"
,
"wikinews"
)
LoginStatus
(
-
1
)[(
'action'
,
'paraminfo'
),
(
'format'
,
'json'
),
(
'maxlag'
,
'5'
),
(
'modules'
,
'query+categoryinfo|query+imageinfo|query+info'
)]
Checking
multiplicity
:
pid
=
False
Checking
multiplicity
:
pid
=
False
API
request
to
wikinews
:
ko
(
uses
get
:
False
):
Headers
:
{
'Content-Type'
:
'application/x-www-form-urlencoded'
}
URI
:
'/w/api.php'
Body
:
'gcmtitle=
%E
B%B6
%84%
EB%A5
%98%
3A2020
%E
B
%85%
84+3
%E
C%9B%94&gcmprop=ids%7Ctitle%7Csortkey&gcmtype=page%7Cfile&prop=info%7Cimageinfo%7Ccategoryinfo&inprop=protection&iiprop=timestamp%7Cuser%7Ccomment%7Curl%7Csize%7Csha1%7Cmetadata&iilimit=max&generator=categorymembers&action=query&indexpageids=&continue=&gcmlimit=500&meta=userinfo&uiprop=blockinfo%7Chasmsg&maxlag=5&format=json'
API
response
received
from
wikinews
:
ko
:
{
"batchcomplete"
:
""
,
"limits"
:{
"imageinfo"
:
500
},
"query"
:{
"userinfo"
:{
"id"
:
0
,
"name"
:
"[IP REDACTED]"
,
"anon"
:
""
}}}
PageGenerator
:
Set
query_limit
to
500.
PageGenerator
:
query_limit
:
500
,
api_limit
:
500
,
limit
:
None
,
new_limit
:
500
,
count
:
0
PageGenerator
:
gcmlimit
:
[
'500'
]
API
request
to
wikinews
:
ko
(
uses
get
:
False
):
Headers
:
{
'Content-Type'
:
'application/x-www-form-urlencoded'
}
URI
:
'/w/api.php'
Body
:
'gcmtitle=
%E
B%B6
%84%
EB%A5
%98%
3A2020
%E
B
%85%
84+3
%E
C%9B%94&gcmprop=ids%7Ctitle%7Csortkey&gcmtype=subcat&prop=info%7Cimageinfo%7Ccategoryinfo&inprop=protection&iiprop=timestamp%7Cuser%7Ccomment%7Curl%7Csize%7Csha1%7Cmetadata&iilimit=max&generator=categorymembers&action=query&indexpageids=&continue=&gcmlimit=500&meta=userinfo&uiprop=blockinfo%7Chasmsg&maxlag=5&format=json'
API
response
received
from
wikinews
:
ko
:
{
"batchcomplete"
:
""
,
"query"
:{
"pageids"
:[
"4513"
,
"4523"
,
"4524"
,
"4538"
,
"4537"
,
"4543"
],
"pages"
:{
"4513"
:{
"pageid"
:
4513
,
"ns"
:
14
,
"title"
:
"
\ubd84\ub958
:2020
\ub144
3
\uc6d4
15
\uc77c
"
,
"contentmodel"
:
"wikitext"
,
"pagelanguage"
:
"ko"
,
"pagelanguagehtmlcode"
:
"ko"
,
"pagelanguagedir"
:
"ltr"
,
"touched"
:
"2020-04-13T02:34:11Z"
,
"lastrevid"
:
25054
,
"length"
:
26
,
"new"
:
""
,
"protection"
:[],
"restrictiontypes"
:[
"edit"
,
"move"
],
"categoryinfo"
:{
"size"
:
1
,
"pages"
:
1
,
"files"
:
0
,
"subcats"
:
0
}},
"4523"
:{
"pageid"
:
4523
,
"ns"
:
14
,
"title"
:
"
\ubd84\ub958
:2020
\ub144
3
\uc6d4
25
\uc77c
"
,
"contentmodel"
:
"wikitext"
,
"pagelanguage"
:
"ko"
,
"pagelanguagehtmlcode"
:
"ko"
,
"pagelanguagedir"
:
"ltr"
,
"touched"
:
"2020-04-13T02:34:11Z"
,
"lastrevid"
:
25114
,
"length"
:
55
,
"protection"
:[],
"restrictiontypes"
:[
"edit"
,
"move"
],
"categoryinfo"
:{
"size"
:
1
,
"pages"
:
1
,
"files"
:
0
,
"subcats"
:
0
}},
"4524"
:{
"pageid"
:
4524
,
"ns"
:
14
,
"title"
:
"
\ubd84\ub958
:2020
\ub144
3
\uc6d4
27
\uc77c
"
,
"contentmodel"
:
"wikitext"
,
"pagelanguage"
:
"ko"
,
"pagelanguagehtmlcode"
:
"ko"
,
"pagelanguagedir"
:
"ltr"
,
"touched"
:
"2020-04-13T02:34:11Z"
,
"lastrevid"
:
25113
,
"length"
:
55
,
"new"
:
""
,
"protection"
:[],
"restrictiontypes"
:[
"edit"
,
"move"
],
"categoryinfo"
:{
"size"
:
2
,
"pages"
:
2
,
"files"
:
0
,
"subcats"
:
0
}},
"4538"
:{
"pageid"
:
4538
,
"ns"
:
14
,
"title"
:
"
\ubd84\ub958
:2020
\ub144
3
\uc6d4
28
\uc77c
"
,
"contentmodel"
:
"wikitext"
,
"pagelanguage"
:
"ko"
,
"pagelanguagehtmlcode"
:
"ko"
,
"pagelanguagedir"
:
"ltr"
,
"touched"
:
"2020-04-13T02:34:11Z"
,
"lastrevid"
:
25178
,
"length"
:
59
,
"new"
:
""
,
"protection"
:[],
"restrictiontypes"
:[
"edit"
,
"move"
],
"categoryinfo"
:{
"size"
:
0
,
"pages"
:
0
,
"files"
:
0
,
"subcats"
:
0
}},
"4537"
:{
"pageid"
:
4537
,
"ns"
:
14
,
"title"
:
"
\ubd84\ub958
:2020
\ub144
3
\uc6d4
29
\uc77c
"
,
"contentmodel"
:
"wikitext"
,
"pagelanguage"
:
"ko"
,
"pagelanguagehtmlcode"
:
"ko"
,
"pagelanguagedir"
:
"ltr"
,
"touched"
:
"2020-04-13T02:34:11Z"
,
"lastrevid"
:
25173
,
"length"
:
55
,
"new"
:
""
,
"protection"
:[],
"restrictiontypes"
:[
"edit"
,
"move"
],
"categoryinfo"
:{
"size"
:
1
,
"pages"
:
1
,
"files"
:
0
,
"subcats"
:
0
}},
"4543"
:{
"pageid"
:
4543
,
"ns"
:
14
,
"title"
:
"
\ubd84\ub958
:2020
\ub144
3
\uc6d4
31
\uc77c
"
,
"contentmodel"
:
"wikitext"
,
"pagelanguage"
:
"ko"
,
"pagelanguagehtmlcode"
:
"ko"
,
"pagelanguagedir"
:
"ltr"
,
"touched"
:
"2020-04-13T02:34:11Z"
,
"lastrevid"
:
25190
,
"length"
:
55
,
"new"
:
""
,
"protection"
:[],
"restrictiontypes"
:[
"edit"
,
"move"
],
"categoryinfo"
:{
"size"
:
1
,
"pages"
:
1
,
"files"
:
0
,
"subcats"
:
0
}}},
"userinfo"
:{
"id"
:
0
,
"name"
:
"[IP REDACTED]"
,
"anon"
:
""
}},
"limits"
:{
"imageinfo"
:
500
}}
PageGenerator
received
[
'4513'
,
'4523'
,
'4524'
,
'4538'
,
'4537'
,
'4543'
];
limit
=
None
PageGenerator
:
Set
query_limit
to
500.
PageGenerator
:
query_limit
:
500
,
api_limit
:
500
,
limit
:
None
,
new_limit
:
500
,
count
:
0
PageGenerator
:
gcmlimit
:
[
'500'
]
API
request
to
wikinews
:
ko
(
uses
get
:
False
):
Headers
:
{
'Content-Type'
:
'application/x-www-form-urlencoded'
}
URI
:
'/w/api.php'
Body
:
'gcmtitle=
%E
B%B6
%84%
EB%A5
%98%
3A2020
%E
B
%85%
84+3
%E
C%9B%94+15
%E
C%9D%BC&gcmprop=ids%7Ctitle%7Csortkey&gcmtype=page%7Cfile&prop=info%7Cimageinfo%7Ccategoryinfo&inprop=protection&iiprop=timestamp%7Cuser%7Ccomment%7Curl%7Csize%7Csha1%7Cmetadata&iilimit=max&generator=categorymembers&action=query&indexpageids=&continue=&gcmlimit=500&meta=userinfo&uiprop=blockinfo%7Chasmsg&maxlag=5&format=json'
API
response
received
from
wikinews
:
ko
:
{
"batchcomplete"
:
""
,
"query"
:{
"pageids"
:[
"4510"
],
"pages"
:{
"4510"
:{
"pageid"
:
4510
,
"ns"
:
0
,
"title"
:
"
\ucf54\ub85c\ub098
19
\uc5ec\ud30c\ub85c
\uad6d\uc81c
\uc2a4\ud3ec\uce20\ub300\ud68c
\ube57\uc7a5
\uac78\uc5b4
"
,
"contentmodel"
:
"wikitext"
,
"pagelanguage"
:
"ko"
,
"pagelanguagehtmlcode"
:
"ko"
,
"pagelanguagedir"
:
"ltr"
,
"touched"
:
"2020-04-15T17:02:02Z"
,
"lastrevid"
:
25546
,
"length"
:
4717
,
"protection"
:[],
"restrictiontypes"
:[
"edit"
,
"move"
]}},
"userinfo"
:{
"id"
:
0
,
"name"
:
"[IP REDACTED]"
,
"anon"
:
""
}},
"limits"
:{
"imageinfo"
:
500
}}
PageGenerator
received
[
'4510'
];
limit
=
None
>>>
코로나
19
여파로 국제 스포츠대회 빗장 걸어
<<<
Do
you
want
to
change
the
protection
level
of
[[
ko
:
코로나
19
여파로 국제 스포츠대회 빗장
걸어
]]
?
([
y
]
es
,
[
N
]
o
,
[
a
]
ll
,
[
q
]
uit
):
y
API
request
to
wikinews
:
ko
(
uses
get
:
False
):
Headers
:
{
'Content-Type'
:
'application/x-www-form-urlencoded'
}
URI
:
'/w/api.php'
Body
:
'titles=
%E
C%BD
%94%
EB%A1%9C
%E
B
%82%
9819+
%E
C
%97%
AC
%E
D%8C%8C
%E
B%A1%9C+
%E
A%B5%AD
%E
C%A0%9C+
%E
C%8A%A4
%E
D
%8F
%AC
%E
C%B8%A0
%E
B%8C
%80%
ED%9A%8C+
%E
B%B9
%97%
EC
%9E
%A5+
%E
A%B1%B8
%E
C
%96%
B4&inprop=protection&prop=info&action=query&indexpageids=&continue=&meta=userinfo&uiprop=blockinfo%7Chasmsg&maxlag=5&format=json'
API
response
received
from
wikinews
:
ko
:
{
"batchcomplete"
:
""
,
"query"
:{
"pageids"
:[
"4510"
],
"pages"
:{
"4510"
:{
"pageid"
:
4510
,
"ns"
:
0
,
"title"
:
"
\ucf54\ub85c\ub098
19
\uc5ec\ud30c\ub85c
\uad6d\uc81c
\uc2a4\ud3ec\uce20\ub300\ud68c
\ube57\uc7a5
\uac78\uc5b4
"
,
"contentmodel"
:
"wikitext"
,
"pagelanguage"
:
"ko"
,
"pagelanguagehtmlcode"
:
"ko"
,
"pagelanguagedir"
:
"ltr"
,
"touched"
:
"2020-04-15T17:02:02Z"
,
"lastrevid"
:
25546
,
"length"
:
4717
,
"protection"
:[],
"restrictiontypes"
:[
"edit"
,
"move"
]}},
"userinfo"
:{
"id"
:
0
,
"name"
:
"[IP REDACTED]"
,
"anon"
:
""
}}}
PropertyGenerator
received
[
'4510'
];
limit
=
None
API
request
to
wikinews
:
ko
(
uses
get
:
True
):
Headers
:
{
'Content-Type'
:
'application/x-www-form-urlencoded'
}
URI
:
'/w/api.php?action=query&meta=userinfo&uiprop=blockinfo%7Cgroups%7Chasmsg%7Crights&rawcontinue=&maxlag=5&format=json'
Body
:
None
API
response
received
from
wikinews
:
ko
:
{
"query"
:{
"userinfo"
:{
"id"
:
0
,
"name"
:
"[IP REDACTED]"
,
"anon"
:
""
,
"groups"
:[
"*"
],
"rights"
:[
"createaccount"
,
"read"
,
"edit"
,
"createpage"
,
"createtalk"
,
"writeapi"
,
"viewmywatchlist"
,
"editmywatchlist"
,
"viewmyprivateinfo"
,
"editmyprivateinfo"
,
"editmyoptions"
,
"urlshortener-create-url"
,
"centralauth-merge"
,
"abusefilter-view"
,
"abusefilter-log"
,
"vipsscaler-test"
]}}}
WARNING
:
No
user
is
logged
in
on
site
wikinews
:
ko
0
pages
read
0
pages
written
0
pages
skipped
Execution
time
:
3
seconds
Script
terminated
by
exception
:
ERROR
:
UserRightsError
:
User
"None"
does
not
have
required
user
right
"protect"
Traceback
(
most
recent
call
last
):
File
"pwb.py"
,
line
390
,
in
<
module
>
if
not
main
():
File
"pwb.py"
,
line
385
,
in
main
file_package
)
File
"pwb.py"
,
line
101
,
in
run_python_file
main_mod
.
__dict__
)
File
"./scripts/protect.py"
,
line
254
,
in
<
module
>
main
()
File
"./scripts/protect.py"
,
line
248
,
in
main
bot
.
run
()
File
"~/dev/wikimedia/pywikibot/pywikibot-prod/pywikibot/bot.py"
,
line
1435
,
in
run
self
.
treat
(
page
)
File
"./scripts/protect.py"
,
line
119
,
in
treat
protections
=
protections
)
File
"~/dev/wikimedia/pywikibot/pywikibot-prod/pywikibot/tools/__init__.py"
,
line
1797
,
in
wrapper
return
obj
(
*
__args
,
**
__kw
)
File
"~/dev/wikimedia/pywikibot/pywikibot-prod/pywikibot/page/__init__.py"
,
line
2147
,
in
protect
return
self
.
site
.
protect
(
self
,
protections
,
reason
,
**
kwargs
)
File
"~/dev/wikimedia/pywikibot/pywikibot-prod/pywikibot/site/__init__.py"
,
line
1338
,
in
callee
.
format
(
self
.
user
(),
right
))
pywikibot
.
exceptions
.
UserRightsError
:
User
"None"
does
not
have
required
user
right
"protect"
_flush
()
called
CRITICAL
:
Exiting
due
to
uncaught
exception
<
class
'pywikibot.exceptions.UserRightsError'
>
$
Event Timeline
revi
created this paste.
Apr 15 2020, 5:16 PM
2020-04-15 17:16:46 (UTC+0)
revi
mentioned this in
T233608: cannot use delete.py despite being admin on a wiki
.
Apr 15 2020, 5:21 PM
2020-04-15 17:21:39 (UTC+0)
Log In to Comment