Giter Site home page Giter Site logo

sinaweibo's People

Contributors

xjouyi 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

Watchers

 avatar  avatar

sinaweibo's Issues

centos+python3.6 发生报错

错误信息:
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使用正常。

放在国外vps上登录失败

国内本地机器没问题。
是不是国外的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'

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.