aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bot.py6
-rw-r--r--requirements.txt5
2 files changed, 8 insertions, 3 deletions
diff --git a/bot.py b/bot.py
index 0935879..27a5f3a 100644
--- a/bot.py
+++ b/bot.py
@@ -13,4 +13,8 @@ def post():
get_images.logging.info("Posted to twitter.")
if __name__ == "__main__":
- post()
+ import time
+
+ while True:
+ post()
+ time.sleep(60*60)
diff --git a/requirements.txt b/requirements.txt
index 48f6f9e..325cb7d 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -1,7 +1,8 @@
Shapely==1.7.1
-requests==2.21.0
colorthief==0.2.1
+opencv_python==4.1.1.26
+requests==2.18.4
lxml==4.5.2
dataclasses==0.7
Pillow==7.2.0
-TwitterAPI==2.5.13
+twython==3.8.2