You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
start-time end-time arguments having no effect #151
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.
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,
Activity
igorbrigadir commentedon May 19, 2022
The time and date format has to be
YYYY-mm-DDTHH:MMso,--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)
networks1 commentedon May 19, 2022