Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F30431318
raw.txt
No One
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Authored By
Xiplus
Sep 22 2019, 2:45 AM
2019-09-22 02:45:14 (UTC+0)
Size
353 B
Referenced Files
None
Subscribers
None
raw.txt
View Options
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)
File Metadata
Details
Attached
Mime Type
text/plain; charset=utf-8
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
8020799
Default Alt Text
raw.txt (353 B)
Attached To
Mode
P9143 broken-interface-messages.py
Attached
Detach File
Event Timeline
Log In to Comment