diff --git a/tootbot.py b/tootbot.py index e72cd66608cc69a290dbdb92b82bd1617a5c9ccf..1f9069c1050785b553e3e13496f042c1d94527db 100755 --- a/tootbot.py +++ b/tootbot.py @@ -3,6 +3,7 @@ import sys import re import sqlite3 from datetime import datetime, timedelta +from time import sleep import feedparser from mastodon import Mastodon @@ -136,7 +137,8 @@ for t in reversed(d.entries): db.execute("INSERT INTO tweets VALUES ( ? , ? , ? , ? , ? )", (t.id, toot["id"], source, mastodon, instance)) sql.commit() + sleep(0.1) else: print(".",end='') -print("Bye!") +print("done.")