码迷,mamicode.com
首页 > 其他好文 > 详细

threading

时间:2018-07-03 15:09:25      阅读:148      评论:0      收藏:0      [点我收藏+]

标签:app   reading   compile   style   sub   .text   thread   blog   tps   

import re,requests,threading
def req():
 while True:
  r=requests.get(https://h5.qzone.qq.com/ugc/share/D99417FD032C65AE9B3FBF8A11505D09?uw=1421270531&subtype=0&sid=&blog_photo=0&appid=2&ciphertext=D99417FD032C65AE9B3FBF8A11505D09&g_f=2000000392&_wv=1)
  print(re.findall(re.compile(>浏览\d+次<),r.text))

for i in range(200):
 t=threading.Thread(target=req)
 t.start()

 

threading

标签:app   reading   compile   style   sub   .text   thread   blog   tps   

原文地址:https://www.cnblogs.com/xiaodebing/p/9257657.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!