zghyy / zucc_xk_zhengfang Goto Github PK
View Code? Open in Web Editor NEWZUCC正方教务系统抢课助手。针对ZUCC正方教务系统模拟登录,爬取课程信息,自动抓包发包抢课。具体实现流程可参考README中的实现原理链接
License: Apache License 2.0
ZUCC正方教务系统抢课助手。针对ZUCC正方教务系统模拟登录,爬取课程信息,自动抓包发包抢课。具体实现流程可参考README中的实现原理链接
License: Apache License 2.0
我只想爬取验证码然后手动输入,运行了你的爬取验证码的程序,下载下来的gif图片打开后什么也没有?能请教一下是怎么回事吗?
您好 我在使用1.0.2版本时出现如下问题:
已按README安装好所有的库文件
设置好账号密码后,输入2开始抢课,在##POST login
之后出现报错:
Traceback (most recent call last):
File "C:\Users\Tatsukana\AppData\Local\Programs\Python\Python39\lib\site-packages\urllib3\connectionpool.py", line 699, in urlopen
httplib_response = self._make_request(
File "C:\Users\Tatsukana\AppData\Local\Programs\Python\Python39\lib\site-packages\urllib3\connectionpool.py", line 445, in _make_request
six.raise_from(e, None)
File "<string>", line 3, in raise_from
File "C:\Users\Tatsukana\AppData\Local\Programs\Python\Python39\lib\site-packages\urllib3\connectionpool.py", line 440, in _make_request
httplib_response = conn.getresponse()
File "C:\Users\Tatsukana\AppData\Local\Programs\Python\Python39\lib\http\client.py", line 1347, in getresponse
response.begin()
File "C:\Users\Tatsukana\AppData\Local\Programs\Python\Python39\lib\http\client.py", line 307, in begin
version, status, reason = self._read_status()
File "C:\Users\Tatsukana\AppData\Local\Programs\Python\Python39\lib\http\client.py", line 276, in _read_status
raise RemoteDisconnected("Remote end closed connection without"
http.client.RemoteDisconnected: Remote end closed connection without response
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\Tatsukana\AppData\Local\Programs\Python\Python39\lib\site-packages\requests\adapters.py", line 439, in send
resp = conn.urlopen(
File "C:\Users\Tatsukana\AppData\Local\Programs\Python\Python39\lib\site-packages\urllib3\connectionpool.py", line 755, in urlopen
retries = retries.increment(
File "C:\Users\Tatsukana\AppData\Local\Programs\Python\Python39\lib\site-packages\urllib3\util\retry.py", line 532, in increment
raise six.reraise(type(error), error, _stacktrace)
File "C:\Users\Tatsukana\AppData\Local\Programs\Python\Python39\lib\site-packages\urllib3\packages\six.py", line 769, in reraise
raise value.with_traceback(tb)
File "C:\Users\Tatsukana\AppData\Local\Programs\Python\Python39\lib\site-packages\urllib3\connectionpool.py", line 699, in urlopen
httplib_response = self._make_request(
File "C:\Users\Tatsukana\AppData\Local\Programs\Python\Python39\lib\site-packages\urllib3\connectionpool.py", line 445, in _make_request
six.raise_from(e, None)
File "<string>", line 3, in raise_from
File "C:\Users\Tatsukana\AppData\Local\Programs\Python\Python39\lib\site-packages\urllib3\connectionpool.py", line 440, in _make_request
httplib_response = conn.getresponse()
File "C:\Users\Tatsukana\AppData\Local\Programs\Python\Python39\lib\http\client.py", line 1347, in getresponse
response.begin()
File "C:\Users\Tatsukana\AppData\Local\Programs\Python\Python39\lib\http\client.py", line 307, in begin
version, status, reason = self._read_status()
File "C:\Users\Tatsukana\AppData\Local\Programs\Python\Python39\lib\http\client.py", line 276, in _read_status
raise RemoteDisconnected("Remote end closed connection without"
urllib3.exceptions.ProtocolError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "e:\Edge_Downloading\zucc_xk_ZhengFang-1.0.2\zucc_xk_ZhengFang-1.0.2\LOGIN.py", line 110, in <module>
account.login()
File "e:\Edge_Downloading\zucc_xk_ZhengFang-1.0.2\zucc_xk_ZhengFang-1.0.2\LOGIN.py", line 91, in login
login_response = self.session.post(ZUCC.MainURL, data=self.POSTDate,headers=ZUCC.InitHeader)
File "C:\Users\Tatsukana\AppData\Local\Programs\Python\Python39\lib\site-packages\requests\sessions.py", line 590, in post
return self.request('POST', url, data=data, json=json, **kwargs)
File "C:\Users\Tatsukana\AppData\Local\Programs\Python\Python39\lib\site-packages\requests\sessions.py", line 542, in request
resp = self.send(prep, **send_kwargs)
File "C:\Users\Tatsukana\AppData\Local\Programs\Python\Python39\lib\site-packages\requests\sessions.py", line 655, in send
r = adapter.send(request, **kwargs)
File "C:\Users\Tatsukana\AppData\Local\Programs\Python\Python39\lib\site-packages\requests\adapters.py", line 498, in send
raise ConnectionError(err, request=request)
requests.exceptions.ConnectionError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
#Begin to login
##GET login page succeed!
###Identify checkCode
Traceback (most recent call last):
File ".\main.py", line 66, in <module>
account.login()
File "C:\Users\zhbnh\Desktop\zucc_xk_ZhengFang\LOGIN.py", line 76, in login
self.__get_check_code_ocr()
File "C:\Users\zhbnh\Desktop\zucc_xk_ZhengFang\LOGIN.py", line 61, in __get_check_code_ocr
self.POSTDate['txtSecretCode'] = OCR_CODE.run(img_dir, dir_now=img_dir)
File "C:\Users\zhbnh\Desktop\zucc_xk_ZhengFang\OCR_CODE.py", line 107, in run
image = Image.open(image_path + "code.gif")
File "C:\Users\zhbnh\scoop\apps\anaconda3\current\lib\site-packages\PIL\Image.py", line 2862, in open
"cannot identify image file %r" % (filename if filename else fp)
PIL.UnidentifiedImageError: cannot identify image file 'C:\\Users\\zhbnh\\Desktop\\zucc_xk_ZhengFang/code.gif'
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.