Giter Club home page Giter Club logo

weibo's Issues

新浪微博的sdk有点问题

在python3.4的版本里,你的authorize_url这个方法会报错,应该是urllib.parse.urlencode(params)
你这个应该是基于python2.7写的吧,希望出个python3.x的版本

真的问题大

Traceback (most recent call last):
File "test.py", line 24, in
search(t)
File "/home/chengshuyi/python/weibo/search.py", line 8, in search
c = Client(API_KEY, API_SECRET, REDIRECT_URI, token)
File "/usr/local/lib/python2.7/dist-packages/weibo.py", line 45, in init
self.set_token(token)
File "/usr/local/lib/python2.7/dist-packages/weibo.py", line 84, in set_token
self.uid = token['uid']
TypeError: string indices must be integers, not str

documentation issue

Documentation is really confusing .

c2 = Client('API_KEY', 'API_SECRET', 'REDIRECT_URI', 'token') ???

安装的时出现UnicodeError

Traceback (most recent call last):
File "", line 20, in
File "C:\Users\qiao\AppData\Local\Temp\pip-build-2wl7dm3o\weibo\setup.py", line 15, in
long_description=open('README.rst').read(),
UnicodeDecodeError: 'gbk' codec can't decode byte 0xae in position 241: illegal multibyte sequence

----------------------------------------

Command "python setup.py egg_info" failed with error code 1 in
C:\Users\qiao\AppData\Local\Temp\pip-build-2wl7dm3o\weibo
windows10+python3.4

uid

您好!
認證成功(set_code)後通過token_info獲取uid的時候發現uid貌似沒有被賦值,永遠返回null。
請指教。

requests.exceptions.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed

c.get('users/show', uid=1282440983)
Traceback (most recent call last):
File "", line 1, in
File "/usr/lib/python2.7/site-packages/weibo.py", line 107, in get
self._assert_error(res)
File "/usr/lib/python2.7/site-packages/weibo.py", line 95, in _assert_error
d.get("error_code", ""), d.get("error", "")))
RuntimeError: 21333 forbid use this authentication type: basic

报错 TypeError: session() takes no arguments (1 given)

当执行c.set_code('code')时报错

Requests版本1.0.4

File "bot.py", line 9, in
c.set_code(code)
File "/Library/Python/2.7/site-packages/weibo.py", line 83, in set_code
self.set_token(tk['access_token'], time.time() + int(tk['expires_in']))
File "/Library/Python/2.7/site-packages/weibo.py", line 92, in set_token
params={'access_token': self.access_token})
TypeError: session() takes no arguments (1 given)

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.