| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475 |
- <!DOCTYPE html>
- <html lang="zh-CN">
- <head>
- <meta charset="UTF-8">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <title>EH-Downloader</title>
- <link rel="stylesheet" href="/static/style.css">
- </head>
- <body>
- <div class="container">
- <h1>EH</h1>
-
- <form id="downloadForm" class="form">
- <div class="form-group">
- <label for="proxy">代理设置:</label>
- <select id="proxy" name="proxy" class="proxy-select" required>
- {% for proxy in proxies %}
- <option value="{{ proxy }}" {% if proxy == default_proxy %}selected{% endif %}>{{ proxy }}</option>
- {% endfor %}
- </select>
- </div>
-
- <div class="form-group">
- <button type="button" id="loadUrls" class="btn btn-info">读取目标URL</button>
- </div>
-
- <div class="form-group">
- <label for="urlList">目标URL列表:</label>
- <textarea id="urlList" name="urlList" class="url-list" readonly placeholder="这里将显示从 targets.txt 读取的URL列表"></textarea>
- </div>
-
- <div class="button-group">
- <button type="button" id="downloadUrl" class="btn btn-primary">下载URL</button>
- <button type="button" id="downloadImage" class="btn btn-secondary">下载图片</button>
- <button type="button" id="checkIncomplete" class="btn btn-info">检查未完成</button>
- <button type="button" id="cleanFiles" class="btn btn-warning">清理日志和JSON文件</button>
- <button type="button" id="clearOutput" class="btn btn-danger">清除输出</button>
- </div>
- </form>
-
- <div class="output-section">
- <h3>操作日志</h3>
- <pre id="output" class="output-area"></pre>
- </div>
- <br><br>
- <div class="output-section">
- <h3>使用说明</h3>
- <div class="usage-instructions">
- <p><strong>工具使用步骤:</strong></p>
- <ol>
- <li>从下拉框选择代理设置(代理配置保存在项目根目录的proxy.txt中)</li>
- <li>将URL复制到项目目录下的data/targets.txt中,一个画廊一个URL</li>
- <li>在<a href="https://e-hentai.org/" target="_blank">这里</a>获取需要下载的画廊URL</li>
- <li>点击"读取目标URL"加载 targets.txt 中的URL列表</li>
- <li>点击"下载URL"开始抓取画廊链接</li>
- <li>点击"下载图片"开始下载图片文件</li>
- <li>使用"检查未完成"查看下载进度</li>
- <li>使用"清理日志和JSON文件"清理临时文件</li>
- </ol>
- <p><strong>注意事项:</strong></p>
- <ul>
- <li>请确保代理设置正确,且 targets.txt 文件中已添加目标URL</li>
- <li>代理配置:在项目根目录的proxy.txt文件中,每行一个代理地址,格式为 IP:端口</li>
- <li>下载的图片会保存在 data/downloads 目录下,按画廊名称分文件夹存储</li>
- <li>如果下载中断,可以重新运行"下载图片"继续未完成的下载</li>
- </ul>
- </div>
- </div>
- </div>
-
- <script src="/static/script.js"></script>
- </body>
- </html>
|