udemy-dl download with cookies is giving error - OSError: [Errno 22] Invalid argument: 'D:\\Video Tutorials\\Udemy\\marlowe-programming-language\\udemy-dl.log' #552
Description
Describe the bug
Downloading the following Udemy course using udemy-dl
-
Marlowe
python .\udemy-dl.py https://www.udemy.com/course/marlowe-programming-language/ -k .\cookies.txt --skip-sub -o "D:\Video Tutorials\Udemy\
Or python .\udemy-dl.py https://www.udemy.com/course/marlowe-programming-language/ -u USERNAME -p PASSOWRD --skip-sub -o "D:\Video Tutorials\Udemy\
cookies.txt is in following format
access_token=XXXXXXXXXXXXXXXXXXXXXX
It gives the following error
Traceback (most recent call last):
File ".\udemy-dl.py", line 608, in <module>
main()
File ".\udemy-dl.py", line 578, in main
udemy_obj.course_download(
File ".\udemy-dl.py", line 318, in course_download
logger.set_log_filepath(logs_filepath)
File "D:\Video Tutorials\Udemy\udemy-dl\udemy\logger.py", line 67, in set_log_filepath
file_handler = logging.FileHandler(log_filepath)
File "C:\Program Files\Python38\lib\logging\__init__.py", line 1143, in __init__
StreamHandler.__init__(self, self._open())
File "C:\Program Files\Python38\lib\logging\__init__.py", line 1172, in _open
return open(self.baseFilename, self.mode, encoding=self.encoding)
OSError: [Errno 22] Invalid argument: 'D:\\Video Tutorials\\Udemy\\marlowe-programming-language\\udemy-dl.log'
To Reproduce
Steps to reproduce the behavior:
- udemy course url: [e.g
https://www.udemy.com/course/marlowe-programming-language/
] '...' - Run the following command to reproduce the error.
python .\udemy-dl.py https://www.udemy.com/course/marlowe-programming-language/ -k .\cookies.txt --skip-sub -o "D:\Video Tutorials\Udemy\
- See error
Expected behavior
The course should be downloaded.
Screenshots
If applicable, add screenshots to help explain your problem.
Python Environment (please complete the following information):
- OS Platform: Windows 10
- Python 3.8.5
Additional context
Add any other context about the problem here.
Activity