我如何解决这个问题?Python机器人

我如何解决这个问题?Python机器人,python,youtube,bots,Python,Youtube,Bots,我正在努力学习机器人,所以我试着制作一个基本的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 e

我正在努力学习机器人,所以我试着制作一个基本的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)

可能问题是youtube不允许频繁的请求。购买一些代理服务器,让尽可能多的用户使用。Furas,我在哪里可以购买代理服务器以及如何使用代理服务器,提前谢谢