微信投票软件,如何编写?
2018-08-02 20:08:21 | 分类:微信刷票软件 | 评论:0人 | 浏览:1,822次
- 正文内容
- 我来说两句:(已有0人参与)
投票活动快速互投提升票数请加— —纯人工互投提升票数数量.互相投票以娱乐为主!
当下微信投票热,大家都比较喜欢进行刷投票,那么是否可以用微信投票软件来操作呢?当然是可以的,那么微信投票软件,如何编写?你们应该不是很了解,在此小编给大家分享下微信投票软件的教程,希望对大家有帮助。
BeautifulSoup+selenium +firefox
from bs4 import BeautifulSoup
from selenium import webdriver
import time
from random import sample,choice
import requests
import re
def scanWeb(addr,ips=[]):
"""执行刷票"""
for num,ipstring in enumerate(ips):
ip,port=ipstring.split(":")
profile = webdriver.FirefoxProfile()
# 设置代理
profile.set_preference("network.proxy.type", 1)
profile.set_preference("network.proxy.http", ip)
profile.set_preference("network.proxy.http_port", port)
profile.set_preference("general.useragent.override",selectUserAgent())
profile.update_preferences()
driver = webdriver.Firefox(profile)
driver.get(addr)
driver.set_page_load_timeout(10) #设置超时报错
driver.set_script_timeout(10) #设置脚本超时时间。
#now_handle = driver.current_window_handle #获得当前句柄
#等待页面更新完毕
time.sleep(3)
sltI=selectItemID()
#给10个项目投票
try:
for ID in sltI:
js2 = "var q=document.getElementById('"+ID+"').click()"
driver.execute_script(js2)
time.sleep(3)
al = driver.switch_to_alert()
al.accept()
driver.find_element_by_class_name("btn").click()
except:
pass
driver.quit()
def selectUserAgent():
"""随机获取一个useragent"""
return choice(uas)
def selectItemID():
"""获取4个必选项目以及6个随机项目ID"""
cmID = ["v1275", "v1270", "v1300", "v1278"]
othID = ['v1344', 'v1267', 'v1268', 'v1280', 'v1304', 'v1148', 'v1283', 'v1276', 'v1274',
'v1288', 'v1222','v1286', 'v1277', 'v1303', 'v1285', 'v1273', 'v1309', 'v1305', 'v1284',
'v1282']
sltID=cmID+sample(othID,6)
return sltID
def get_ip():
"""获取代理IP"""
url = "http://www.xicidaili.com/nn"
headers = { "Accept":"text/html,application/xhtml+xml,application/xml;",
"Accept-Encoding":"gzip, deflate, sdch",
"Accept-Language":"zh-CN,zh;q=0.8,en;q=0.6",
"Referer":"http://www.xicidaili.com",
"User-Agent":"Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.90 Safari/537.36"
}
r = requests.get(url,headers=headers)
soup = BeautifulSoup(r.text, 'html.parser')
data = soup.table.find_all("td")
ip_compile= re.compile(r'<td>(\d+\.\d+\.\d+\.\d+)</td>') # 匹配IP
port_compile = re.compile(r'<td>(\d+)</td>') # 匹配端口
ip = re.findall(ip_compile,str(data)) # 获取所有IP
port = re.findall(port_compile,str(data)) # 获取所有端口
return [":".join(i) for i in zip(ip,port)] # 组合IP+端口,如:115.112.88.23:8080
scanWeb("http://xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",get_ip())
以上是小编编写的微信投票软件代码,大家可以直接封包使用,但是千万封包期间千万不要开启杀毒软件,否则会误报,等下点错了就会被误删掉了。
我在分享下软件解压后的使用教程
1、打开微信刷票软件,先设置刷票的“需求量”。
2、设置“微信投票信息”。
3、拨号“设置”,票数少的情况下可不用拨号。
4、点击“开始投票”。
温馨提示:大家在投票的时候请注意,软件存在投票失败的情况,如果遇到可重复多投几次即可解决。
版权说明:文章均为海王信投票专家原创,转载本文请注明出处和附带本文链接:https://www.aivtp.com/4253.html
上一篇: 免费刷票器的代码编写步骤
下一篇:微信刷投票软件,自己如何编写?