我正在尝试了解机器人,所以我尝试制作一个基本的youtube机器人,但它在50次观看后停止,我怎么能解决这个问题,到目前为止我得到了这个
import os
import time
import webbrowser
cycles=int(input("Please input the times of cycles you want to run: "))
num=int(input("Please input the number of pages you want to open in each cycle: "))
delay=int(input("Please input the time delay for restarting the cycle: "))
website = input("Please input your web: ")
hits=cycles*num
print("You will access " +website+ " " , hits, " times")
for i in range(cycles):
for i in range(num):
webbrowser.open(website)
time.sleep(delay)