in cmd:
D:\Cwork\porn\pornhub-master>python crawler.py webm
Traceback (most recent call last):
File "crawler.py", line 12, in
import fire
ModuleNotFoundError: No module named 'fire'
in pycarm
D:\Btool\Python37\python.exe D:/Cwork/porn/pornhub-master/crawler.py
Traceback (most recent call last):
File "D:/Cwork/porn/pornhub-master/crawler.py", line 14, in
logger.add("logs/%s.log" % file.rstrip('.py'), format="{time:MM-DD HH:mm:ss} {level} {message}")
File "D:\Btool\Python37\lib\site-packages\loguru_logger.py", line 599, in add
sink = FileSink(path, **kwargs)
File "D:\Btool\Python37\lib\site-packages\loguru_file_sink.py", line 57, in init
self.initialize_file(rename_existing=False)
File "D:\Btool\Python37\lib\site-packages\loguru_file_sink.py", line 83, in initialize_file
os.makedirs(new_dir, exist_ok=True)
File "D:\Btool\Python37\lib\os.py", line 211, in makedirs
makedirs(head, exist_ok=exist_ok)
File "D:\Btool\Python37\lib\os.py", line 211, in makedirs
makedirs(head, exist_ok=exist_ok)
File "D:\Btool\Python37\lib\os.py", line 211, in makedirs
makedirs(head, exist_ok=exist_ok)
File "D:\Btool\Python37\lib\os.py", line 221, in makedirs
mkdir(name, mode)
OSError: [WinError 123] 文件名、目录名或卷标语法不正确。: 'D:\Cwork\porn\pornhub-master\logs\D:'