Skip to content

Commit b96e0ec

Browse files
committed
微信点赞刷票
1 parent 947f484 commit b96e0ec

File tree

7 files changed

+502
-0
lines changed

7 files changed

+502
-0
lines changed

微信点赞刷票/3366.py

Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
#!/usr/bin/env python
2+
# -*- coding: utf-8 -*-
3+
4+
"""
5+
利用代理IP刷点赞票(3366代理)
6+
author: gxcuizy
7+
date: 2021-03-25
8+
"""
9+
10+
import requests
11+
import time
12+
from bs4 import BeautifulSoup
13+
14+
15+
class ThreeSix(object):
16+
def __init__(self):
17+
# 点赞接口地址
18+
self.api_url = 'http://638140.szyuansl.com/topfirst.php?g=Wap&m=Vote&a=ticket'
19+
# 点赞请求参数
20+
self.post_param = {'zid': '11883', 'vid': '237', 'token': 'WMFAUktmdTwiHtTe'}
21+
# 接口请求头信息
22+
self.header = {
23+
'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.116 Safari/537.36 QBCore/4.0.1320.400 QQBrowser/9.0.2524.400 Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2875.116 Safari/537.36 NetType/WIFI MicroMessenger/7.0.20.1781(0x6700143B) WindowsWechat(0x63010200)',
24+
'Content-Type': 'application/x-www-form-urlencoded'
25+
}
26+
# 代理IP地址
27+
self.proxies = {}
28+
# 超时时间
29+
self.time_out = 20
30+
31+
def get_proxies_ip(self, ip_url):
32+
"""获取代理IP"""
33+
ip_request = requests.get(url=ip_url)
34+
html_content = ip_request.text
35+
soup = BeautifulSoup(html_content, 'html.parser')
36+
# IP列表
37+
tr_list = soup.select('table tbody tr')
38+
ip_list = []
39+
for tr in tr_list:
40+
td_info = tr.select('td')
41+
ip_host = td_info[0].text.strip()
42+
ip_port = td_info[1].text.strip()
43+
ip_base = '//' + ip_host + ':' + ip_port
44+
ip_list.append(ip_base)
45+
return ip_list
46+
47+
def print_msg(self, msg=''):
48+
"""打印信息"""
49+
now_time = time.strftime("%Y-%m-%d %H:%M:%S", time.localtime())
50+
print('[' + now_time + '] ' + msg)
51+
52+
def run(self):
53+
"""执行程序"""
54+
while True:
55+
# 获取前11页
56+
page_list = range(1, 11)
57+
for page in page_list:
58+
request_url = 'http://www.ip3366.net/?stype=1&page=' + str(page)
59+
# 获取IP地址
60+
ip_list = self.get_proxies_ip(request_url)
61+
for ip_info in ip_list:
62+
self.proxies = {
63+
'http': 'http:' + ip_info,
64+
'https': 'https:' + ip_info
65+
}
66+
try:
67+
# 发送post请求
68+
request = requests.post(url=self.api_url, data=self.post_param, headers=self.header,
69+
proxies=self.proxies, timeout=self.time_out)
70+
response_text = request.text
71+
self.print_msg(response_text)
72+
except Exception as err_info:
73+
# 异常信息
74+
self.print_msg(str(err_info))
75+
76+
77+
# 程序主入口
78+
if __name__ == "__main__":
79+
obj = ThreeSix()
80+
obj.run()

微信点赞刷票/89ip.py

Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
#!/usr/bin/env python
2+
# -*- coding: utf-8 -*-
3+
4+
"""
5+
利用代理IP刷点赞票(89IP)
6+
author: gxcuizy
7+
date: 2021-03-25
8+
"""
9+
10+
import requests
11+
import time
12+
from bs4 import BeautifulSoup
13+
14+
15+
class EightNine(object):
16+
def __init__(self):
17+
# 点赞接口地址
18+
self.api_url = 'http://638140.szyuansl.com/topfirst.php?g=Wap&m=Vote&a=ticket'
19+
# 点赞请求参数
20+
self.post_param = {'zid': '11883', 'vid': '237', 'token': 'WMFAUktmdTwiHtTe'}
21+
# 接口请求头信息
22+
self.header = {
23+
'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.116 Safari/537.36 QBCore/4.0.1320.400 QQBrowser/9.0.2524.400 Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2875.116 Safari/537.36 NetType/WIFI MicroMessenger/7.0.20.1781(0x6700143B) WindowsWechat(0x63010200)',
24+
'Content-Type': 'application/x-www-form-urlencoded'
25+
}
26+
# 代理IP地址
27+
self.proxies = {}
28+
# 超时时间
29+
self.time_out = 20
30+
31+
def get_proxies_ip(self, ip_url):
32+
"""获取代理IP"""
33+
ip_request = requests.get(url=ip_url)
34+
html_content = ip_request.content
35+
soup = BeautifulSoup(html_content, 'html.parser')
36+
# IP列表
37+
tr_list = soup.select('.layui-table tbody tr')
38+
ip_list = []
39+
for tr in tr_list:
40+
td_info = tr.select('td')
41+
ip_host = td_info[0].text.strip()
42+
ip_port = td_info[1].text.strip()
43+
ip_base = '//' + ip_host + ':' + ip_port
44+
ip_list.append(ip_base)
45+
return ip_list
46+
47+
def print_msg(self, msg=''):
48+
"""打印信息"""
49+
now_time = time.strftime("%Y-%m-%d %H:%M:%S", time.localtime())
50+
print('[' + now_time + '] ' + msg)
51+
52+
def run(self):
53+
"""执行程序"""
54+
while True:
55+
# 获取前7页
56+
page_list = range(1, 7)
57+
for page in page_list:
58+
request_url = 'https://www.89ip.cn/index_' + str(page) + '.html'
59+
# 获取IP地址
60+
ip_list = self.get_proxies_ip(request_url)
61+
for ip_info in ip_list:
62+
self.proxies = {
63+
'http': 'http:' + ip_info,
64+
'https': 'https:' + ip_info
65+
}
66+
try:
67+
# 发送post请求
68+
request = requests.post(url=self.api_url, data=self.post_param, headers=self.header,
69+
proxies=self.proxies, timeout=self.time_out)
70+
response_text = request.text
71+
self.print_msg(response_text)
72+
except Exception as err_info:
73+
# 异常信息
74+
self.print_msg(str(err_info))
75+
76+
77+
# 程序主入口
78+
if __name__ == "__main__":
79+
obj = EightNine()
80+
obj.run()

微信点赞刷票/jiangxianli.py

Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
#!/usr/bin/env python
2+
# -*- coding: utf-8 -*-
3+
4+
"""
5+
利用代理IP刷点赞票(jiangxianli)
6+
author: gxcuizy
7+
date: 2021-03-25
8+
"""
9+
10+
import requests
11+
import time
12+
from bs4 import BeautifulSoup
13+
14+
15+
class JiangXianLi(object):
16+
def __init__(self):
17+
# 点赞接口地址
18+
self.api_url = 'http://638140.szyuansl.com/topfirst.php?g=Wap&m=Vote&a=ticket'
19+
# 点赞请求参数
20+
self.post_param = {'zid': '11883', 'vid': '237', 'token': 'WMFAUktmdTwiHtTe'}
21+
# 接口请求头信息
22+
self.header = {
23+
'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.116 Safari/537.36 QBCore/4.0.1320.400 QQBrowser/9.0.2524.400 Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2875.116 Safari/537.36 NetType/WIFI MicroMessenger/7.0.20.1781(0x6700143B) WindowsWechat(0x63010200)',
24+
'Content-Type': 'application/x-www-form-urlencoded'
25+
}
26+
# 代理IP地址
27+
self.proxies = {}
28+
# 超时时间
29+
self.time_out = 20
30+
31+
def get_proxies_ip(self, ip_url):
32+
"""获取代理IP"""
33+
ip_request = requests.get(url=ip_url)
34+
html_content = ip_request.content
35+
soup = BeautifulSoup(html_content, 'html.parser')
36+
# IP列表
37+
link_list = soup.select('link')
38+
is_start = False
39+
ip_list = []
40+
for link in link_list:
41+
url_info = link.get('href')
42+
if url_info == '//github.com':
43+
is_start = True
44+
if url_info == '//www.baidu.com':
45+
break
46+
if is_start and url_info != '//github.com':
47+
ip_list.append(url_info)
48+
return ip_list
49+
50+
def print_msg(self, msg=''):
51+
"""打印信息"""
52+
now_time = time.strftime("%Y-%m-%d %H:%M:%S", time.localtime())
53+
print('[' + now_time + '] ' + msg)
54+
55+
def run(self):
56+
"""执行程序"""
57+
while True:
58+
# 获取前11页
59+
page_list = range(1, 11)
60+
for page in page_list:
61+
request_url = 'https://ip.jiangxianli.com/?page=' + str(page)
62+
# 获取IP地址
63+
ip_list = self.get_proxies_ip(request_url)
64+
for ip_info in ip_list:
65+
self.proxies = {
66+
'http': 'http:' + ip_info,
67+
'https': 'https:' + ip_info
68+
}
69+
try:
70+
# 发送post请求
71+
request = requests.post(url=self.api_url, data=self.post_param, headers=self.header,
72+
proxies=self.proxies, timeout=self.time_out)
73+
response_text = request.text
74+
self.print_msg(response_text)
75+
except Exception as err_info:
76+
# 异常信息
77+
self.print_msg(str(err_info))
78+
79+
80+
# 程序主入口
81+
if __name__ == "__main__":
82+
obj = JiangXianLi()
83+
obj.run()
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
#!/usr/bin/env python
2+
# -*- coding: utf-8 -*-
3+
4+
"""
5+
刷新网页的浏览次数
6+
author: gxcuizy
7+
date: 2021-03-25
8+
"""
9+
10+
import requests
11+
12+
# 程序主入口
13+
if __name__ == "__main__":
14+
# 活动网页地址
15+
url = 'http://191456.szyuansl.com//topfirst.php?g=Wap&m=Vote&a=detail&token=WMFAUktmdTwiHtTe&id=237&zid=11883&href=1'
16+
# 请求刷新次数
17+
times = 500
18+
# 请求头信息
19+
header = {
20+
'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.116 Safari/537.36 QBCore/4.0.1320.400 QQBrowser/9.0.2524.400 Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2875.116 Safari/537.36 NetType/WIFI MicroMessenger/7.0.20.1781(0x6700143B) WindowsWechat(0x63010200)'
21+
}
22+
# 循环刷新
23+
while times > 0:
24+
requests.get(url=url, headers=header)
25+
times -= 1
26+
print('剩余刷新次数:' + str(times))

微信点赞刷票/xiaohuan.py

Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
#!/usr/bin/env python
2+
# -*- coding: utf-8 -*-
3+
4+
"""
5+
利用代理IP刷点赞票(小幻代理)
6+
author: gxcuizy
7+
date: 2021-03-25
8+
"""
9+
10+
import requests
11+
import time
12+
from bs4 import BeautifulSoup
13+
14+
15+
class XiaoHuan(object):
16+
def __init__(self):
17+
# 点赞接口地址
18+
self.api_url = 'http://638140.szyuansl.com/topfirst.php?g=Wap&m=Vote&a=ticket'
19+
# 点赞请求参数
20+
self.post_param = {'zid': '11883', 'vid': '237', 'token': 'WMFAUktmdTwiHtTe'}
21+
# 接口请求头信息
22+
self.header = {
23+
'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.116 Safari/537.36 QBCore/4.0.1320.400 QQBrowser/9.0.2524.400 Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2875.116 Safari/537.36 NetType/WIFI MicroMessenger/7.0.20.1781(0x6700143B) WindowsWechat(0x63010200)',
24+
'Content-Type': 'application/x-www-form-urlencoded'
25+
}
26+
# 代理IP地址
27+
self.proxies = {}
28+
# 超时时间
29+
self.time_out = 30
30+
31+
def get_proxies_ip(self, ip_url):
32+
"""获取代理IP"""
33+
ip_request = requests.get(url=ip_url)
34+
html_content = ip_request.content
35+
soup = BeautifulSoup(html_content, 'html.parser')
36+
# IP列表
37+
tr_list = soup.select('table tbody tr')
38+
ip_list = []
39+
for tr in tr_list:
40+
td_info = tr.select('td')
41+
ip_host = td_info[0].text.strip()
42+
ip_port = td_info[1].text.strip()
43+
ip_base = '//' + ip_host + ':' + ip_port
44+
ip_list.append(ip_base)
45+
return ip_list
46+
47+
def print_msg(self, msg=''):
48+
"""打印信息"""
49+
now_time = time.strftime("%Y-%m-%d %H:%M:%S", time.localtime())
50+
print('[' + now_time + '] ' + msg)
51+
52+
def run(self):
53+
"""执行程序"""
54+
while True:
55+
# 获取当前最新的IP
56+
request_url = 'https://ip.ihuan.me'
57+
# 获取IP地址
58+
ip_list = self.get_proxies_ip(request_url)
59+
for ip_info in ip_list:
60+
self.proxies = {
61+
'http': 'http:' + ip_info,
62+
'https': 'https:' + ip_info
63+
}
64+
try:
65+
# 发送post请求
66+
request = requests.post(url=self.api_url, data=self.post_param, headers=self.header,
67+
proxies=self.proxies, timeout=self.time_out)
68+
response_text = request.text
69+
self.print_msg(response_text)
70+
except Exception as err_info:
71+
# 异常信息
72+
self.print_msg(str(err_info))
73+
74+
75+
# 程序主入口
76+
if __name__ == "__main__":
77+
obj = XiaoHuan()
78+
obj.run()

0 commit comments

Comments
 (0)