From 2d478b767b74a6f18b9c10da938a3b9f236d00d8 Mon Sep 17 00:00:00 2001 From: Dima Gerasimov Date: Tue, 12 Mar 2019 12:18:10 +0000 Subject: [PATCH] move main to init --- tweets/__init__.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tweets/__init__.py b/tweets/__init__.py index 0e3cf6b..89eef63 100644 --- a/tweets/__init__.py +++ b/tweets/__init__.py @@ -69,3 +69,7 @@ def tweets_on(*dts: Datish) -> List[Tweet]: return predicate_date(lambda d: d in dates) on = tweets_on + +if __name__ == '__main__': + for t in tweets_all(): + print(t)