karim-selih / panopto-downloader Goto Github PK
View Code? Open in Web Editor NEWTool to download lectures from Panopto
Tool to download lectures from Panopto
Hi there, thank you for creating this wonderful tool. I am currently running the python file on macOS, does it work on it?
I have tried both mode, with a chrome winodw opened of the video i watned to download, this is what is look like for me after using the open_tabs mode.
python panoptoDownloader.py -url <url> -mode open_tabs --chrome-profile-path <path>
It poped a new chrome tab window and that's all.
====== WebDriver manager ======
Current google-chrome version is 97.0.4692
Get LATEST chromedriver version for 97.0.4692 google-chrome
Driver [/Users/aaroncheung430/.wdm/drivers/chromedriver/mac64/97.0.4692.71/chromedriver] found in cache
Traceback (most recent call last):
File "/Users/aaroncheung430/Desktop/Panopto-Downloader/panoptoDownloader.py", line 173, in
dl.run(args.mode, args.chrome_path, args.num_threads)
File "/Users/aaroncheung430/Desktop/Panopto-Downloader/panoptoDownloader.py", line 112, in run
driver = webdriver.Chrome(service=Service(ChromeDriverManager().install()), options=options)
File "/opt/homebrew/lib/python3.9/site-packages/selenium/webdriver/chrome/webdriver.py", line 70, in init
super(WebDriver, self).init(DesiredCapabilities.CHROME['browserName'], "goog",
File "/opt/homebrew/lib/python3.9/site-packages/selenium/webdriver/chromium/webdriver.py", line 93, in init
RemoteWebDriver.init(
File "/opt/homebrew/lib/python3.9/site-packages/selenium/webdriver/remote/webdriver.py", line 268, in init
self.start_session(capabilities, browser_profile)
File "/opt/homebrew/lib/python3.9/site-packages/selenium/webdriver/remote/webdriver.py", line 359, in start_session
response = self.execute(Command.NEW_SESSION, parameters)
File "/opt/homebrew/lib/python3.9/site-packages/selenium/webdriver/remote/webdriver.py", line 424, in execute
self.error_handler.check_response(response)
File "/opt/homebrew/lib/python3.9/site-packages/selenium/webdriver/remote/errorhandler.py", line 247, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.InvalidArgumentException: Message: invalid argument: user data directory is already in use, please specify a unique value for --user-data-dir argument, or don't use --user-data-dir
Stacktrace:
0 chromedriver 0x00000001046dbe69 chromedriver + 5160553
1 chromedriver 0x0000000104666593 chromedriver + 4679059
2 chromedriver 0x000000010421a2c8 chromedriver + 172744
3 chromedriver 0x000000010423cb61 chromedriver + 314209
4 chromedriver 0x0000000104238cf6 chromedriver + 298230
5 chromedriver 0x0000000104273423 chromedriver + 537635
6 chromedriver 0x000000010426d123 chromedriver + 512291
7 chromedriver 0x0000000104242dce chromedriver + 339406
8 chromedriver 0x0000000104244105 chromedriver + 344325
9 chromedriver 0x000000010469723e chromedriver + 4878910
10 chromedriver 0x00000001046aed17 chromedriver + 4975895
11 chromedriver 0x00000001046b4a3f chromedriver + 4999743
12 chromedriver 0x00000001046af61a chromedriver + 4978202
13 chromedriver 0x000000010468bbb1 chromedriver + 4832177
14 chromedriver 0x00000001046cbfd8 chromedriver + 5095384
15 chromedriver 0x00000001046cc161 chromedriver + 5095777
16 chromedriver 0x00000001046e32a8 chromedriver + 5190312
17 libsystem_pthread.dylib 0x00007ff81d40d4f4 _pthread_start + 125
18 libsystem_pthread.dylib 0x00007ff81d40900f thread_start + 15
Here is what it looks like when I run the default mode, 'visible_videos'
python panoptoDownloader.py -url <url>
It poped up a new chrome window with the institutions panopto service site on it, which required me to sign in each time, as it started a new profile.
====== WebDriver manager ======
Current google-chrome version is 97.0.4692
Get LATEST chromedriver version for 97.0.4692 google-chrome
Driver [/Users/aaroncheung430/.wdm/drivers/chromedriver/mac64/97.0.4692.71/chromedriver] found in cache
Press any key once loaded!^[[A
Traceback (most recent call last):
File "/Users/aaroncheung430/Desktop/Panopto-Downloader/panoptoDownloader.py", line 173, in
dl.run(args.mode, args.chrome_path, args.num_threads)
File "/Users/aaroncheung430/Desktop/Panopto-Downloader/panoptoDownloader.py", line 118, in run
cookies = driver.get_cookies()
File "/opt/homebrew/lib/python3.9/site-packages/selenium/webdriver/remote/webdriver.py", line 1073, in get_cookies
return self.execute(Command.GET_ALL_COOKIES)['value']
File "/opt/homebrew/lib/python3.9/site-packages/selenium/webdriver/remote/webdriver.py", line 424, in execute
self.error_handler.check_response(response)
File "/opt/homebrew/lib/python3.9/site-packages/selenium/webdriver/remote/errorhandler.py", line 247, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.NoSuchWindowException: Message: no such window: window was already closed
(Session info: chrome=97.0.4692.71)
Stacktrace:
0 chromedriver 0x0000000100e31e69 chromedriver + 5160553
1 chromedriver 0x0000000100dbc593 chromedriver + 4679059
2 chromedriver 0x00000001009702c8 chromedriver + 172744
3 chromedriver 0x000000010095fa05 chromedriver + 104965
4 chromedriver 0x0000000100960eb2 chromedriver + 110258
5 chromedriver 0x0000000100959ba2 chromedriver + 80802
6 chromedriver 0x0000000100971753 chromedriver + 178003
7 chromedriver 0x00000001009d575c chromedriver + 587612
8 chromedriver 0x00000001009c3623 chromedriver + 513571
9 chromedriver 0x0000000100998dce chromedriver + 339406
10 chromedriver 0x000000010099a105 chromedriver + 344325
11 chromedriver 0x0000000100ded23e chromedriver + 4878910
12 chromedriver 0x0000000100e04d17 chromedriver + 4975895
13 chromedriver 0x0000000100e0aa3f chromedriver + 4999743
14 chromedriver 0x0000000100e0561a chromedriver + 4978202
15 chromedriver 0x0000000100de1bb1 chromedriver + 4832177
16 chromedriver 0x0000000100e21fd8 chromedriver + 5095384
17 chromedriver 0x0000000100e22161 chromedriver + 5095777
18 chromedriver 0x0000000100e392a8 chromedriver + 5190312
19 libsystem_pthread.dylib 0x00007ff81d40d4f4 _pthread_start + 125
20 libsystem_pthread.dylib 0x00007ff81d40900f thread_start + 15
Thank you very much for your help.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.