Tweepy API calls not working

python, tweepy

Solution

The documentation you refer to, is for version 1.4 but the current released versions are 1.13 and 2.0; I'd expect the latter especially to no longer match that documentation.

However, the Tweepy API directly reflects the Twitter API.

For trends for example, there are several separate methods:

- `/trends/place`

- `/trends/available`

- `/trends/closest`

As such, `api.trends_available()` should work just fine; replace path separators by underscores.

Problem

I started using Tweepy for a project. So far I've got the following to work. - authentication - getting streams - filtering streams - update the status However, I can't get some of the API calls to work, most of them return `API object has no attribute ______` for eg: ``` api = tweepy.API(auth) api.trends() ``` return `API object has no attribute trends` Does anyone know if the documentation is outdated or am I doing something wrong ? Documentation I'm using

Original source