mirror of
https://github.com/agresdominik/predictify.git
synced 2026-04-21 09:51:56 +00:00
'fix' for a bug
This commit is contained in:
@@ -1,9 +1,12 @@
|
||||
import argparse
|
||||
from time import sleep
|
||||
|
||||
from database_handler import Database
|
||||
from gdpr_export import export_gdpr_data
|
||||
from scraper import scrape_missing_infos, scraping
|
||||
|
||||
db = Database()
|
||||
|
||||
# Initialize the parser
|
||||
parser = argparse.ArgumentParser(description="A python script written in Python3.13 which continuously checks what spotify songs "
|
||||
"the user is listening to and logging these in a local database. \n"
|
||||
@@ -32,3 +35,7 @@ while True:
|
||||
scraping()
|
||||
print('Done Scraping')
|
||||
sleep(1800)
|
||||
|
||||
|
||||
# TODO: Trap this:
|
||||
db.close()
|
||||
|
||||
Reference in New Issue
Block a user