Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F31757931
raw.txt
No One
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Authored By
revi
Apr 15 2020, 5:16 PM
2020-04-15 17:16:46 (UTC+0)
Size
11 KB
Referenced Files
None
Subscribers
None
raw.txt
View Options
$ 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/366439a2e6c7412a69c58c88d9cce16b9b96e75016a304e844620c9f6d518f90) 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/9b14076a3368c673fc64cfae69a00d500de1cc8f5ab8a653222ac42011180317) 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/4daced5c07b50111cc760ebcdddf35076403b1f288cd7596bdbfe088fedc4412) 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/9748287313bae1d78ae28e83dba3f070869dc5bd085bda0c086535695705fc23) 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/0cf8e2ed5700b9ebc2a2982f3c48607283c72c71286f79b1507473d3acd2fbb0) 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=%EB%B6%84%EB%A5%98%3A2020%EB%85%84+3%EC%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=%EB%B6%84%EB%A5%98%3A2020%EB%85%84+3%EC%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=%EB%B6%84%EB%A5%98%3A2020%EB%85%84+3%EC%9B%94+15%EC%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\ub09819 \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=%EC%BD%94%EB%A1%9C%EB%82%9819+%EC%97%AC%ED%8C%8C%EB%A1%9C+%EA%B5%AD%EC%A0%9C+%EC%8A%A4%ED%8F%AC%EC%B8%A0%EB%8C%80%ED%9A%8C+%EB%B9%97%EC%9E%A5+%EA%B1%B8%EC%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\ub09819 \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'>
$
File Metadata
Details
Attached
Mime Type
text/plain; charset=utf-8
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
8382983
Default Alt Text
raw.txt (11 KB)
Attached To
Mode
P10991 python3 pwb.py protect -catr:"2020년 3월" -lang:ko -family:wikinews -edit:autoconfirmed -summary:"자동 보존" -user:"-revi" -debug
Attached
Detach File
Event Timeline
Log In to Comment