added Hasaki crawler

This commit is contained in:
Shariar Imtiaz 2024-03-27 12:13:06 +04:00
parent b6bd5ca74b
commit 291f094cfc
1 changed files with 4 additions and 4 deletions

View File

@ -97,9 +97,9 @@ def init_tracker_tab(cur):
flag int flag int
)""") )""")
logging.info("++++++++++++++++++++++++++++++++++++++") # logging.info("++++++++++++++++++++++++++++++++++++++")
cur.execute(f"""select * from process_tracker""") # cur.execute(f"""select * from process_tracker""")
logging.info(cur.fetchall()) # logging.info(cur.fetchall())
cur.execute(f"""select * from process_tracker where process = 'category'""") cur.execute(f"""select * from process_tracker where process = 'category'""")
if cur.fetchone() is None: if cur.fetchone() is None:
@ -113,7 +113,7 @@ def init_tracker_tab(cur):
if cur.fetchone() is None: if cur.fetchone() is None:
cur.execute(f"""insert into process_tracker (process, flag) values('product_info', 0)""") cur.execute(f"""insert into process_tracker (process, flag) values('product_info', 0)""")
logging.info("++++++++++++++++++++++++++++++++++++++") logging.info("++++++++++++++++ process tracker tab status ++++++++++++++++++++++")
cur.execute(f"""select * from process_tracker""") cur.execute(f"""select * from process_tracker""")
logging.info(cur.fetchall()) logging.info(cur.fetchall())