api = twitter.Api() AttributeError: 'module' object has no attribute 'Api

后端 未结 7 1136
借酒劲吻你
借酒劲吻你 2020-12-17 10:14

I have been trying to write a simple mention grabber to get started with the twitter Api. Howsoever I\'ve been experienceing some difficulties when initializing the Api. Run

7条回答
  •  萌比男神i
    2020-12-17 10:35

    Use module python-twitter instead of twitter

    $ pip install python-twitter
    

    Reference : https://python-twitter.readthedocs.io/en/latest/installation.html

    For Modules Documentation : https://python-twitter.readthedocs.io/en/latest/twitter.html#modules-documentation

提交回复
热议问题