added Hasaki crawler

This commit is contained in:
Shariar Imtiaz 2024-04-01 11:59:47 +04:00
parent 82a3d9d9b8
commit 1e7dcaa894
1 changed files with 21 additions and 18 deletions

View File

@ -20,6 +20,7 @@ logging.basicConfig(filename="/home/ubuntu/logs/hasaki_crawler.log",
class HasakiCategories: class HasakiCategories:
def __init__(self, config): def __init__(self, config):
try:
logging.info("Initializing HasakiSubCategories") logging.info("Initializing HasakiSubCategories")
self.master_category = [] self.master_category = []
self.config = config self.config = config
@ -41,6 +42,8 @@ class HasakiCategories:
self.display = Display(visible=0, size=(800, 600)) self.display = Display(visible=0, size=(800, 600))
self.display.start() self.display.start()
except Exception as e:
logging.info(e)
def __del__(self): def __del__(self):
print("Closing connection.....") print("Closing connection.....")