From 586c5fd5a8fdaa8fcc0fa4878e01804b24c16e01 Mon Sep 17 00:00:00 2001 From: Igor Brigadir Date: Tue, 17 Aug 2021 17:33:07 +0100 Subject: [PATCH] fix #519 progress bar start time --- twarc/command2.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/twarc/command2.py b/twarc/command2.py index 620c0e58..fd81ae03 100644 --- a/twarc/command2.py +++ b/twarc/command2.py @@ -234,6 +234,12 @@ def _search( # default number of tweets per response 500 when not set otherwise if max_results == 0: max_results = 100 # temp fix for #504 + + # start time defaults to the beginning of Twitter to override the + # default of the last month. Only do this if start_time is not already + # specified and since_id and until_id aren't being used + if start_time is None and since_id is None and until_id is None: + start_time = datetime.datetime(2006, 3, 21, tzinfo=datetime.timezone.utc) else: if max_results == 0: max_results = 100