Code Monkey home page Code Monkey logo

dailycp's Introduction

Hi there 👋

Anurag's GitHub stats

Top Langs

Skillful at:

javascript typescript sass vue webpack nodejs

Familiar with:

html5 css3 nginx linux docker c php python

dailycp's People

Contributors

lemofire avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

dailycp's Issues

感谢感谢

今日校园升级版本后,由原来的XCE927==密钥更换成了ST83=@xv,手上刚好也没有测试环境,模拟器又运行不了

getCollectorDetail方法中获取的ret有问题

报错log:
PS C:\Other\SoftWare\MySoftWare\DailyCP-master> python3 DailyCP.py xxx xxxx xxxx xxxx Login succeeded. [{'wid': '21391', 'instanceWid': 8883, 'formWid': '9028', 'priority': '5', 'subject': '2022级新生来校报到健康打卡', 'content': 'https://wecres.cpdaily.com/counselor/1020258402117903/html/9c42c5107a064797b6f28b06105a635e.html', 'senderUserName': '赵亚宾(材料与冶金学院)', 'createTime': '2022-09-08 00:21', 'startTime': '2022-09-08 00:01', 'endTime': '2022-09-08 23:59', 'currentTime': '2022-09-08 13:41:56', 'isHandled': 0, 'isRead': 0}] {"code":"2210060000","message":"循环普通任务实例wid为空","datas":null} Traceback (most recent call last): File "C:\Other\SoftWare\MySoftWare\DailyCP-master\DailyCP.py", line 239, in <module> main(sys.argv[1:]) File "C:\Other\SoftWare\MySoftWare\DailyCP-master\DailyCP.py", line 236, in main app.autoComplete(address) File "C:\Other\SoftWare\MySoftWare\DailyCP-master\DailyCP.py", line 176, in autoComplete detail = self.getCollectorDetail(item["wid"]) File "C:\Other\SoftWare\MySoftWare\DailyCP-master\DailyCP.py", line 124, in getCollectorDetail url = ret["form"]["formContent"] TypeError: 'NoneType' object is not subscriptable

修改以用于输出ret.text的代码
def getCollectorDetail(self, collectorWid): url = "https://{host}/wec-counselor-collector-apps/stu/collector/detailCollector".format(host=self.host) body = { "collectorWid": collectorWid } self.session.headers["Content-Type"] = "application/json" ret = self.session.post(url, data=json.dumps(body)) print(ret.text) ret = json.loads(ret.text)["datas"] url = ret["form"]["formContent"] return ret

验证码result code:FAIL_UPNOTMATCH

您好,我在测试您的代码的时候发现反复登陆不了,检查发现字段needCaptcha为true,所以将您注释部分获取验证码的部分取消掉,手动输入验证码后 result code字段由原来的 NOTMATCH 变成了 FAIL_UPNOTMATCH
因为本人对网络部分不是很熟悉,想请教以下怎么处理

老哥 执行任务后报错

账号我填的是学号 这个有影响吗
Traceback (most recent call last):
File "/home/runner/.local/lib/python3.6/site-packages/urllib3/connection.py", line 160, in _new_conn
(self._dns_host, self.port), self.timeout, **extra_kw
File "/home/runner/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 61, in create_connection
for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/home/runner/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 677, in urlopen
chunked=chunked,
File "/home/runner/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 381, in _make_request
self._validate_conn(conn)
File "/home/runner/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 976, in _validate_conn
conn.connect()
File "/home/runner/.local/lib/python3.6/site-packages/urllib3/connection.py", line 308, in connect
conn = self._new_conn()
File "/home/runner/.local/lib/python3.6/site-packages/urllib3/connection.py", line 172, in _new_conn
self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7feef977f780>: Failed to establish a new connection: [Errno -2] Name or service not known

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.