现在几天,我一直试图找到一种同时发送大量请求的方法。我尝试了多处理和一些线程。对我来说,没有什么比这更成功了。如果方法方法是调用函数,则更喜欢。由于我找不到太多的资源,避风港真的因为问候而烦恼。我做了很多这样的项目,并重视它的知名度。
代码试图加快速度:
def ready():
global count2
while thing:
#runs through thingy to make sure all accounts will not have security questions
change = requests.post("#####", data = {'###': token, 'answer0': question, '##': questionid, 'answer1': question, '####': #####, 'answer2': question, 'questionId2': ###} , cookies=cookie, proxies=proxies2)
count2 += 1
print(change.content + " Proxy: " + lines[count2])
if count2 == 50:
done = True
print("Done With Challenges!")
thingy()
else:
return ready
print("wrong")
我赞美任何帮助,谢谢你!