Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Paste
P9143
broken-interface-messages.py
Active
Public
Actions
Authored by
Xiplus
on Sep 22 2019, 2:45 AM.
Edit Paste
Archive Paste
View Raw File
Subscribe
Mute Notifications
Award Token
Flag For Later
Tags
None
Referenced Files
F30431318: raw.txt
Sep 22 2019, 2:45 AM
2019-09-22 02:45:15 (UTC+0)
Subscribers
None
import
requests
cnt
=
0
while
True
:
cnt
+=
1
req
=
requests
.
get
(
'https://zh.wikipedia.org/wiki/Special:Random?uselang=zh-tw'
)
html
=
req
.
text
print
(
cnt
)
if
'<div id="siteSub" class="noprint">維基百科,自由的百科全書</div>'
not
in
html
:
break
with
open
(
'temp.html'
,
'w'
,
encoding
=
'utf8'
)
as
f
:
f
.
write
(
html
)
Event Timeline
Xiplus
created this paste.
Sep 22 2019, 2:45 AM
2019-09-22 02:45:15 (UTC+0)
Xiplus
mentioned this in
T228876: Some interface messages are default messages instead of local overrides for language variants on Chinese Wikivoyage
.
Sep 22 2019, 2:51 AM
2019-09-22 02:51:28 (UTC+0)
Log In to Comment