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