Compare commits
26 Commits
fa4102d896
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| 9e7ca9a580 | |||
| 32f6a6ae91 | |||
| 78e2664230 | |||
| 6f5f7d0dfb | |||
| 5ad5e83f71 | |||
| 16e96c3263 | |||
| 3602076e85 | |||
| 050b8a9535 | |||
| 3c2fc480a2 | |||
| 6b03d20a57 | |||
| 1f3b0ed365 | |||
| 0c66c7d6f6 | |||
| 5e5caf4341 | |||
| ca39c99bc7 | |||
| 34af68b2fe | |||
| 2d781b9151 | |||
| a11a5f0510 | |||
|
|
1399481493 | ||
|
|
c88ad2423f | ||
| 501e6af46a | |||
| 81df40dece | |||
| 6bdd97c366 | |||
| 3b6845844f | |||
|
|
7039f254e6 | ||
|
|
f1fcd8fcbd | ||
|
|
d4c978c904 |
6
.gitignore
vendored
Normal file
6
.gitignore
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
db/**
|
||||
**/venv/**
|
||||
**/dist/**
|
||||
**/build/**
|
||||
*.spec
|
||||
**/jm_/**
|
||||
@@ -1,6 +1,9 @@
|
||||
# jm_download-_python
|
||||
### <a href="https://gitea.ww3.tw/skimrme/jm_download_python/src/branch/main/README.md">介绍</a> | <a href="https://gitea.ww3.tw/skimrme/jm_download_python/releases">releases</a>(私人gitea地址)
|
||||
|
||||
# jm_download_python [docs](https://skimrme.github.io/jm_download_python/)
|
||||
jm_download _python
|
||||
|
||||
|
||||
# 项目思路来源于[JMComic-Crawler-Python](https://github.com/hect0x7/JMComic-Crawler-Python)
|
||||
|
||||
其实是就是套壳,哈哈哈哈
|
||||
@@ -8,3 +11,4 @@ jm_download _python
|
||||
主要用作cmd和shell这种命令行环境使用
|
||||
|
||||
~~绝对不是为了自己能够下载涩涩的漫画~~
|
||||
|
||||
|
||||
12
docs/index.html
Normal file
12
docs/index.html
Normal file
@@ -0,0 +1,12 @@
|
||||
<title>jm_download_python</title>
|
||||
<h1>jm_download_python</h1>
|
||||
<hr>
|
||||
<h2>项目思路来源于<a href="https://github.com/hect0x7/JMComic-Crawler-Python">JMComic-Crawler-Python</a></h2>
|
||||
<h2>介绍:</h2>
|
||||
这是一个主要用作cmd和shell这种命令行环境使用的jmcomic漫画下载工具
|
||||
<del>其实我也不知道为什么会想做这个</del>
|
||||
<br>
|
||||
说白了这就是一个套壳,哈哈哈哈
|
||||
<br>
|
||||
<br>
|
||||
编辑日期: 2026-02-08
|
||||
63
linux/build.py
Normal file
63
linux/build.py
Normal file
@@ -0,0 +1,63 @@
|
||||
#打包脚本
|
||||
import subprocess, os, sys
|
||||
|
||||
# 建立venv虚拟环境
|
||||
print("建立venv虚拟环境")
|
||||
subprocess.run("python3 -m venv venv", shell=True)
|
||||
|
||||
# 安装requirements.txt中的库
|
||||
print("安装requirements.txt中的库")
|
||||
subprocess.run("venv/bin/pip3 install -r ../requirements.txt", shell=True)
|
||||
|
||||
# 列出pip安装的库
|
||||
print("列出pip安装的库")
|
||||
subprocess.run("venv/bin/pip3 list", shell=True)
|
||||
|
||||
# pyinstaller打包程序
|
||||
print("pyinstaller打包中")
|
||||
print("打包main.py")
|
||||
subprocess.run("venv/bin/pyinstaller --onefile command/main.py", shell=True)
|
||||
print("打包help.py")
|
||||
subprocess.run("venv/bin/pyinstaller --onefile command/help.py", shell=True)
|
||||
print("打包Download.py")
|
||||
subprocess.run("venv/bin/pyinstaller --onefile command/Download.py", shell=True)
|
||||
print("打包version.py")
|
||||
subprocess.run("venv/bin/pyinstaller --onefile command/version.py", shell=True)
|
||||
|
||||
# 清理build和*.spec文件
|
||||
print("清理build和*.spec文件")
|
||||
subprocess.run("rm -rf build/", shell=True)
|
||||
print("正在清理*.spec文件")
|
||||
subprocess.run("rm -rf main.spec version.spec Download.spec help.spec", shell=True)
|
||||
|
||||
|
||||
# 重命名dist为jm_
|
||||
print("重命名dist为jm_")
|
||||
dir_path = os.path.dirname(os.path.abspath(__file__))
|
||||
print("当前路径: " , f"{dir_path}")
|
||||
pass
|
||||
os.rename(f"{dir_path}/dist", "jm_")
|
||||
|
||||
|
||||
# 测试程序
|
||||
print("测试程序")
|
||||
print("建立测试脚本,test.sh")
|
||||
subprocess.run("""
|
||||
cat <<EOF>> test.sh
|
||||
#!/bin/sh
|
||||
cd ./jm_/
|
||||
./main
|
||||
./main help
|
||||
./main version
|
||||
EOF
|
||||
""", shell=True)
|
||||
print("赋予test.sh可执行权限")
|
||||
subprocess.run("chmod +x test.sh", shell=True)
|
||||
print("运行test.sh测试脚本")
|
||||
subprocess.run("/bin/sh test.sh", shell=True)
|
||||
|
||||
# 测试完毕,删除test.sh脚本
|
||||
print("测试完毕,删除test.sh脚本")
|
||||
subprocess.run("rm -rf test.sh", shell=True)
|
||||
|
||||
print("大功告成~感谢您的使用")
|
||||
8
linux/command/Download.py
Normal file
8
linux/command/Download.py
Normal file
@@ -0,0 +1,8 @@
|
||||
import jmcomic as jm
|
||||
import os, sys
|
||||
|
||||
print(f'请输入 jmcomic 车号')
|
||||
|
||||
car_id = input()
|
||||
|
||||
jm.download_album(car_id)
|
||||
2
linux/command/help.py
Normal file
2
linux/command/help.py
Normal file
@@ -0,0 +1,2 @@
|
||||
print("jm", "{:12}选择你需要下载的漫画".format(" "))
|
||||
print("version", "{:7}查看当前版本".format(" "))
|
||||
18
linux/command/main.py
Normal file
18
linux/command/main.py
Normal file
@@ -0,0 +1,18 @@
|
||||
import sys, subprocess
|
||||
|
||||
# 设定
|
||||
if len(sys.argv) == 1:
|
||||
# 如果什么都没输入就输出
|
||||
subprocess.run("./help", check=True)
|
||||
|
||||
if len(sys.argv) > 1:
|
||||
command = sys.argv[1]
|
||||
|
||||
if command == "help":
|
||||
subprocess.run("./help", check=True)
|
||||
elif command == "jm":
|
||||
subprocess.run("./Download", check=True)
|
||||
elif command == "version":
|
||||
subprocess.run("./version", check=True)
|
||||
else:
|
||||
print(f"未知的命令: {command}")
|
||||
2
linux/command/version.py
Normal file
2
linux/command/version.py
Normal file
@@ -0,0 +1,2 @@
|
||||
print("jm_download_python")
|
||||
print("2026-02-04", "(v0.02)")
|
||||
63
mac/build.py
Normal file
63
mac/build.py
Normal file
@@ -0,0 +1,63 @@
|
||||
#打包脚本
|
||||
import subprocess, os, sys
|
||||
|
||||
# 建立venv虚拟环境
|
||||
print("建立venv虚拟环境")
|
||||
subprocess.run("python3 -m venv venv", shell=True)
|
||||
|
||||
# 安装requirements.txt中的库
|
||||
print("安装requirements.txt中的库")
|
||||
subprocess.run("venv/bin/pip3 install -r ../requirements.txt", shell=True)
|
||||
|
||||
# 列出pip安装的库
|
||||
print("列出pip安装的库")
|
||||
subprocess.run("venv/bin/pip3 list", shell=True)
|
||||
|
||||
# pyinstaller打包程序
|
||||
print("pyinstaller打包中")
|
||||
print("打包main.py")
|
||||
subprocess.run("venv/bin/pyinstaller --onefile command/main.py", shell=True)
|
||||
print("打包help.py")
|
||||
subprocess.run("venv/bin/pyinstaller --onefile command/help.py", shell=True)
|
||||
print("打包Download.py")
|
||||
subprocess.run("venv/bin/pyinstaller --onefile command/Download.py", shell=True)
|
||||
print("打包version.py")
|
||||
subprocess.run("venv/bin/pyinstaller --onefile command/version.py", shell=True)
|
||||
|
||||
# 清理build和*.spec文件
|
||||
print("清理build和*.spec文件")
|
||||
subprocess.run("rm -rf build/", shell=True)
|
||||
print("正在清理*.spec文件")
|
||||
subprocess.run("rm -rf main.spec version.spec Download.spec help.spec", shell=True)
|
||||
|
||||
|
||||
# 重命名dist为jm_
|
||||
print("重命名dist为jm_")
|
||||
dir_path = os.path.dirname(os.path.abspath(__file__))
|
||||
print("当前路径: " , f"{dir_path}")
|
||||
pass
|
||||
os.rename(f"{dir_path}/dist", "jm_")
|
||||
|
||||
|
||||
# 测试程序
|
||||
print("测试程序")
|
||||
print("建立测试脚本,test.sh")
|
||||
subprocess.run("""
|
||||
cat <<EOF>> test.sh
|
||||
#!/bin/sh
|
||||
cd ./jm_/
|
||||
./main
|
||||
./main help
|
||||
./main version
|
||||
EOF
|
||||
""", shell=True)
|
||||
print("赋予test.sh可执行权限")
|
||||
subprocess.run("chmod +x test.sh", shell=True)
|
||||
print("运行test.sh测试脚本")
|
||||
subprocess.run("/bin/sh test.sh", shell=True)
|
||||
|
||||
# 测试完毕,删除test.sh脚本
|
||||
print("测试完毕,删除test.sh脚本")
|
||||
subprocess.run("rm -rf test.sh", shell=True)
|
||||
|
||||
print("大功告成~感谢您的使用")
|
||||
8
mac/command/Download.py
Normal file
8
mac/command/Download.py
Normal file
@@ -0,0 +1,8 @@
|
||||
import jmcomic as jm
|
||||
import os, sys
|
||||
|
||||
print(f'请输入 jmcomic 车号')
|
||||
|
||||
car_id = input()
|
||||
|
||||
jm.download_album(car_id)
|
||||
2
mac/command/help.py
Normal file
2
mac/command/help.py
Normal file
@@ -0,0 +1,2 @@
|
||||
print("jm", "{:12}选择你需要下载的漫画".format(" "))
|
||||
print("version", "{:7}查看当前版本".format(" "))
|
||||
18
mac/command/main.py
Normal file
18
mac/command/main.py
Normal file
@@ -0,0 +1,18 @@
|
||||
import sys, subprocess
|
||||
|
||||
# 设定
|
||||
if len(sys.argv) == 1:
|
||||
# 如果什么都没输入就输出
|
||||
subprocess.run("./help", check=True)
|
||||
|
||||
if len(sys.argv) > 1:
|
||||
command = sys.argv[1]
|
||||
|
||||
if command == "help":
|
||||
subprocess.run("./help", check=True)
|
||||
elif command == "jm":
|
||||
subprocess.run("./Download", check=True)
|
||||
elif command == "version":
|
||||
subprocess.run("./version", check=True)
|
||||
else:
|
||||
print(f"未知的命令: {command}")
|
||||
2
mac/command/version.py
Normal file
2
mac/command/version.py
Normal file
@@ -0,0 +1,2 @@
|
||||
print("jm_download_python")
|
||||
print("2026-02-04", "(v0.02)")
|
||||
16
requirements.txt
Normal file
16
requirements.txt
Normal file
@@ -0,0 +1,16 @@
|
||||
altgraph==0.17.5
|
||||
certifi==2026.1.4
|
||||
cffi==2.0.0
|
||||
commonX==0.6.40
|
||||
curl_cffi==0.14.0
|
||||
jmcomic==2.6.13
|
||||
packaging==26.0
|
||||
pefile==2024.8.26
|
||||
pillow==12.1.0
|
||||
pycparser==3.0
|
||||
pycryptodome==3.23.0
|
||||
pyinstaller==6.18.0
|
||||
pyinstaller-hooks-contrib==2026.0
|
||||
pywin32-ctypes==0.2.3
|
||||
PyYAML==6.0.3
|
||||
setuptools==82.0.0
|
||||
51
windows/build.py
Normal file
51
windows/build.py
Normal file
@@ -0,0 +1,51 @@
|
||||
#打包脚本
|
||||
import subprocess, os, sys
|
||||
|
||||
# 建立venv虚拟环境
|
||||
print("建立venv虚拟环境")
|
||||
subprocess.run("python -m venv venv", shell=True)
|
||||
|
||||
# 安装requirements.txt中的库
|
||||
print("安装requirements.txt中的库")
|
||||
subprocess.run("venv\\Scripts\\pip.exe install -r ..\\requirements.txt", shell=True)
|
||||
|
||||
# 列出pip安装的库
|
||||
print("列出pip安装的库")
|
||||
subprocess.run("venv\\Scripts\\pip.exe list", shell=True)
|
||||
|
||||
# pyinstaller打包程序
|
||||
print("pyinstaller打包中")
|
||||
print("打包main.py")
|
||||
subprocess.run("venv\\Scripts\\pyinstaller.exe --onefile command\\main.py", shell=True)
|
||||
print("打包help.py")
|
||||
subprocess.run("venv\\Scripts\\pyinstaller.exe --onefile command\\help.py", shell=True)
|
||||
print("打包Download.py")
|
||||
subprocess.run("venv\\Scripts\\pyinstaller.exe --onefile command\\Download.py", shell=True)
|
||||
print("打包version.py")
|
||||
subprocess.run("venv\\Scripts\\pyinstaller.exe --onefile command\\version.py", shell=True)
|
||||
|
||||
# 清理build和*.spec文件
|
||||
print("清理build和*.spec文件")
|
||||
subprocess.run("RMDIR build /s /q", shell=True)
|
||||
print("正在清理*.spec文件")
|
||||
subprocess.run("DEL main.spec version.spec Download.spec help.spec", shell=True)
|
||||
|
||||
|
||||
# 重命名dist为jm_
|
||||
print("重命名dist为jm_")
|
||||
dir_path = os.path.dirname(os.path.abspath(__file__))
|
||||
print("当前路径: " , f"{dir_path}")
|
||||
pass
|
||||
os.rename(f"{dir_path}\\dist", "jm_")
|
||||
|
||||
# 进入打包后产物文件夹
|
||||
print("进入打包后产物文件夹")
|
||||
os.chdir("jm_")
|
||||
|
||||
# 测试程序
|
||||
print("测试程序")
|
||||
subprocess.run("main.exe", shell=True)
|
||||
subprocess.run("version.exe", shell=True)
|
||||
subprocess.run("help.exe", shell=True)
|
||||
|
||||
print("大功告成~感谢您的使用")
|
||||
8
windows/command/Download.py
Normal file
8
windows/command/Download.py
Normal file
@@ -0,0 +1,8 @@
|
||||
import jmcomic as jm
|
||||
import os, sys
|
||||
|
||||
print(f'请输入 jmcomic 车号')
|
||||
|
||||
car_id = input()
|
||||
|
||||
jm.download_album(car_id)
|
||||
2
windows/command/help.py
Normal file
2
windows/command/help.py
Normal file
@@ -0,0 +1,2 @@
|
||||
print("jm", "{:12}选择你需要下载的漫画".format(" "))
|
||||
print("version", "{:7}查看当前版本".format(" "))
|
||||
18
windows/command/main.py
Normal file
18
windows/command/main.py
Normal file
@@ -0,0 +1,18 @@
|
||||
import sys, subprocess
|
||||
|
||||
# 设定
|
||||
if len(sys.argv) == 1:
|
||||
# 如果什么都没输入就输出
|
||||
subprocess.run("help.exe", check=True)
|
||||
|
||||
if len(sys.argv) > 1:
|
||||
command = sys.argv[1]
|
||||
|
||||
if command == "help":
|
||||
subprocess.run("help.exe", check=True)
|
||||
elif command == "jm":
|
||||
subprocess.run("Download.exe", check=True)
|
||||
elif command == "version":
|
||||
subprocess.run("version.exe", check=True)
|
||||
else:
|
||||
print(f"未知的命令: {command}")
|
||||
2
windows/command/version.py
Normal file
2
windows/command/version.py
Normal file
@@ -0,0 +1,2 @@
|
||||
print("jm_download_python")
|
||||
print("2026-02-04", "(v0.02)")
|
||||
Reference in New Issue
Block a user