edit : bing art 추가
This commit is contained in:
17
custom_apps/utils.py
Normal file
17
custom_apps/utils.py
Normal 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()
|
||||
Reference in New Issue
Block a user