Skip to content
This repository was archived by the owner on Aug 1, 2021. It is now read-only.
This repository was archived by the owner on Aug 1, 2021. It is now read-only.

udemy-dl download with cookies is giving error - OSError: [Errno 22] Invalid argument: 'D:\\Video Tutorials\\Udemy\\marlowe-programming-language\\udemy-dl.log' #552

Closed
@royki

Description

@royki

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:

  1. udemy course url: [e.g https://www.udemy.com/course/marlowe-programming-language/] '...'
  2. 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\
  3. See error

Expected behavior
The course should be downloaded.

Screenshots
If applicable, add screenshots to help explain your problem.

image

image

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions