Bläddra i källkod

邮件服务器大概能用了,完成了验证码错误的bug等,使用了try、expect函数,接下来做任务模块

Shellmiao 4 år sedan
förälder
incheckning
829163d345

BIN
VerificationCode/image.jpg


+ 35 - 11
VerificationCode/mcbbs/SignIn.py

@@ -1,21 +1,28 @@
 from ..GetImage import get_vc_image
-from ..ttshitu import base64_api
+from ..ttshitu import base64_api, error_report
 from selenium.webdriver.common.action_chains import ActionChains
+from selenium.common.exceptions import NoSuchElementException
 import time
 
 
-def sign_in_vc(driver):
+def sign_in(driver):
     url = 'https://www.mcbbs.net/plugin.php?id=dc_signin'
-
     driver.get(url)
-    get_to_sign_in(driver)
+    if get_to_sign_in(driver):
+        sign_in_vc(driver)
+
+
+def sign_in_vc(driver):
     image = get_image(driver)
     image = image.convert('RGB')
     image.save('D:\同步文件\课程文件\文档\mcbbs搞事\AutoTool\VerificationCode\image.jpg')
     img_path = 'D:\同步文件\课程文件\文档\mcbbs搞事\AutoTool\VerificationCode\image.jpg'
-    result = base64_api(uname='Shellmiao', pwd='sBif.9MMF8Pa', img=img_path)
+    result, rid = base64_api(uname='Shellmiao', pwd='sBif.9MMF8Pa', img=img_path)
     print(result)
-    click_vc_words(driver, get_points(result))
+    if click_vc_words(driver, get_points(result)):
+        print("打码成功")
+    else:
+        print("打码失败")
 
 
 def get_points(result):
@@ -25,7 +32,7 @@ def get_points(result):
 
 
 # 验证码的点击和确认
-def click_vc_words(driver, locations):
+def click_vc_words(driver, locations, rid):
     element = driver.find_element_by_class_name('geetest_widget')
     for location in locations:
         # 因为笔记本缩放是250%,所以坐标要除以2.5
@@ -36,18 +43,35 @@ def click_vc_words(driver, locations):
         time.sleep(1)
     time.sleep(2)
     button = driver.find_element_by_class_name('geetest_commit_tip')
+    time.sleep(2)
     ActionChains(driver).move_to_element(button).click().perform()
     time.sleep(2)
+    try:
+        button = driver.find_element_by_class_name('geetest_commit_tip')
+    except NoSuchElementException:
+        return True
+    else:
+        error_report(rid)
+        sign_in_vc(driver)
+        return False
 
 
 def get_to_sign_in(driver):
-    sign_in_button(driver)
-    sign_in(driver)
+    if sign_in_button(driver):
+        sign_in(driver)
+        return True
+    else:
+        return False
 
 
 def sign_in_button(driver):
-    button = driver.find_element_by_link_text('签到')
-    ActionChains(driver).move_to_element(button).click().perform()
+    try:
+        button = driver.find_element_by_link_text('签到')
+    except NoSuchElementException:
+        return False
+    else:
+        ActionChains(driver).move_to_element(button).click().perform()
+        return True
 
 
 def sign_in(driver):

+ 0 - 0
VerificationCode/mcbbs/task.py


+ 9 - 2
VerificationCode/ttshitu.py

@@ -9,7 +9,14 @@ def base64_api(uname, pwd, img):
         b64 = base64_data.decode()
     data = {"username": uname, "password": pwd, "typeid": 27, "image": b64}
     result = json.loads(requests.post("http://api.ttshitu.com/imageXYPlus", json=data).text)
+    print(result)
     if result['success']:
-        return result["data"]["result"]
+        return result["data"]["result"], result["data"]["id"]
     else:
-        return result["message"]
+        return result["message"], result["data"]
+
+
+def error_report(rid):
+    data = {"id", rid}
+    result = json.loads(requests.post("http://api.ttshitu.com/reporterror.json", json=data).text)
+    return result["success"]

+ 244 - 0
geckodriver.log

@@ -598,3 +598,247 @@ JavaScript error: https://www.mcbbs.net/home.php?mod=spacecp&ac=profile&op=passw
 JavaScript error: https://www.mcbbs.net/home.php?mod=spacecp&ac=profile&op=password&resend=1, line 325: ReferenceError: A is not defined
 JavaScript error: https://www.mcbbs.net/home.php?mod=spacecp&ac=profile&op=password, line 260: ReferenceError: announcement is not defined
 JavaScript error: https://www.mcbbs.net/home.php?mod=spacecp&ac=profile&op=password, line 417: ReferenceError: A is not defined
+1612967867258	Marionette	INFO	Stopped listening on port 5124
+
+###!!! [Child][RunMessage] Error: Channel closing: too late to send/recv, messages will be lost
+
+1613056390817	geckodriver	INFO	Listening on 127.0.0.1:4471
+1613056391340	mozrunner::runner	INFO	Running command: "C:\\Program Files\\Mozilla Firefox\\firefox.exe" "--marionette" "-foreground" "-no-remote" "-profile" "C:\\Users\\SHELLM~1\\AppData\\Local\\Temp\\rust_mozprofilegoPd4S"
+1613056402810	geckodriver	INFO	Listening on 127.0.0.1:4507
+1613056403320	mozrunner::runner	INFO	Running command: "C:\\Program Files\\Mozilla Firefox\\firefox.exe" "--marionette" "-foreground" "-no-remote" "-profile" "C:\\Users\\SHELLM~1\\AppData\\Local\\Temp\\rust_mozprofileR0a9yd"
+JavaScript error: hvxo0zbh3go.cfg, line 2: ReferenceError: Components is not defined
+console.warn: SearchSettings: "get: No settings file exists, new profile?" (new Error("", "(unknown module)"))
+1613056406157	Marionette	INFO	Listening on port 4512
+1613056406448	Marionette	WARN	TLS certificate errors will be ignored for this session
+1613056406460	Marionette	ERROR	[15] No reply from Marionette:Register
+console.warn: SearchSettings: "get: No settings file exists, new profile?" (new Error("", "(unknown module)"))
+JavaScript warning: https://www.mcbbs.net/template/mcbbs/common/jquery.min.js, line 2: Using //@ to indicate sourceMappingURL pragmas is deprecated. Use //# instead
+JavaScript error: https://www.mcbbs.net/, line 1532: ReferenceError: A is not defined
+1613056512560	Marionette	WARN	Ignoring event 'pageshow' because document has an invalid readyState of 'uninitialized'.
+JavaScript warning: https://www.mcbbs.net/template/mcbbs/common/jquery.min.js, line 2: Using //@ to indicate sourceMappingURL pragmas is deprecated. Use //# instead
+JavaScript error: https://www.mcbbs.net/plugin.php?id=dc_signin, line 260: ReferenceError: announcement is not defined
+JavaScript error: https://www.mcbbs.net/plugin.php?id=dc_signin, line 384: ReferenceError: A is not defined
+JavaScript error: resource://gre/modules/XULStore.jsm, line 66: Error: Can't find profile directory.
+JavaScript error: resource://gre/modules/XULStore.jsm, line 66: Error: Can't find profile directory.
+JavaScript warning: https://www.mcbbs.net/template/mcbbs/common/jquery.min.js, line 2: Using //@ to indicate sourceMappingURL pragmas is deprecated. Use //# instead
+JavaScript error: https://www.mcbbs.net/, line 1460: ReferenceError: A is not defined
+1613056629215	Marionette	WARN	Ignoring event 'pageshow' because document has an invalid readyState of 'uninitialized'.
+JavaScript warning: https://www.mcbbs.net/template/mcbbs/common/jquery.min.js, line 2: Using //@ to indicate sourceMappingURL pragmas is deprecated. Use //# instead
+JavaScript error: https://www.mcbbs.net/plugin.php?id=dc_signin, line 259: ReferenceError: announcement is not defined
+JavaScript error: https://www.mcbbs.net/plugin.php?id=dc_signin, line 383: ReferenceError: A is not defined
+JavaScript error: resource://gre/modules/XULStore.jsm, line 66: Error: Can't find profile directory.
+JavaScript error: resource://gre/modules/XULStore.jsm, line 66: Error: Can't find profile directory.
+JavaScript error: https://www.mcbbs.net/, line 1459: ReferenceError: A is not defined
+1613056796818	Marionette	WARN	Ignoring event 'pageshow' because document has an invalid readyState of 'uninitialized'.
+JavaScript error: https://www.mcbbs.net/plugin.php?id=dc_signin, line 295: ReferenceError: announcement is not defined
+JavaScript error: https://www.mcbbs.net/plugin.php?id=dc_signin, line 360: ReferenceError: A is not defined
+1613056821182	Marionette	INFO	Stopped listening on port 4512
+
+###!!! [Child][RunMessage] Error: Channel closing: too late to send/recv, messages will be lost
+
+1613129827199	geckodriver	INFO	Listening on 127.0.0.1:10382
+1613129827740	mozrunner::runner	INFO	Running command: "C:\\Program Files\\Mozilla Firefox\\firefox.exe" "--marionette" "-foreground" "-no-remote" "-profile" "C:\\Users\\SHELLM~1\\AppData\\Local\\Temp\\rust_mozprofilePH0CTK"
+JavaScript error: hvxo0zbh3go.cfg, line 2: ReferenceError: Components is not defined
+console.warn: SearchSettings: "get: No settings file exists, new profile?" (new Error("", "(unknown module)"))
+1613129832640	Marionette	INFO	Listening on port 10389
+1613129833157	Marionette	WARN	TLS certificate errors will be ignored for this session
+1613129833174	Marionette	ERROR	[15] No reply from Marionette:Register
+JavaScript warning: https://www.mcbbs.net/template/mcbbs/common/jquery.min.js, line 2: Using //@ to indicate sourceMappingURL pragmas is deprecated. Use //# instead
+JavaScript error: https://www.mcbbs.net/, line 1529: ReferenceError: A is not defined
+console.error: Region.jsm: "Error fetching region" (new Error("TIMEOUT", "resource://gre/modules/Region.jsm", 775))
+console.error: Region.jsm: "Failed to fetch region" (new Error("TIMEOUT", "resource://gre/modules/Region.jsm", 422))
+JavaScript warning: https://www.mcbbs.net/template/mcbbs/common/jquery.min.js, line 2: Using //@ to indicate sourceMappingURL pragmas is deprecated. Use //# instead
+JavaScript error: https://www.mcbbs.net/plugin.php?id=dc_signin, line 257: ReferenceError: announcement is not defined
+JavaScript error: https://www.mcbbs.net/plugin.php?id=dc_signin, line 381: ReferenceError: A is not defined
+JavaScript error: resource://gre/modules/XULStore.jsm, line 66: Error: Can't find profile directory.
+JavaScript error: resource://gre/modules/XULStore.jsm, line 66: Error: Can't find profile directory.
+JavaScript warning: https://www.mcbbs.net/template/mcbbs/common/jquery.min.js, line 2: Using //@ to indicate sourceMappingURL pragmas is deprecated. Use //# instead
+JavaScript error: https://www.mcbbs.net/, line 1457: ReferenceError: A is not defined
+JavaScript warning: https://www.mcbbs.net/template/mcbbs/common/jquery.min.js, line 2: Using //@ to indicate sourceMappingURL pragmas is deprecated. Use //# instead
+JavaScript error: https://www.mcbbs.net/plugin.php?id=dc_signin, line 256: ReferenceError: announcement is not defined
+JavaScript error: https://www.mcbbs.net/plugin.php?id=dc_signin, line 380: ReferenceError: A is not defined
+JavaScript error: resource://gre/modules/XULStore.jsm, line 66: Error: Can't find profile directory.
+JavaScript error: resource://gre/modules/XULStore.jsm, line 66: Error: Can't find profile directory.
+JavaScript error: https://www.mcbbs.net/, line 1456: ReferenceError: A is not defined
+1613130205663	Marionette	INFO	Stopped listening on port 10389
+
+###!!! [Child][RunMessage] Error: Channel closing: too late to send/recv, messages will be lost
+
+"--marionette" "-foreground" "-no-remote" "-profile" "C:\\Users\\SHELLM~1\\AppData\\Local\\Temp\\rust_mozprofilewI8gD1"
+JavaScript error: hvxo0zbh3go.cfg, line 2: ReferenceError: Components is not defined
+console.warn: SearchSettings: "get: No settings file exists, new profile?" (new Error("", "(unknown module)"))
+1613130124978	Marionette	INFO	Listening on port 11054
+1613130125385	Marionette	WARN	TLS certificate errors will be ignored for this session
+1613130125411	Marionette	ERROR	[15] No reply from Marionette:Register
+JavaScript error: resource://activity-stream/lib/ASRouter.jsm, line 987: NS_ERROR_ILLEGAL_VALUE: Component returned failure code: 0x80070057 (NS_ERROR_ILLEGAL_VALUE) [nsIObserverService.removeObserver]
+1613130206626	Marionette	INFO	Stopped listening on port 11054
+
+###!!! [Child][RunMessage] Error: Channel closing: too late to send/recv, messages will be lost
+
+d
+console.warn: SearchSettings: "get: No settings file exists, new profile?" (new Error("", "(unknown module)"))
+1613130170836	Marionette	INFO	Listening on port 11119
+1613130171058	Marionette	WARN	TLS certificate errors will be ignored for this session
+1613130171071	Marionette	ERROR	[15] No reply from Marionette:Register
+JavaScript warning: https://www.mcbbs.net/template/mcbbs/common/jquery.min.js, line 2: Using //@ to indicate sourceMappingURL pragmas is deprecated. Use //# instead
+JavaScript error: https://www.mcbbs.net/, line 1529: ReferenceError: A is not defined
+JavaScript warning: https://www.mcbbs.net/template/mcbbs/common/jquery.min.js, line 2: Using //@ to indicate sourceMappingURL pragmas is deprecated. Use //# instead
+JavaScript error: https://www.mcbbs.net/plugin.php?id=dc_signin, line 257: ReferenceError: announcement is not defined
+JavaScript error: https://www.mcbbs.net/plugin.php?id=dc_signin, line 381: ReferenceError: A is not defined
+1613130207035	Marionette	INFO	Stopped listening on port 11119
+
+###!!! [Child][RunMessage] Error: Channel closing: too late to send/recv, messages will be lost
+
+1613130237828	geckodriver	INFO	Listening on 127.0.0.1:11299
+1613130238409	mozrunner::runner	INFO	Running command: "C:\\Program Files\\Mozilla Firefox\\firefox.exe" "--marionette" "-foreground" "-no-remote" "-profile" "C:\\Users\\SHELLM~1\\AppData\\Local\\Temp\\rust_mozprofileMZhaI2"
+JavaScript error: hvxo0zbh3go.cfg, line 2: ReferenceError: Components is not defined
+console.warn: SearchSettings: "get: No settings file exists, new profile?" (new Error("", "(unknown module)"))
+1613130241677	Marionette	INFO	Listening on port 11304
+console.warn: SearchSettings: "get: No settings file exists, new profile?" (new Error("", "(unknown module)"))
+1613130242135	Marionette	WARN	TLS certificate errors will be ignored for this session
+1613130242152	Marionette	ERROR	[18] No reply from Marionette:Register
+JavaScript warning: https://www.mcbbs.net/template/mcbbs/common/jquery.min.js, line 2: Using //@ to indicate sourceMappingURL pragmas is deprecated. Use //# instead
+JavaScript error: https://www.mcbbs.net/, line 1529: ReferenceError: A is not defined
+JavaScript warning: https://www.mcbbs.net/template/mcbbs/common/jquery.min.js, line 2: Using //@ to indicate sourceMappingURL pragmas is deprecated. Use //# instead
+console.error: services.settings: 
+  pinning/pins Signature failed  TypeError: NetworkError when attempting to fetch resource.
+console.error: services.settings: 
+  Message: TypeError: NetworkError when attempting to fetch resource.
+console.log: WebExtensions: reset-default-search: No addons in our list are installed.
+
+###!!! [Child][MessageChannel] Error: (msgtype=0x3A0158,name=PContent::Msg_InsertNewFocusActionId) Closed channel: cannot send/recv
+
+
+###!!! [Child][MessageChannel] Error: (msgtype=0x6B0027,name=PNecko::Msg_RemoveRequestContext) Closed channel: cannot send/recv
+
+
+###!!! [Child][MessageChannel] Error: (msgtype=0x57001B,name=PHal::Msg_DisableSensorNotifications) Closed channel: cannot send/recv
+
+1613190170670	geckodriver	INFO	Listening on 127.0.0.1:11715
+1613190171250	mozrunner::runner	INFO	Running command: "C:\\Program Files\\Mozilla Firefox\\firefox.exe" "--marionette" "-foreground" "-no-remote" "-profile" "C:\\Users\\SHELLM~1\\AppData\\Local\\Temp\\rust_mozprofileyL04Mz"
+JavaScript error: hvxo0zbh3go.cfg, line 2: ReferenceError: Components is not defined
+console.warn: SearchSettings: "get: No settings file exists, new profile?" (new Error("", "(unknown module)"))
+1613190175403	Marionette	INFO	Listening on port 11720
+1613190175523	Marionette	WARN	TLS certificate errors will be ignored for this session
+1613190175549	Marionette	ERROR	[18] No reply from Marionette:Register
+JavaScript warning: https://www.mcbbs.net/template/mcbbs/common/jquery.min.js, line 2: Using //@ to indicate sourceMappingURL pragmas is deprecated. Use //# instead
+JavaScript error: https://www.mcbbs.net/, line 1529: ReferenceError: A is not defined
+JavaScript warning: https://www.mcbbs.net/template/mcbbs/common/jquery.min.js, line 2: Using //@ to indicate sourceMappingURL pragmas is deprecated. Use //# instead
+JavaScript error: https://www.mcbbs.net/plugin.php?id=dc_signin, line 257: ReferenceError: announcement is not defined
+JavaScript error: https://www.mcbbs.net/plugin.php?id=dc_signin, line 381: ReferenceError: A is not defined
+JavaScript error: resource://gre/modules/XULStore.jsm, line 66: Error: Can't find profile directory.
+JavaScript warning: https://www.mcbbs.net/template/mcbbs/common/jquery.min.js, line 2: Using //@ to indicate sourceMappingURL pragmas is deprecated. Use //# instead
+JavaScript error: https://www.mcbbs.net/, line 1457: ReferenceError: A is not defined
+JavaScript warning: https://www.mcbbs.net/template/mcbbs/common/jquery.min.js, line 2: Using //@ to indicate sourceMappingURL pragmas is deprecated. Use //# instead
+JavaScript error: https://www.mcbbs.net/plugin.php?id=dc_signin, line 256: ReferenceError: announcement is not defined
+JavaScript error: https://www.mcbbs.net/plugin.php?id=dc_signin, line 380: ReferenceError: A is not defined
+JavaScript error: resource://gre/modules/XULStore.jsm, line 66: Error: Can't find profile directory.
+JavaScript error: https://www.mcbbs.net/, line 1456: ReferenceError: A is not defined
+JavaScript error: https://www.mcbbs.net/plugin.php?id=dc_signin, line 257: ReferenceError: announcement is not defined
+JavaScript error: https://www.mcbbs.net/plugin.php?id=dc_signin, line 381: ReferenceError: A is not defined
+JavaScript error: resource://gre/modules/XULStore.jsm, line 66: Error: Can't find profile directory.
+JavaScript error: https://www.mcbbs.net/, line 1457: ReferenceError: A is not defined
+JavaScript error: https://www.mcbbs.net/plugin.php?id=dc_signin, line 257: ReferenceError: announcement is not defined
+JavaScript error: https://www.mcbbs.net/plugin.php?id=dc_signin, line 381: ReferenceError: A is not defined
+JavaScript error: resource://gre/modules/XULStore.jsm, line 66: Error: Can't find profile directory.
+SourceActor threw an exception: [Exception... "Failed to open input source 'javascript:;'"  nsresult: "0x80040111 (NS_ERROR_NOT_AVAILABLE)"  location: "JS frame :: resource://devtools/shared/DevToolsUtils.js :: mainThreadFetch/< :: line 668"  data: yes]
+Stack: mainThreadFetch/<@resource://devtools/shared/DevToolsUtils.js:668:15
+mainThreadFetch@resource://devtools/shared/DevToolsUtils.js:516:10
+_fetchURLContents@resource://devtools/server/actors/utils/sources-manager.js:439:22
+urlContents@resource://devtools/server/actors/utils/sources-manager.js:406:17
+_resurrectSource@resource://devtools/server/actors/thread.js:2112:35
+addAllSources@resource://devtools/server/actors/thread.js:1482:14
+watch@resource://devtools/server/actors/resources/sources.js:52:17
+watchResources@resource://devtools/server/actors/resources/index.js:204:19
+_watchTargetResources@resource://devtools/server/actors/targets/target-actor-mixin.js:52:24
+addWatcherDataEntry@resource://devtools/server/actors/targets/target-actor-mixin.js:29:21
+_addWatcherDataEntry@resource://devtools/server/connectors/js-window-actor/DevToolsFrameChild.jsm:411:24
+receiveMessage@resource://devtools/server/connectors/js-window-actor/DevToolsFrameChild.jsm:353:21
+Line: 668, column: 0
+console.error: ({})
+JavaScript error: resource://devtools/shared/DevToolsUtils.js, line 668: NS_ERROR_NOT_AVAILABLE: Failed to open input source 'javascript:;'
+console.log: WebExtensions: reset-default-search: No addons in our list are installed.
+JavaScript error: resource://activity-stream/lib/ASRouter.jsm, line 987: NS_ERROR_ILLEGAL_VALUE: Component returned failure code: 0x80070057 (NS_ERROR_ILLEGAL_VALUE) [nsIObserverService.removeObserver]
+1613190784946	Marionette	INFO	Stopped listening on port 11720
+
+###!!! [Child][RunMessage] Error: Channel closing: too late to send/recv, messages will be lost
+
+("", "(unknown module)"))
+1613190598746	Marionette	INFO	Listening on port 12566
+1613190598982	Marionette	WARN	TLS certificate errors will be ignored for this session
+1613190599005	Marionette	ERROR	[15] No reply from Marionette:Register
+console.warn: SearchSettings: "get: No settings file exists, new profile?" (new Error("", "(unknown module)"))
+JavaScript warning: https://www.mcbbs.net/template/mcbbs/common/jquery.min.js, line 2: Using //@ to indicate sourceMappingURL pragmas is deprecated. Use //# instead
+JavaScript error: https://www.mcbbs.net/, line 1529: ReferenceError: A is not defined
+JavaScript warning: https://www.mcbbs.net/template/mcbbs/common/jquery.min.js, line 2: Using //@ to indicate sourceMappingURL pragmas is deprecated. Use //# instead
+JavaScript error: https://www.mcbbs.net/plugin.php?id=dc_signin, line 257: ReferenceError: announcement is not defined
+JavaScript error: https://www.mcbbs.net/plugin.php?id=dc_signin, line 381: ReferenceError: A is not defined
+JavaScript error: resource://gre/modules/XULStore.jsm, line 66: Error: Can't find profile directory.
+JavaScript error: resource://gre/modules/XULStore.jsm, line 66: Error: Can't find profile directory.
+JavaScript warning: https://www.mcbbs.net/template/mcbbs/common/jquery.min.js, line 2: Using //@ to indicate sourceMappingURL pragmas is deprecated. Use //# instead
+JavaScript error: https://www.mcbbs.net/plugin.php?id=dc_signin, line 257: ReferenceError: announcement is not defined
+JavaScript error: https://www.mcbbs.net/plugin.php?id=dc_signin, line 381: ReferenceError: A is not defined
+1613190787170	Marionette	INFO	Stopped listening on port 12566
+
+###!!! [Child][RunMessage] Error: Channel closing: too late to send/recv, messages will be lost
+
+1613190790212	geckodriver	INFO	Listening on 127.0.0.1:12800
+1613190790760	mozrunner::runner	INFO	Running command: "C:\\Program Files\\Mozilla Firefox\\firefox.exe" "--marionette" "-foreground" "-no-remote" "-profile" "C:\\Users\\SHELLM~1\\AppData\\Local\\Temp\\rust_mozprofilex4xcGd"
+JavaScript error: hvxo0zbh3go.cfg, line 2: ReferenceError: Components is not defined
+console.warn: SearchSettings: "get: No settings file exists, new profile?" (new Error("", "(unknown module)"))
+1613190794504	Marionette	INFO	Listening on port 12805
+1613190794934	Marionette	WARN	TLS certificate errors will be ignored for this session
+1613190794964	Marionette	ERROR	[15] No reply from Marionette:Register
+JavaScript warning: https://www.mcbbs.net/template/mcbbs/common/jquery.min.js, line 2: Using //@ to indicate sourceMappingURL pragmas is deprecated. Use //# instead
+JavaScript error: https://www.mcbbs.net/, line 1529: ReferenceError: A is not defined
+JavaScript warning: https://www.mcbbs.net/template/mcbbs/common/jquery.min.js, line 2: Using //@ to indicate sourceMappingURL pragmas is deprecated. Use //# instead
+JavaScript error: https://www.mcbbs.net/plugin.php?id=dc_signin, line 257: ReferenceError: announcement is not defined
+JavaScript error: https://www.mcbbs.net/plugin.php?id=dc_signin, line 381: ReferenceError: A is not defined
+console.log: WebExtensions: reset-default-search: No addons in our list are installed.
+
+###!!! [Child][MessageChannel] Error: (msgtype=0x5B000E,name=PHttpChannel::Msg___delete__) Channel closing: too late to send/recv, messages will be lost
+
+
+###!!! [Child][MessageChannel] Error: (msgtype=0x6B0027,name=PNecko::Msg_RemoveRequestContext) Channel closing: too late to send/recv, messages will be lost
+
+1613191590422	Marionette	INFO	Stopped listening on port 12805
+
+###!!! [Child][RunMessage] Error: Channel closing: too late to send/recv, messages will be lost
+
+ertificate errors will be ignored for this session
+1613191461173	Marionette	ERROR	[15] No reply from Marionette:Register
+console.warn: SearchSettings: "get: No settings file exists, new profile?" (new Error("", "(unknown module)"))
+JavaScript warning: https://www.mcbbs.net/template/mcbbs/common/jquery.min.js, line 2: Using //@ to indicate sourceMappingURL pragmas is deprecated. Use //# instead
+JavaScript error: https://www.mcbbs.net/, line 1529: ReferenceError: A is not defined
+JavaScript warning: https://www.mcbbs.net/template/mcbbs/common/jquery.min.js, line 2: Using //@ to indicate sourceMappingURL pragmas is deprecated. Use //# instead
+JavaScript error: https://www.mcbbs.net/plugin.php?id=dc_signin, line 257: ReferenceError: announcement is not defined
+JavaScript error: https://www.mcbbs.net/plugin.php?id=dc_signin, line 381: ReferenceError: A is not defined
+1613191597331	Marionette	INFO	Stopped listening on port 13445
+
+###!!! [Child][RunMessage] Error: Channel closing: too late to send/recv, messages will be lost
+
+1613191599552	geckodriver	INFO	Listening on 127.0.0.1:13619
+1613191600107	mozrunner::runner	INFO	Running command: "C:\\Program Files\\Mozilla Firefox\\firefox.exe" "--marionette" "-foreground" "-no-remote" "-profile" "C:\\Users\\SHELLM~1\\AppData\\Local\\Temp\\rust_mozprofileetcRqI"
+JavaScript error: hvxo0zbh3go.cfg, line 2: ReferenceError: Components is not defined
+console.warn: SearchSettings: "get: No settings file exists, new profile?" (new Error("", "(unknown module)"))
+1613191603970	Marionette	INFO	Listening on port 13625
+1613191604278	Marionette	WARN	TLS certificate errors will be ignored for this session
+1613191604308	Marionette	ERROR	[15] No reply from Marionette:Register
+JavaScript warning: https://www.mcbbs.net/template/mcbbs/common/jquery.min.js, line 2: Using //@ to indicate sourceMappingURL pragmas is deprecated. Use //# instead
+JavaScript error: https://www.mcbbs.net/, line 1529: ReferenceError: A is not defined
+console.error: Region.jsm: "Error fetching region" (new Error("TIMEOUT", "resource://gre/modules/Region.jsm", 775))
+console.error: Region.jsm: "Failed to fetch region" (new Error("TIMEOUT", "resource://gre/modules/Region.jsm", 422))
+JavaScript warning: https://www.mcbbs.net/template/mcbbs/common/jquery.min.js, line 2: Using //@ to indicate sourceMappingURL pragmas is deprecated. Use //# instead
+JavaScript error: https://www.mcbbs.net/plugin.php?id=dc_signin, line 257: ReferenceError: announcement is not defined
+JavaScript error: https://www.mcbbs.net/plugin.php?id=dc_signin, line 381: ReferenceError: A is not defined
+JavaScript warning: https://www.mcbbs.net/template/mcbbs/common/jquery.min.js, line 2: Using //@ to indicate sourceMappingURL pragmas is deprecated. Use //# instead
+JavaScript error: https://www.mcbbs.net/, line 1457: ReferenceError: A is not defined
+JavaScript warning: https://www.mcbbs.net/template/mcbbs/common/jquery.min.js, line 2: Using //@ to indicate sourceMappingURL pragmas is deprecated. Use //# instead
+JavaScript error: https://www.mcbbs.net/plugin.php?id=dc_signin, line 256: ReferenceError: announcement is not defined
+JavaScript error: https://www.mcbbs.net/plugin.php?id=dc_signin, line 380: ReferenceError: A is not defined
+JavaScript error: https://www.mcbbs.net/, line 1456: ReferenceError: A is not defined
+JavaScript error: https://www.mcbbs.net/plugin.php?id=dc_signin, line 257: ReferenceError: announcement is not defined
+JavaScript error: https://www.mcbbs.net/plugin.php?id=dc_signin, line 381: ReferenceError: A is not defined
+JavaScript error: resource://gre/modules/XULStore.jsm, line 66: Error: Can't find profile directory.
+JavaScript error: resource://gre/modules/XULStore.jsm, line 66: Error: Can't find profile directory.
+JavaScript error: https://www.mcbbs.net/, line 1457: ReferenceError: A is not defined

Filskillnaden har hållts tillbaka eftersom den är för stor
+ 0 - 0
loginTools/cookies/cookies3.txt


+ 3 - 2
loginTools/include_all_cookies.py

@@ -7,5 +7,6 @@ def include_all_cookies():
     print(cookie_path)
     s = []
     for cookie_file in files:
-        s.append(cookie_path+'\\'+cookie_file)
-    return s
+        print(cookie_path + '\\' + cookie_file)
+        s.append(cookie_path + '\\' + cookie_file)
+    return s

+ 2 - 2
start.py

@@ -10,8 +10,8 @@ def main():
     cookies = include_all_cookies()
     for cookie_path in cookies:
         login(driver, cookie_path)
-        #        sign_in_vc(driver)
-        reply(driver)
+        sign_in_vc(driver)
+        # reply(driver)
 
 
 if __name__ == '__main__':

Vissa filer visades inte eftersom för många filer har ändrats