-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to parse course videos from JSON #13
Comments
Can you post the run with the debug flag and post the log file somewhere? aka. run with
Thanks! |
Can you post the log file that generates in the same folder for debugging? It was the purpose for my last comment, thanks! |
Sorry my bad, I didn't understand what you meant and I still don't know where to look for it. I could find one debug.log for pip, not sure if that's the one. I am not very proficient in these matters so if you could help a bit that would be awesome! Thanks. |
No worries! Like the following: |
[DEBUG: 12-04 19:13] main binary_downloader link: ('https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-2.1.1-macosx.zip', 'phantomjs-2.1.1-macosx.zip'), bin path: /Users/raf/Downloads/echo360-master/bin/phantomjs-2.1.1-macosx/bin/phantomjs
var _gaq = _gaq || [];
<iframe frameborder="0" src="/ess/client/section/5b42c667-4947-412e-af92-2e0bccdd0f9c?apiUrl=https%3A%2F%2Fadmin.streaming.sydney.edu.au%3A8443%2Fess&userID=anonymousUser&token=39f4f9968844d9cd4a0d4d46c7e4012febd92c00e3edb97b3694c578cfbeebcb21605c1bc993b09ff66326bd4e0c6212733c6889ac0f0002b5453548a872a078bcd6a7a54c84862ca27f6f87cb0ca205f13be3f22dbe9692223b99c9bc4388d2b0a2c22458a83b55f5205c0dec1d57dc182a550934e388386f98541466040e9f640afaee9ad5c3e0&contentBaseUri=https%3A%2F%2Fview.streaming.sydney.edu.au%3A8443%2Fess" scrolling="auto"></iframe>
<script id="f5_cspm">(function(){var f5_cspm={f5_p:'IHEGECCJNFFNJFDLJBGPKLLFBBHEEJPAHPAJKIEJEELBBODGMIDBPHDDOGBAGOCIAAKJELFMBIBCNPOFAAHJBBPFFEENDBNANOONIDGJHMEIKHGLKABDIFHFLHIBGKHH',setCharAt:function(str,index,chr){if(index>str.length-1)return str;return str.substr(0,index)+chr+str.substr(index+1);},get_byte:function(str,i){var s=(i/16)|0;i=(i&15);s=s*32;return((str.charCodeAt(i+16+s)-65)<<4)|(str.charCodeAt(i+s)-65);},set_byte:function(str,i,b){var s=(i/16)|0;i=(i&15);s=s*32;str=f5_cspm.setCharAt(str,(i+16+s),String.fromCharCode((b>>4)+65));str=f5_cspm.setCharAt(str,(i+s),String.fromCharCode((b&15)+65));return str;},set_latency:function(str,latency){latency=latency&0xffff;str=f5_cspm.set_byte(str,32,(latency>>8));str=f5_cspm.set_byte(str,33,(latency&0xff));str=f5_cspm.set_byte(str,27,2);return str;},wait_perf_data:function(){try{var wp=window.performance.timing;if(wp.loadEventEnd>0){var res=wp.loadEventEnd-wp.navigationStart;if(res<60001){var cookie_val=f5_cspm.set_latency(f5_cspm.f5_p,res);window.document.cookie='f5avr1986603928aaaaaaaaaaaaaaaa='+encodeURIComponent(cookie_val)+';path=/';}
return;}}
catch(err){return;}
setTimeout(f5_cspm.wait_perf_data,100);return;},go:function(){var chunk=window.document.cookie.split(/\s*;\s*/);for(var i=0;i
[DEBUG: 12-04 19:13] selenium.webdriver.remote.remote_connection POST http://127.0.0.1:54281/wd/hub/session/7e93bb90-f79c-11e8-8675-0bc53fde1a25/url {"url": "https://view.streaming.sydney.edu.au:8443/ess/client/api/sections/2018_S2C_PHYS3069_ND/section-data.json?pageSize=100", "sessionId": "7e93bb90-f79c-11e8-8675-0bc53fde1a25"} {"errorMessage":"Invalid user session.","error":401} [DEBUG: 12-04 19:13] selenium.webdriver.remote.remote_connection POST http://127.0.0.1:54281/wd/hub/session/7e93bb90-f79c-11e8-8675-0bc53fde1a25/element {"using": "tag name", "sessionId": "7e93bb90-f79c-11e8-8675-0bc53fde1a25", "value": "pre"} [DEBUG: 12-04 19:13] urllib3.connectionpool Starting new HTTP connection (1): 127.0.0.1:54281 [DEBUG: 12-04 19:13] urllib3.connectionpool http://127.0.0.1:54281 "POST /wd/hub/session/7e93bb90-f79c-11e8-8675-0bc53fde1a25/element HTTP/1.1" 200 104 [DEBUG: 12-04 19:13] selenium.webdriver.remote.remote_connection Finished Request [DEBUG: 12-04 19:13] selenium.webdriver.remote.remote_connection GET http://127.0.0.1:54281/wd/hub/session/7e93bb90-f79c-11e8-8675-0bc53fde1a25/element/:wdc:1543911215300/text {"sessionId": "7e93bb90-f79c-11e8-8675-0bc53fde1a25", "id": ":wdc:1543911215300"} [DEBUG: 12-04 19:13] urllib3.connectionpool Starting new HTTP connection (1): 127.0.0.1:54281 [DEBUG: 12-04 19:13] urllib3.connectionpool http://127.0.0.1:54281 "GET /wd/hub/session/7e93bb90-f79c-11e8-8675-0bc53fde1a25/element/:wdc:1543911215300/text HTTP/1.1" 200 132 [DEBUG: 12-04 19:13] selenium.webdriver.remote.remote_connection Finished Request |
Hi @rafiulnakib the updated script should works now, please delete the entire old folder, redownload it from Github, and try again :) please star this if it helps you too. Cheers |
Worked perfectly! Thanks. |
Hi,
I was hoping you could help me with this. I followed your method and could download videos of one course. However, while trying to download videos of another course, I got the following error.
Can you please show me any work around?
Thanks.
The text was updated successfully, but these errors were encountered: