Closed xm9572 closed 2 years ago
这个工具是需要安装后使用的:
# 通过 pip 安装
pip install -U xvideos-dl
# 然后直接敲命令使用
xvideos-dl <URL ...>
如果非要直接跑代码也行,需要手动安装依赖包:
pip install typer rich beautifulsoup4 cursor integv requests 'importlib_metadata<4.0'
然后改动下 xvideos_dl/__main__.py
,在末尾添加以下两行:
if __name__ == "__main__":
app()
之后可以这样使用(在项目根目录下):
python -m xvideos_dl <URL ...>
Thank you for your reply
windows 下我下载了源码运行,根据错误,我安装了以下依赖: pip install integv pip install rich pip install constant 然后还是报错: Traceback (most recent call last): File "D:\code\xvideos-dl-master\xvideos_dl\xvideos_dl.py", line 18, in
from . import constant as c
ImportError: attempted relative import with no known parent package
请教一下,windows 下应该怎么用啊?