import logging import json import time import smtplib from hasaki_categories import HasakiCategories from hasaki_category_products import HasakiCategoryProducts from hasaki_product_info import HasakiProductInfo from email.message import EmailMessage ##### Looger ###### format = "%(asctime)s: %(message)s" logging.basicConfig(format=format, level=logging.INFO, datefmt="%Y-%m-%d %H:%M:%S") config = {} def main(): # hasaki_categories = HasakiCategories(config) # hasaki_categories.start_processing() # # time.sleep(60) # # hasaki_category_products = HasakiCategoryProducts(config) # hasaki_category_products.start_processing() # # time.sleep(60) hasaki_products = HasakiProductInfo(config) hasaki_products.start_processing() def send_mail(msg): try: EMAIL_ADDRESS = "AKIAR2YL57QC6NITTJN5" EMAIL_PASSWORD = "BAs9W772KNxLL1xnMzYhdIkpflQ8H+KP0Zbl8dphQZWh" From = 'data_reporting@raenabeauty.com' To = 'shariar@raenabeauty.com, data_reporting@raenabeauty.com' # To = 'shariar@raenabeauty.com' html = f'''
This is system generated mail. Please do not reply