edit : bing art 추가

This commit is contained in:
2025-03-18 13:05:31 +09:00
parent 6e5f990fc1
commit b04d08bf23
12 changed files with 230 additions and 41 deletions

17
custom_apps/utils.py Normal file
View File

@@ -0,0 +1,17 @@
class CookieManager:
DEFAULT_COOKIE = "19S_ux18UhHzxHMsY5gTYwqk2YjYahwxssgJyx0AybuAjDa_kZKWFauqMSrtb1a80s89VjmLwKWIGhvpZxLOzkwcMXAuShkgFwGSVlD8ayI7qgQiCabE9-UFByw4QJ_ZSAnOnskn5iPydk4vaZZEayTR--u7-mVglsaANK6rGOQPeu8q-Sa6cjVCUQR9kkjEtz-J4wf2MQ6inXuC41IbCi8QwmZyHkwxOy6U6CqPiREg"
def __init__(self):
self.cookie = self.DEFAULT_COOKIE
def get_cookie(self):
if not self.cookie:
raise
else:
return self.cookie
def set_cookie(self,new_cookie):
self.cookie = new_cookie
cookie_manager = CookieManager()