|
...
|
...
|
@@ -106,7 +106,7 @@ class Monitor(callback.CallBack): |
|
|
|
# self.change_list.remove(email)
|
|
|
|
# self.changeLock.release()
|
|
|
|
|
|
|
|
def login(self, email, password, cookie=None, user_agent=None, proxy=None):
|
|
|
|
def login(self, email, password, cookie=None, user_agent=None, proxy=None, clear: bool = False):
|
|
|
|
limit = 100
|
|
|
|
if self.size >= limit:
|
|
|
|
raise Exception("单台终端登录到达上限,%d个号" % limit)
|
|
...
|
...
|
@@ -117,7 +117,7 @@ class Monitor(callback.CallBack): |
|
|
|
else:
|
|
|
|
if user_agent is None or user_agent == '':
|
|
|
|
user_agent = 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.135 Safari/537.36'
|
|
|
|
obj = self.onLoggingIn(email, password, cookie, user_agent, proxy)
|
|
|
|
obj = self.onLoggingIn(email, password, cookie, user_agent, proxy, clear)
|
|
|
|
try:
|
|
|
|
client = FacebookClient(obj, logout_call=functools.partial(self.logout, obj.email),
|
|
|
|
logging_level=logging.INFO)
|
...
|
...
|
|