Closed evelynmaire closed 2 years ago
Hi
Can you provide the full log or stack trace? i.e. Run it with
python main.py XXXXX --debug
and post the log file that results in the same folder.
"capabilities": {
"alwaysMatch": {
"browserName": "chrome",
"goog:chromeOptions": {
"args": [ "--window-size=1920x1080", "user-agent=Mozilla/5.0 (iPad; CPU OS 6_0 like Mac OS X) AppleWebKit/536.26 (KHTML, like Gecko) Version/6.0 Mobile/10A5376e Safari/8536.25" ],
"extensions": [ ]
},
"platformName": "any"
},
"firstMatch": [ {
} ]
},
"desiredCapabilities": {
"browserName": "chrome",
"goog:chromeOptions": {
"args": [ "--window-size=1920x1080", "user-agent=Mozilla/5.0 (iPad; CPU OS 6_0 like Mac OS X) AppleWebKit/536.26 (KHTML, like Gecko) Version/6.0 Mobile/10A5376e Safari/8536.25" ],
"extensions": [ ]
},
"platform": "ANY",
"version": ""
}
}
[1633570994.124][INFO]: Populating Preferences file: {
"alternate_error_pages": {
"enabled": false
},
"autofill": {
"enabled": false
},
"browser": {
"check_default_browser": false
},
"distribution": {
"import_bookmarks": false,
"import_history": false,
"import_search_engine": false,
"make_chrome_default_for_user": false,
"skip_first_run_ui": true
},
"dns_prefetching": {
"enabled": false
},
"profile": {
"content_settings": {
"pattern_pairs": {
"https://*,*": {
"media-stream": {
"audio": "Default",
"video": "Default"
}
}
}
},
"default_content_setting_values": {
"geolocation": 1
},
"default_content_settings": {
"geolocation": 1,
"mouselock": 1,
"notifications": 1,
"popups": 1,
"ppapi-broker": 1
},
"password_manager_enabled": false
},
"safebrowsing": {
"enabled": false
},
"search": {
"suggest_enabled": false
},
"translate": {
"enabled": false
}
}
[1633570994.124][INFO]: Populating Local State file: {
"background_mode": {
"enabled": false
},
"ssl": {
"rev_checking": {
"enabled": false
}
}
}
[1633570994.126][INFO]: Launching chrome: /Applications/Google Chrome.app/Contents/MacOS/Google Chrome --disable-background-networking --disable-client-side-phishing-detection --disable-default-apps --disable-hang-monitor --disable-popup-blocking --disable-prompt-on-repost --disable-sync --disable-web-resources --enable-automation --enable-logging --force-fieldtrials=SiteIsolationExtensions/Control --ignore-certificate-errors --load-extension=/var/folders/qn/8wh1cyy93s3_1xbsn3q61_hw0000gn/T/.org.chromium.Chromium.bt24K9/internal --log-level=0 --metrics-recording-only --no-first-run --password-store=basic --remote-debugging-port=12040 --test-type=webdriver --use-mock-keychain --user-agent=Mozilla/5.0 (iPad; CPU OS 6_0 like Mac OS X) AppleWebKit/536.26 (KHTML, like Gecko) Version/6.0 Mobile/10A5376e Safari/8536.25 --user-data-dir=/var/folders/qn/8wh1cyy93s3_1xbsn3q61_hw0000gn/T/.org.chromium.Chromium.BIOpyz --window-size=1920x1080 data:,
[1633570996.178][INFO]: resolved localhost to ["127.0.0.1","::1"]
[1633570996.247][INFO]: RESPONSE InitSession {
"acceptInsecureCerts": false,
"acceptSslCerts": false,
"applicationCacheEnabled": false,
"browserConnectionEnabled": false,
"browserName": "chrome",
"chrome": {
"chromedriverVersion": "2.38.552518 (183d19265345f54ce39cbb94cf81ba5f15905011)",
"userDataDir": "/var/folders/qn/8wh1cyy93s3_1xbsn3q61_hw0000gn/T/.org.chromium.Chromium.BIOpyz"
},
"cssSelectorsEnabled": true,
"databaseEnabled": false,
"handlesAlerts": true,
"hasTouchScreen": false,
"javascriptEnabled": true,
"locationContextEnabled": true,
"mobileEmulationEnabled": false,
"nativeEvents": true,
"networkConnectionEnabled": false,
"pageLoadStrategy": "normal",
"platform": "Mac OS X",
"rotatable": false,
"setWindowRect": true,
"~~~": "..."
}
[1633570996.250][INFO]: COMMAND Navigate {
"sessionId": "943744427285be6700b57c986685bf5e",
"url": "https://echo360.org.au"
}
[1633570996.250][INFO]: Waiting for pending navigations...
[1633570996.251][INFO]: Done waiting for pending navigations. Status: ok
[1633570998.867][INFO]: Waiting for pending navigations...
[1633571000.681][INFO]: Done waiting for pending navigations. Status: ok
[1633571000.682][INFO]: RESPONSE Navigate
[1633571027.320][INFO]: COMMAND SetWindowSize {
"height": 0,
"sessionId": "943744427285be6700b57c986685bf5e",
"width": 0,
"windowHandle": "current"
}
[1633571027.321][INFO]: resolved localhost to ["127.0.0.1","::1"]
[1633571027.427][INFO]: RESPONSE SetWindowSize
[1633571027.428][INFO]: COMMAND Navigate {
"sessionId": "943744427285be6700b57c986685bf5e",
"url": "https://echo360.org.au/section/784e8b3d-d545-4d25-a239-4d0e63327dc1/syllabus"
}
[1633571027.436][INFO]: Waiting for pending navigations...
[1633571027.437][INFO]: Done waiting for pending navigations. Status: ok
[1633571027.930][INFO]: Waiting for pending navigations...
[1633571029.242][INFO]: Done waiting for pending navigations. Status: ok
[1633571029.242][INFO]: RESPONSE Navigate
[1633571029.243][INFO]: COMMAND GetSource {
}
[1633571029.243][INFO]: Waiting for pending navigations...
[1633571029.313][INFO]: Done waiting for pending navigations. Status: ok
[1633571029.365][INFO]: Waiting for pending navigations...
[1633571029.367][INFO]: Done waiting for pending navigations. Status: ok
[1633571029.367][INFO]: RESPONSE GetSource "\u003Chtml xmlns=\"http://www.w3.org/1999/xhtml\" lang=\"en\">\u003Chead>\u003Clink rel=\"stylesheet\" media=\"screen\" href=\"/assets/stylesheets/login.css\" />\n\n\n\n\n\n\n\n \n \u003Ctitle>Email\u003C/title>\n \u003Clink rel=\"..."
[1633571029.368][INFO]: COMMAND GetCookies {
}
[1633571029.368][INFO]: Waiting for pending navigations...
[1633571029.369][INFO]: Done waiting for pending navigations. Status: ok
[1633571029.371][INFO]: Waiting for pending navigations...
[1633571029.372][INFO]: Done waiting for pending navigations. Status: ok
[1633571029.372][INFO]: RESPONSE GetCookies [ {
"domain": "login.echo360.net.au",
"httpOnly": true,
"name": "AUTHN_SESSION",
"path": "/",
"secure": true,
"value": "63cfb0cdc62500ddabb5ea963e39b6794fe9aef9-mobileApp=false&afterLoginUrl=%2Fsection%2F784e8b3d-d545-4d25-a239-4d0e63327dc1%2Fsyllabus"
}, {
"domain": ".echo360.net.au",
"httpOnly": true,
"name": "CloudFront-Signature",
"path": "/",
"secure": true,
"value": "g2B2WufX4tpEAmFTMUubMnGgvloHCGxwjN9aPljcTfzr9MZ3cJnC-cjATcHXKkJJq~ZEX5GEz3lDdUlvDgzuvzB~09V9NdV8At-JAcXJyintkE3Qco7IU1OYlTiFKihVtd78w~Rdv3QBwwb7hPylYT-YH7~UOapLf98dEsnDYdWvxfLjWXmISmPftHtVRkmmGALKs..."
}, {
"domain": ".echo360.net.au",
"httpOnly": true,
"name": "ECHO_JWT",
"path": "/",
"secure": true,
"value": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJFY2hvMzYwLkF1dGhuIiwic3ViIjoiZmVyZXY5NDhAc3R1ZGVudC5vdGFnby5hYy5ueiIsImV4cCI6MTYzMzYxNzgxOSwiaWF0IjoxNjMzNTcxMDE5LCJqdGkiOiI2OTY1NGFhNS1kOTgwLTQ5ZmQt..."
}, {
"domain": ".echo360.net.au",
"httpOnly": true,
"name": "CloudFront-Policy",
"path": "/",
"secure": true,
"value": "eyJTdGF0ZW1lbnQiOiBbeyJSZXNvdXJjZSI6Imh0dHBzOi8vKi5lY2hvMzYwLm5ldC5hdS8qMmFiNzE0MzktMDUzYS00ZmU0LWFmYzItNzBlMTgxOTg5ZjExLyoiLCJDb25kaXRpb24iOnsiRGF0ZUxlc3NUaGFuIjp7IkFXUzpFcG9jaFRpbWUiOjE2MzM1NzgyM..."
}, {
"domain": ".echo360.net.au",
"httpOnly": true,
"name": "CloudFront-Key-Pair-Id",
"path": "/",
"secure": true,
"value": "APKAIPMYRDQXV3PXG2XA"
}, {
"domain": ".echo360.net.au",
"httpOnly": true,
"name": "CloudFront-Tracking2",
"path": "/",
"secure": true,
"value": "MTYzMzU3NDYxOTk2NOKQn+KQn+KQn+KQnzJhYjcxNDM5LTA1M2EtNGZlNC1hZmMyLTcwZTE4MTk4OWYxMeKQn+KQn+KQn+KQny5lY2hvMzYwLm5ldC5hdeKQn+KQny8"
} ]
Hi I need the echo360Downloader.log
Can you also post the entire error that it prints out?
Sorry I think I'm a little out of my depth here; I think I'm doing a bunch of stuff wrong. I'll try start from scratch and if that doesn't work I'll try another way. Thanks for your help.
I get this error when trying to download. I'm very sorry, I'm still a little new the command line. I'm using python3 to try and run the script, I'm not sure if that's the issue? I can't seem to get any scripts to work with just python.