normanbb / wjx_autosubmit Goto Github PK
View Code? Open in Web Editor NEW问卷星问卷自动提交,Python3版本,2020年8月仍有效
License: GNU General Public License v3.0
问卷星问卷自动提交,Python3版本,2020年8月仍有效
License: GNU General Public License v3.0
是这样子的吗,看代码不是有代理吗
今天我测试了一下这个脚本发现还是可以用的,我是提交固定答案所以没有测试随机选择的功能,在测试过程中发现get_fill_content()函数中的 res = requests.get(url, headers=headers)有时会丢失与服务器的链接而导致程序意外停止,所以做了一点修改如下:
def get_fill_content(url):
headers = {
'user-agent': UserAgent().random
}
res=None
while res is None:
try:
res = requests.get(url, headers=headers,timeout=5)
except:
pass
cookies = res.cookies
return res.text,cookies
经测试稳定很多,不会出现意外停止了
2020.9.07
依赖安装好之后运行脚本,总是出现以下报错:
WJX_Autosubmit-master>python WJX_Autosubmit.py -l
本程序用于构建随机答案填写问卷星问卷
use proxy from www.proxy-list.download
开始验证代理
验证代理完成,用时: 0.53 s
使用验证proxy-list代理
输入问卷地址:https://www.wjx.cn/m/90368218.aspx
输入提交次数:20
程序开始运行
Traceback (most recent call last):
File "WJX_Autosubmit.py", line 235, in
main(times)
File "WJX_Autosubmit.py", line 155, in main
ip_list = proxy.choose_proxy(filename)
File "D:\Users\小火柴\Desktop\问卷星\WJX_Autosubmit-master\fake_info.py", line 58, in choose_proxy
with open(filename, 'r') as file:
FileNotFoundError: [Errno 2] No such file or directory: 'proxy_list_temp.list'
相关方发了Email给我,我觉得很有趣。故分享出来。
小全代理,这是一个免费HTTP隧道代理,也是一个代理IP的共享计划。
当您共享自己的IP时,也可以免费使用别人共享的代理IP,互联网的精神不就是:“我为人人,人人为我”吗?
我们诚挚的邀请您加入"代理IP共享计划",有了您贡献的力量,小全代理共享IP计划会更美好!!!
官网地址: http://www.full-proxy.com
问卷星中的必答填空题会被卡,没有办法提交
网页返回22是因为提交的网址又改了吗,我抓包没看出来,望大佬指点下😣
您好,想问下 使用您的那个代码报错了
File "f:/interseting programs/AUTO wjx/main.py", line 133, in main
if int(result) in [10]:
ValueError: invalid literal for int() with base 10: '9〒'
是什么原因呢
请问一下,如果我想设置多选题的默认答案,应该如何修改您的代码呢?
use proxy from www.proxy-list.download
开始验证代理
验证代理完成,用时: 17.91 s
使用验证proxy-list代理
输入问卷地址:
输入提交次数:30
程序开始运行
代理 159.8.114.37:80 不可用
代理 119.81.189.194:8123 不可用
代理 69.28.62.166:3128 不可用
代理 119.81.189.194:80 不可用
代理 169.57.157.148:8123 不可用
代理 159.8.114.34:8123 不可用
代理 159.8.114.37:8123 不可用
代理 169.57.157.148:80 不可用
[ Response : 22 ] ===> 提交失败!!!!
[ Response : 22 ] ===> 提交失败!!!!
代理 169.57.157.146:8123 不可用
[ Response : 22 ] ===> 提交失败!!!!
[ Response : 22 ] ===> 提交失败!!!!
[ Response : 22 ] ===> 提交失败!!!!
[ Response : 22 ] ===> 提交失败!!!!
[ Response : 22 ] ===> 提交失败!!!!
[ Response : 22 ] ===> 提交失败!!!!
[ Response : 22 ] ===> 提交失败!!!!
[ Response : 22 ] ===> 提交失败!!!!
[ Response : 22 ] ===> 提交失败!!!!
[ Response : 22 ] ===> 提交失败!!!!
[ Response : 22 ] ===> 提交失败!!!!
[ Response : 22 ] ===> 提交失败!!!!
[ Response : 22 ] ===> 提交失败!!!!
[ Response : 22 ] ===> 提交失败!!!!
[ Response : 22 ] ===> 提交失败!!!!
[ Response : 22 ] ===> 提交失败!!!!
[ Response : 22 ] ===> 提交失败!!!!
[ Response : 22 ] ===> 提交失败!!!!
[ Response : 22 ] ===> 提交失败!!!!
程序运行结束,成功提交0份调查报告
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.