CCExtractor Development
Task for Manveer_Basra: Add an option to config file for options to pass to Chrome
I run SubtitleExtractor and now get_netflix_activity.py inside a VirtualBox instance. For some reason, once I enabled 2D and 3D acceleration in VirtualBox, Chrome stop working correctly. This is a known issue, as is fixed by running Chrome like this:
chrome --disable-gpu
Anyway, I need to add that every time to get_netflix_activity.py. What I do this is this trivial thing:
from selenium.webdriver.chrome.options import Options ...
# Initialising Chrome driver
chrome_options = Options()
chrome_options.add_argument("--disable-gpu")
self.driver = webdriver.Chrome(chrome_options=chrome_options)
But obviously the right solution is to add that to config.ini, for example
[chrome] arguments=--disable-gpu
And well, IF the [chrome] exists AND arguments exists, then pass the value as an option as shown above.
Task tags
Students who completed this task
Manveer_Basra