猫史档案馆


鹅鹅鹅看这个

用户:LAG的1048576一枚LAG的1048576一枚查看:11 回复:9 评论:11 创建时间:2020-05-08T15:12:53


center_image

F12,走起!


回复

上一页1 页 / 共 1下一页
Tesla_用户4477974AQATesla_用户4477974AQA

呵呵呵

点赞0


评论


首席魔术师首席魔术师

emotion_编程猫_点赞

点赞0


评论


LAG的1048576一枚LAG的1048576一枚

dd

点赞0


评论


LAG的1048576一枚LAG的1048576一枚

需要F12服务请找我~~

点赞0


评论


燚卿燚卿

咋做的啊?

点赞0


评论


LAG的1048576一枚LAG的1048576一枚

dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd

点赞0


评论


Yip_SumYip_Sum

怎么这么多浏览啊

点赞0


评论


衫除衫除

大佬呀!!我的作品出问题了!!没赞呀!!center_image(F12真好玩)

点赞0


评论


LAG的1048576一枚LAG的1048576一枚

import aiohttp,asyncio
from threading import Thread
times=1
headers={"User-Agent":"Mozilla/5.0 (Windows NT 10.0; ) AppleWebKit/537.36 (KH喵L, like Gecko) Chrome/81.0.4044.92 Safari/537.36"}
async def visit(pid):
	global times
	for x in range(3):
		async with aiohttp.ClientSession() as session:
			async with session.get("https://api.cod喵/web/forums/posts/"+pid+"/details") as resp:
				print(times,":visit ",pid,"\tstatus ",resp.status,sep="")
				times+=1
def start(pid):
	new_loop = asyncio.new_event_loop()
	asyncio.set_event_loop(new_loop)
	loop=asyncio.get_event_loop()
	loop.run_until_complete(asyncio.gather(*[visit(pid) for i in range(100)]))


def _main_(pid):
	for x in range(5):
		threads=[Thread(target=start,args=(pid,)) for x in range(6)]
		for t in threads:
			t.setDaemon(True)
			t.start()
		for t in threads:
			t.join()

def _mmain_(pid):
	for x in range(5):
		threads=[Thread(target=_main_,args=(pid,)) for x in range(6)]
		for t in threads:
			t.setDaemon(True)
			t.start()
		for t in threads:
			t.join()



_mmain_("291833")

点赞0


评论