Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GetSearch only returning 15 results regardless of count setting #495

Closed
WolfHoward opened this issue Aug 5, 2017 · 2 comments
Closed

GetSearch only returning 15 results regardless of count setting #495

WolfHoward opened this issue Aug 5, 2017 · 2 comments

Comments

@WolfHoward
Copy link

WolfHoward commented Aug 5, 2017

I'm using GetSearch to identify users tweeting about specific hash tags. This is my code:

import twitter
from api_access import api_info

api = twitter.Api(consumer_key=api_info['consumer_key'],
                consumer_secret=api_info['consumer_secret'],
                access_token_key=api_info['access_token_key'],
                access_token_secret=api_info['access_token_secret'])

search = api.GetSearch(raw_query='q=%23aging', count=100, result_type="mixed")

I've tried it with various counts and I still only get 15 results. I thought it might have been the sleep_on_rate_limit setting, but I tried with that set to False and get the same result.

@WolfHoward
Copy link
Author

WolfHoward commented Aug 5, 2017

Also tried with result_type set to "recent" even though it's the default and "popular". Found I'm getting the same results regardless of result_type setting.

@jeremylow
Copy link
Collaborator

raw_query overrides every other parameter, so you'll need to specify the count as part of the query string. See: https://python-twitter.readthedocs.io/en/latest/searching.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants