import json from instagrapi import Client from datetime import datetime, timedelta import library.lib as lib with open('./config.json') as json_file: json_data = json.load(json_file) KEY = json_data['KEY'] ROOT = json_data['ROOT'] font = f"{ROOT}/library/Pretendard-Bold.ttf" WEBHOOK_URL = json_data['WEBHOOK_URL'] print("πŸͺ | Retrieving saved account information.") cl = Client(json.load(open('./temp/auth/cookies.json'))) cl.set_proxy("socks5h://localhost:9999") print("πŸͺ | Account information was successfully retrieved.") 였늘 = datetime.today() 내일 = 였늘 + timedelta(days=1) MLSV_YMD = (datetime.now() + timedelta(days=1)).strftime('%Y%m%d') print("πŸ“… | Today is the last day of the month.") print("πŸ“† | Uploading School Event Post") 학사일정_경둜 = lib.학사일정_μ–»κΈ°() cl.photo_upload( 학사일정_경둜, caption=f"#μΈμ²œμƒμ •μ€‘ν•™κ΅ #상정쀑학ꡐ #학사일정 \n{내일.strftime("%Y")}λ…„ {내일.strftime("%m")}μ›” 학사일정", extra_data={'is_paid_partnership': False} ) print("πŸ“† | School Event Post Uploaded") print("πŸŽ‰ | All tasks completed.")