微信投票刷票器,如何编写?
2018-07-31 18:03:18 | 分类:微信投票教程 | 评论:0人 | 浏览:1,630次
- 正文内容
- 我来说两句:(已有0人参与)
投票活动快速互投提升票数请加— —纯人工互投提升票数数量.互相投票以娱乐为主!
当前微信上的活动多了跟蚂蚁一样,几乎大家都会在朋友圈看到人在拉票,那么小编要给大家分享一个微信投票刷票器的制作教程,有了微信投票刷票器就无需在朋友圈内求人拉票去消费人情了。下面直接分享微信投票刷票器直接脚本!大家可以学习下。
-
#!/usr/bin/python
-
import http.cookiejar, urllib
-
from urllib.error import URLError, HTTPError
-
import json,time
-
#投票页面url
-
indexUrl=“http://show.lilyenglish.com/index.php/content?sid=273”
-
#投票请求url
-
voteUrl=“http://show.lilyenglish.com/index.php/content/do_vote”
-
#投票请求参数
-
parameters={
-
“id”: 273
-
}
-
#500次
-
for i in range(1,500):
-
#cookie持有
-
cj = http.cookiejar.CookieJar()
-
opener = urllib.request.build_opener(urllib.request.HTTPCookieProcessor(cj))
-
#proxy=urllib.request.ProxyHandler({‘sock5′:’183.207.228.9:80’})
-
#opener.add_handler(proxy)
-
urllib.request.install_opener(opener)
-
req=urllib.request.Request(indexUrl)
-
resp= urllib.request.urlopen(req)
-
#print(resp.getheader(“Set-Cookie”))
-
#print(resp.getheaders())
-
#print(cj)
-
#设置参数
-
parameters[‘userAgent’]=str(i)+“Mozilla/5.0 sdsdsi (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) dsd Chrome/31.0.1650.63 Safari/537.36 SE 2.X MetaSr 1.0”
-
parameterencode=urllib.parse.urlencode(parameters)
-
#print(parameterencode)
-
parameterencode=parameterencode.encode(‘UTF-8’)
-
#print(parameterencode)
-
#request=urllib.request.Request(voteUrl,parameterencode)
-
resp2= opener.open(voteUrl,parameterencode)
-
#resp2= urllib.request.urlopen(voteUrl,parameterencode)
-
print(“请求完毕,{0}”.format(resp2.status))
-
jsonData = json.loads(resp2.read().decode(‘utf-8’))
-
print(i,jsonData)
-
time.sleep(3)注意事项:
1、这里还要注意的地方就是,微信的投票是需要微信账号才可以投票,这个的话需要你们自己准备好账号,否则无法进行拉票的。
2、每个活动的链接地址都是不同的,微信上的投票地址需要用短域名才可以,就是打开投票页面后点击复制出来的地址就是符合的。
2、记得封包的时候不要中断,否则代码会出现错乱。
版权说明:文章均为海王信投票专家原创,转载本文请注明出处和附带本文链接:https://www.aivtp.com/4238.html
上一篇: 自动投票软件,脚本制作教程!
下一篇:微信投票刷票软件,自己如何制作?