Hi,
I am using the searchtweet Python package (see “https://pypi.org/project/searchtweets/”).
I am using the code script from the website and it works pretty well!
from searchtweets import gen_rule_payload, load_credentials
premium_search_args = load_credentials("-/twitter_keys.yaml",
account_type="premium")
rule = gen_rule_payload("mykeyword", results_per_call=100, from_date="2018-06-29", to_date="2018-07-05")
print(rule)
from searchtweets import collect_results
tweets = collect_results(rule,
max_results=100,
result_stream_args=premium_search_args)
[print(tweet.all_text) for tweet in tweets[0:10]]
My question is how I can get the “next token” of my query results? I can only get 100 tweets at the time so I need to get the next token to redefine my request to track the next tweets that match my request.
Thank you very much!!
Kenza