skillshare-downloader says:
grab your cookie by typing:
document.cookie
Then it says:
Copy-paste cookie from developer console (without " if present) into example script.
Example:
from downloader import Downloader cookie = """ ADD YOUR COOKIE HERE """
It adds an extra step.
Is there any way we can save document.cookie
output to a file so that we can just read the cookie from the file instead of going to the console and type document.cookie
and copy-paste the output?
I checked How to write console.log to a file instead. I also checked Python open browser and run javascript function. It suggests using Selenium or webbroser module. However, I am not sure how to approach this problem.
What can I do?