我想发送一个数据到这个网站使用图书馆的请求,这使投票。 您已完成以下操作: 这是真的吗?在
import time
import requests
from time import sleep
url = 'http://www.xtremetop100.com/in-post.php?site=1132347673'
s = requests.Session()
proxy = "8.8.8.8:8080"
s.headers.update({
'Host': 'www.xtremetop100.com',
'User-Agent': 'Mozilla/5.0 (X11; Linux i686; rv:51.0) Gecko/20100101 Firefox/51.0',
'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
'Accept-Language': 'en-US,en;q=0.5',
'Referer': 'http://www.xtremetop100.com/in.php?site=1132347673',
'DNT': '1',
'Connection': 'close',
'Upgrade-Insecure-Requests':'1',
'Content-Type': 'application/x-www-form-urlencoded',
'Content-Length': '440',
})
proxy = {'http': 'http://' + proxy, 'https': 'https://' + proxy}
data = {
'site' :"1132347673",
'secure_captcha_check':"6110",
'g-recaptcha-response':captcha_response,
'ticki' :"Vote+for+ZeroConquer[New+Server]"
}
Cookies = { 'flowridaoookie':"1",'_gid':"GA1.2.1228802977.1547667122",'_gat_gtag_UA_116540956_1':"1",'_ga':"GA1.2.1330506724.1547667122",'__cfduid':cfduid,'__atuvs':"5c42ed6d02994f98001",'__atuvc':"156|3"}
response = s.post(url,data=data,Cookies=Cookies,proxies=proxy)
time.sleep(5)
打印响应状态代码在
我想验证发件人链接是否正确? 饼干的样式是正确的吗?在
首先,你不能因为它使用captcha。 但是,如果您想了解更多关于python的信息,我修改了您的代码,以获得一些工作,因为您的代码有一些错误,您可以查看我的代码,看看您的错误在哪里等
相关问题 更多 >
编程相关推荐