xjouyi / sinaweibo Goto Github PK
View Code? Open in Web Editor NEWpython脚本,支持非官方API 方式登录新浪微博发送消息和图片
License: MIT License
python脚本,支持非官方API 方式登录新浪微博发送消息和图片
License: MIT License
如题,谢谢!
(http[s]{0,1}://[a-zA-Z0-9\.\-]+\.([a-zA-Z]{2,4})(:\d+)?(/[a-zA-Z0-9\.\-~!@#$%^&+?:_/=<>])?)|((www.)|[a-zA-Z0-9\\.\\-]+\\.([a-zA-Z]{2,4})(:\\d+)?(/[a-zA-Z0-9\\.\\-~!@#$%^&*+?:_/=<>]*)?)
错误信息:
Traceback (most recent call last):
File "", line 1, in
File "/usr/local/lib/python3.6/dist-packages/SinaWeibo/weibo.py", line 33, in init
self.__login()
File "/usr/local/lib/python3.6/dist-packages/SinaWeibo/weibo.py", line 55, in __login
raise e
File "/usr/local/lib/python3.6/dist-packages/SinaWeibo/weibo.py", line 50, in __login
login_info = json.loads(re.search('(({.*}))', resp.text).group(1))
AttributeError: 'NoneType' object has no attribute 'group'
产生错误的时候我觉得是正则的问题。。然后改了改正则,发现好像没用
本机windows+python3.6使用正常。
能在上传图片后返回图片url吗?
国内本地机器没问题。
是不是国外的ip登录的话就不是weibo.py中的那个登录地址了?
输出信息:
File "/usr/local/lib/python2.7/dist-packages/SinaWeibo/weibo.py", line 33, in __init__
self.__login()
File "/usr/local/lib/python2.7/dist-packages/SinaWeibo/weibo.py", line 55, in __login
raise e
AttributeError: 'NoneType' object has no attribute 'group'
Traceback (most recent call last):
File "C:\Users\Administrator\Desktop\spider\src\project\weibo\index.py", line 36, in
wb = Weibo("********", "*********")
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python36\lib\site-packages\SinaWeibo\weibo.py", line 33, in init
self.__login()
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python36\lib\site-packages\SinaWeibo\weibo.py", line 55, in __login
raise e
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python36\lib\site-packages\SinaWeibo\weibo.py", line 50, in __login
login_info = json.loads(re.search('(({.}))', resp.text).group(1))
AttributeError: 'NoneType' object has no attribute 'group'
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.