代码如下
import requests as qs
import time as t
i=1000380
while(1):
x=qs.get("https://www.luogu.com.cn/user/"+str(i))
print("https://www.luogu.com.cn/user/"+str(i))
print(x.text)
i+=1
t.sleep(5)
爬取洛谷之后,返回的都是
https://www.luogu.com.cn/user/1000380
<html>
<head><title>404 Not Found</title></head>
<body>
<center><h1>404 Not Found</h1></center>
<hr><center>nginx</center>
</body>
</html>
求调