diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 43beee1..541394a 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -1,8 +1,8 @@ - - + + @@ -33,15 +33,17 @@ - + - - + + + + @@ -51,7 +53,6 @@ - @@ -140,10 +141,12 @@ + + + - @@ -155,6 +158,7 @@ + @@ -165,9 +169,8 @@ - + - @@ -180,7 +183,7 @@ - + @@ -189,33 +192,21 @@ - + - + - - - - - - - - - - - - - + @@ -235,11 +226,11 @@ - + - - + + @@ -247,48 +238,122 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -311,11 +376,6 @@ @@ -397,6 +462,7 @@ + @@ -429,6 +495,86 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - @@ -633,30 +778,6 @@ \ No newline at end of file diff --git a/SearcherABC.py b/SearcherABC.py index e6924fe..883a8da 100644 --- a/SearcherABC.py +++ b/SearcherABC.py @@ -94,7 +94,11 @@ class SearcherABC: def load_cookie(self): cookie=os.path.join(self.tempdir(),'cookie.txt') self.cookieJar = cookielib.MozillaCookieJar(cookie) - if os.path.exists(cookie): self.cookieJar.load(ignore_discard=True) + try: + if os.path.exists(cookie): self.cookieJar.load(ignore_discard=True) + except: + os.remove(cookie) + self.cookieJar = cookielib.MozillaCookieJar(cookie) def clear_cookie(self, domain): cookie=os.path.join(self.tempdir(),'cookie.txt')