0

I am using Twython to get popular tweets. However I am only getting 15 per search function call. I already tried passing the count argument to the function to get more but it keeps returning 15.

Here is the code:

result = twitter.search(q='a', count=100, result_type='popular')

for item in result['statuses']:
    print(item['text'].encode('ascii', 'ignore'))

I also tried setting count='100' and count="100" but it is the same.

Thank you.

2 Answers2

0

Try:

result = twitter.search(q='a', count=100)

Although this doesn't work with result_type='popular' and I haven't figured out why.

Also look into paginated search results here: Twython search API with next_results

Community
  • 1
  • 1
jmunsch
  • 22,771
  • 11
  • 93
  • 114
0

Same thing happened with me, with twitter-node-client for future searchers. Looks like it's a bug with the Twitter api .

Rakan Nimer
  • 574
  • 5
  • 9