friday21 / auto_sign-python3 Goto Github PK
View Code? Open in Web Editor NEW自动签到程序,Python3, 目前支持字幕组(人人影视)签到
自动签到程序,Python3, 目前支持字幕组(人人影视)签到
現在執行會跑出這個訊息,是我設定問題還是什麼問題呢?
Traceback (most recent call last): File "/Users/NeiL_MBP/Documents/crontab/zimuzu.py", line 83, in <module> if sign('[email protected]', 'XXX'): File "/Users/NeiL_MBP/Documents/crontab/zimuzu.py", line 61, in sign data = json.loads(data.decode('utf-8')) File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/json/__init__.py", line 319, in loads return _default_decoder.decode(s) File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/json/decoder.py", line 339, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/json/decoder.py", line 357, in raw_decode raise JSONDecodeError("Expecting value", s, err.value) from None json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
我剛剛簽到過 然後我在執行一次 他還是顯示簽到成功
是不是壞了?
我的系統是OS X ,當我執行crontab時,log顯示以下的錯誤,看起來像是編碼錯誤的樣子?
看起來像是print不出中文字的樣子
真不好意思,又麻煩你了
`From [email protected] Thu May 19 04:03:01 2016
Return-Path: [email protected]
X-Original-To: ANDY_MBP
Delivered-To: [email protected]
Received: by ANDYdeMacBook-Pro.local (Postfix, from userid 501)
id AB4BD1011734; Thu, 19 May 2016 04:03:01 +0800 (CST)
From: [email protected] (Cron Daemon)
To: [email protected]
Subject: Cron ANDY_MBP@ANDYdeMacBook-Pro python3 /Users/ANDY_MBP/Documents/crontab/zimuzu.py
X-Cron-Env: <PATH=/Library/Frameworks/Python.framework/Versions/3.5/bin/python3:/Library/Frameworks/Python.framework/Versions/3.5/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin>
X-Cron-Env: <SHELL=/bin/sh>
X-Cron-Env: <LOGNAME=ANDY_MBP>
X-Cron-Env: <USER=ANDY_MBP>
X-Cron-Env: <HOME=/Users/ANDY_MBP>
Message-Id: [email protected]
Date: Thu, 19 May 2016 04:03:01 +0800 (CST)
Traceback (most recent call last):
File "/Users/ANDY_MBP/Documents/crontab/zimuzu.py", line 83, in
if sign('[email protected]', '123456'):
File "/Users/ANDY_MBP/Documents/crontab/zimuzu.py", line 66, in sign
print(data['info'])
UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-4: ordinal not in range(128)
`
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.