1
0
Fork 0
mirror of https://github.com/Lynnesbian/FediBooks/ synced 2024-11-25 08:38:59 +00:00

less logspam

This commit is contained in:
Lynne Megido 2020-01-20 12:52:38 +10:00
parent 34622230b0
commit 841098cc18
Signed by: lynnesbian
GPG key ID: F0A184B5213D9F90

View file

@ -19,7 +19,7 @@ def scrape_posts(account):
) )
handle = account[0] handle = account[0]
outbox = account[1] outbox = account[1]
print("Scraping {}".format(handle)) # print("Scraping {}".format(handle))
c = db.cursor() c = db.cursor()
last_post = 0 last_post = 0
c.execute("SELECT COUNT(*) FROM `posts` WHERE `fedi_id` = %s", (handle,)) c.execute("SELECT COUNT(*) FROM `posts` WHERE `fedi_id` = %s", (handle,))
@ -94,7 +94,7 @@ def scrape_posts(account):
db.commit() db.commit()
db.commit() db.commit()
print("Finished scraping {}".format(handle)) # print("Finished scraping {}".format(handle))
print("Establishing DB connection") print("Establishing DB connection")
db = MySQLdb.connect( db = MySQLdb.connect(