Note that there are some explanatory texts on larger screens.

plurals
  1. POtwitter GetFavorites function throws error
    primarykey
    data
    text
    <p>I am fetching data from twitter API 1.1. When I use GetFavorites function is get following error:</p> <pre><code>In [16]: fav_list = api.GetFavorites(screen_name='cshikhardua') --------------------------------------------------------------------------- TwitterError Traceback (most recent call last) &lt;ipython-input-16-f9bfd7deaf24&gt; in &lt;module&gt;() ----&gt; 1 fav_list = api.GetFavorites(screen_name='cshikhardua') &lt;ipython-input-2-2df6e498a699&gt; in GetFavorites(self, user_id, screen_name, count, since_id, max_id, include_entities) 4241 4242 json = self._FetchUrl(url, parameters=parameters) -&gt; 4243 data = self._ParseAndCheckTwitter(json) 4244 return [Status.NewFromJsonDict(x) for x in data] 4245 &lt;ipython-input-2-2df6e498a699&gt; in _ParseAndCheckTwitter(self, json) 4917 try: 4918 data = simplejson.loads(json) -&gt; 4919 self._CheckForTwitterError(data) 4920 except ValueError: 4921 if "&lt;title&gt;Twitter / Over capacity&lt;/title&gt;" in json: &lt;ipython-input-2-2df6e498a699&gt; in _CheckForTwitterError(self, data) 4944 # to check first, rather than try and catch the exception 4945 if 'error' in data: -&gt; 4946 raise TwitterError(data['error']) 4947 if 'errors' in data: 4948 raise TwitterError(data['errors']) TwitterError: Not authorized </code></pre> <p>But if I use GetFollowers function with same screen name and same instance of Api, I get appropriate response: </p> <pre><code>In [18]: fav_list Out[18]: ([&lt;__main__.User at 0x2ffa450&gt;, &lt;__main__.User at 0x2ffa850&gt;, &lt;__main__.User at 0x2ffa750&gt;], 0, 0) </code></pre> <p>Could anyone help me understand what's going wrong ?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload