Skip to content

Commit

Permalink
Update cookie
Browse files Browse the repository at this point in the history
  • Loading branch information
MainKronos committed May 13, 2021
1 parent b1ae0b4 commit 374687d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions animeworld/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import inspect

HDR = {'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36'}
cookies = {'AWCookietest': None}
cookies = {'AWCookieVerify': None}


## Function ##########################################
Expand Down Expand Up @@ -65,7 +65,7 @@ def __init__(self, link):
def __fixCookie(self):
try:
res = self.__getHTML()
cookies['AWCookietest'] = re.search(r'document\.cookie="AWCookietest=(.+) ;', res.text).group(1)
cookies['AWCookieVerify'] = re.search(r'document\.cookie="AWCookieVerify=(.+) ;', res.text).group(1)
except AttributeError:
pass

Expand Down

0 comments on commit 374687d

Please sign in to comment.