Code Monkey home page Code Monkey logo

youku's People

Contributors

hanguokai avatar liaozd 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  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

youku's Issues

为什么我上传不了

提示错误:youku.util.YoukuError: http_status: 200, error: 1005, SystemException, Client id invalid
谁能帮帮我

urlparse module is renamed to urllib.parse in Python 3

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'

key type is removed from error response and causes error

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.

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'

Fix Suggestion:

Remove key 'type' from util.py - class YoukuError(Exception).

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.