从vndb.org下载可视小说元数据和屏幕截图
vndb-dl的Python项目详细描述
vndb_dl
vndb_dl是一个命令行实用程序,允许从vndb.org下载vn元数据和屏幕截图。
用法
可以从命令行使用vndb_dl。您可以指定一个id与-i选项一起使用:
$ vndb_dl -i 7
或vndb.org网址:
$ vndb_dl -u https://vndb.org/v7
范围支持批量下载:
$ vndb_dl -i 7-12, 14# Will download vns with id [7; 12] and vn with id 14
默认情况下,vn_dl将在metadata.txt和metadata.json文件中输出关于每个vn的元数据。要禁用其中一个或两个,请将它们的标志设置为false:
$ vndb_dl -i 7 -j False -p False
默认情况下,vndb_dl将输出到工作目录中。您可以使用目录标志更改目录:
$ vndb_dl -i 7-12 -d download_folder
这包括vndb_dl的全部使用。
$ vndb_dl --help usage: vndb_dl [-h][-j JSON][-p PLAIN][-i ID [ID ...]][-u URL [URL ...]][-d DIRECTORY] Download visual novel information from vndb.org. optional arguments: -h, --help show this help message and exit -j JSON, --json JSON Parse the visual novel metadata as a JSON file in the visual novel folder ([True]/False) -p PLAIN, --plain PLAIN Parse the visual novel metadata as a plain text file in the visual novel folder ([True]/False) -i ID [ID ...], --id ID [ID ...] vndb id of the visual novel; where in vndb.org/v###, the ### is the vn's id. --id accepts both list of numbers (eg. 567) and ranges (eg. 5-7) as well as both (eg. 5-7 911). Commas and spaces are accepted (eg 5-7, 4049, 51), as long as each character is separated by a space (57,59 will give you vn n.5759). -u URL [URL ...], --url URL [URL ...] vndb url of the visual novel -d DIRECTORY, --directory DIRECTORY Source directory where the data for each visual novel will be stored
对于开发人员
任何贡献都非常感谢。如果发现改进,请提交请求。
文件
所有文档都可以在docs
文件夹下找到sphinx格式。
单元测试
测试位于tests
文件夹中。