start-time end-time arguments having no effect
Describe the bug tweets are being returned that fall outside the start-time and end-time arguments. Call below returned tweets back to 2011
To Reproduce
/usr/local/bin/search_tweets.py --query "istandwithrussia OR istandwithputin" --filename-prefix ~/standwith.json --no-print-stream --start-time "2022-02-20 00:01" --end-time "2022-05-17 13:52" --expansions=author_id,entities.mentions.username,geo.place_id,in_reply_to_user_id,referenced_tweets.id,referenced_tweets.id.author_id --tweet-fields=id,author_id,created_at,text,geo,entities --user-fields=location,description,public_metrics,username --results-per-call=500
Expected behavior Tweets returned that have created_at attribute between the specified dates.
Environment Ubuntu 20.04 Python version 3.6
Additional context I am an academic API user and this may be defaulting to historical search, but don't know if there is a way to tell or specify otherwise.
The time and date format has to be YYYY-mm-DDTHH:MM so,
--start-time "2022-02-20 00:01" --end-time "2022-05-17 13:52"
should be
--start-time "2022-02-20T00:01" --end-time "2022-05-17T13:52"
(all these are UTC)
Aha!
I wonder why it didn’t throw an error.
Thanks….S
From: Igor Brigadir @.> Sent: Thursday, May 19, 2022 3:12 PM To: twitterdev/search-tweets-python @.> Cc: Steven Corman @.>; Author @.> Subject: Re: [twitterdev/search-tweets-python] start-time end-time arguments having no effect (Issue #151)
The time and date format has to be YYYY-mm-DDTHH:MM so,
--start-time "2022-02-20 00:01" --end-time "2022-05-17 13:52"
should be
--start-time "2022-02-20T00:01" --end-time "2022-05-17T13:52"
(all these are UTC)
— Reply to this email directly, view it on GitHubhttps://urldefense.com/v3/__https:/github.com/twitterdev/search-tweets-python/issues/151*issuecomment-1132255862__;Iw!!IKRxdwAv5BmarQ!b9F7LCcMCnMfooHq_qaW7ReV2ihf72DnuVGyTXRKwuqvut7QIbGipI8jjDceOBuo9HIblgPkYLLTcXaI5JdS-FB3ZUU$, or unsubscribehttps://urldefense.com/v3/__https:/github.com/notifications/unsubscribe-auth/ACFXZ46S7GU7XYJL674S7EDVK24EVANCNFSM5WNSDIWQ__;!!IKRxdwAv5BmarQ!b9F7LCcMCnMfooHq_qaW7ReV2ihf72DnuVGyTXRKwuqvut7QIbGipI8jjDceOBuo9HIblgPkYLLTcXaI5JdS9wyjhQc$. You are receiving this because you authored the thread.Message ID: @.@.>>