hanguokai / youku Goto Github PK
View Code? Open in Web Editor NEWYouku API Python SDK
License: Apache License 2.0
Youku API Python SDK
License: Apache License 2.0
提示错误:youku.util.YoukuError: http_status: 200, error: 1005, SystemException, Client id invalid
谁能帮帮我
Hi, can you check the youku.find_videos_by_ids
method?
while using youku.find_videos_by_ids(ids)
I'm getting
http_status: 200, error: 1005, SystemException, Client id invalid
the same client ID works fine with uploading
my
ids = ['XMzg3NzcwNjEwNA==']
thank you
Hi.
Youku doesn't use openapi.youku.com since 21-04-2017, they replace it with api.youku.com .
Can you make your code compatible with v2 version?
You can see the following code, url = 'https://api.youku.com/uploads/create.json' .
It's different with old code. url = 'https://openapi.youku.com/v2/uploads/create.json'
Traceback (most recent call last):
File "/usr/local/Cellar/python3/3.5.1/Frameworks/Python.framework/Versions/3.5/lib/python3.5/runpy.py", line 170, in _run_module_as_main
"__main__", mod_spec)
File "/usr/local/Cellar/python3/3.5.1/Frameworks/Python.framework/Versions/3.5/lib/python3.5/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/Users/xxx/Development/Projects/xxx/youku.py", line 2, in <module>
from youku import YoukuVideos
File "/usr/local/lib/python3.5/site-packages/youku/__init__.py", line 1, in <module>
from .util import YoukuError
File "/usr/local/lib/python3.5/site-packages/youku/util.py", line 1, in <module>
import urlparse
ImportError: No module named 'urlparse'
The change in error response is detected on Sept 26, 2019.
key 'type' is removed from error response.
For example, give wrong access_token, you will get below response without "type" in error.
{"error":{"code":1008,"description":"Access token invalid"}}
Thus we have below error.
Traceback (most recent call last):
File "upload.py", line 113, in main
upload.upload()
File "upload.py", line 53, in upload
yk.upload(self.file_info)
File "/usr/local/lib/python3.7/dist-packages/youku/youku_upload.py", line 361, in upload
self.create(self.prepare_video_params(**params))
File "/usr/local/lib/python3.7/dist-packages/youku/youku_upload.py", line 171, in create
check_error(r, 201)
File "/usr/local/lib/python3.7/dist-packages/youku/util.py", line 39, in check_error
raise YoukuError(error['code'], error['type'],
KeyError: 'type'
Remove key 'type' from util.py - class YoukuError(Exception).
Thanks for making this great package!
Not sure that whether this is my setting error or your package bug.
I have checked and tried quite a few times of my client id, it should be correct.
I found similar questions here, looks like a common problem.
https://zhidao.baidu.com/question/520143398.html
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.