lxyu / weibo Goto Github PK
View Code? Open in Web Editor NEWPython sina weibo sdk. More simpler and cleaner than the official one.
Home Page: http://lxyu.github.io/weibo/
Python sina weibo sdk. More simpler and cleaner than the official one.
Home Page: http://lxyu.github.io/weibo/
目前发微博必须包含安全链接,但在微博搜索其他人用python发的微博是可以不包含链接的。不知道如何避免。谢谢!
在python3.4的版本里,你的authorize_url这个方法会报错,应该是urllib.parse.urlencode(params)
你这个应该是基于python2.7写的吧,希望出个python3.x的版本
如题, 微博 SDK 已经禁用了 update 和 upload 命令, 而是改用 share 命令. 望抽点时间跟上. 先谢过了.
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
你写的这个很不错,我有一个小项目一直在用,你应该对微博比较感兴趣,我的项目地址是http://idec.buaa.edu.cn:8080/ 你可以看一下,如果有兴趣可以加入开发哦
Documentation is really confusing .
c2 = Client('API_KEY', 'API_SECRET', 'REDIRECT_URI', 'token') ???
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
So how do pass redirect_uri argument exactly? any example?
您好!
認證成功(set_code)後通過token_info獲取uid的時候發現uid貌似沒有被賦值,永遠返回null。
請指教。
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
請問更新後是否已經無法得到指定用戶的最新動態了?
現在好像只能拿到自己的文章或所有自己關注的用戶文章
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)
如何不用通过浏览器请求获取到code,就像官方的sdk那样,最好能实现这个。
remind/unread_count
这个接口的域名是 https://rm.api.weibo.com
,类似的情况不只是这一个接口,不知本 SDK 能否正常工作?
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.