Page MenuHomePhabricator
Authored By
Xiplus
Sep 22 2019, 2:45 AM
Size
353 B
Referenced Files
None
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)

File Metadata

Mime Type
text/plain; charset=utf-8
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
8020799
Default Alt Text
raw.txt (353 B)

Event Timeline