python3刷博客积分

csdn积分不够用了咋办呢?刷!!!

1.前言:没人看我文章呢?积分升不去,又有需要怎么办?别人不看,我还不能“自己看”吗?就用这简单的Python3刷刷刷……

2.简单实现快速去刷

# encoding=utf8
import requests
import time
import threading

oneUrl = "http://blog.csdn.net/github_38117599/article/details/77938339"
moreUrl = ["http://blog.csdn.net/github_38117599/article/details/73744558",
            "http://blog.csdn.net/github_38117599/article/details/78003551",
            "http://blog.csdn.net/github_38117599/article/details/68069868",
            "http://blog.csdn.net/github_38117599/article/details/69265532",
            "http://blog.csdn.net/github_38117599/article/details/69870119",
            "http://blog.csdn.net/github_38117599/article/details/70244518",
            "http://blog.csdn.net/github_38117599/article/details/73744558",
            "http://blog.csdn.net/github_38117599/article/details/77196830",
            "http://blog.csdn.net/github_38117599/article/details/77484456",
            "http://blog.csdn.net/github_38117599/article/details/77825626",
            "http://blog.csdn.net/github_38117599/article/details/77926922",
            "http://blog.csdn.net/github_38117599/article/details/77938339"]

headers = {
    'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36'
    ,
    'Cookie': '_message_m=23yegwleahbzf4fy5a05grgr; uuid=e7680a5d-2824-45d9-ac7a-06289c3d3cd8; avh=53945000%2c52282490; dc_tos=os5x0v; dc_session_id=1498493448566'
}

class MyThread(threading.Thread):
    def run(self):
        for i in range(1, 1000):
            requests.get(moreUrl[i%12], headers)#列出自己全部文章的id
            # requests.get(oneUrl, headers)#单刷一篇文章
            msg = self.name+"访问的次数 " + str(i)
            print(msg)
            time.sleep(0.1)

for i in range(10):
    MyThread().start()
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值