1. 重新初始化

2. 调整为手动更新
3. 添加指定服务端口的环境变量
4. 修复获取个人数据返回值错误的bug
This commit is contained in:
ngfchl
2022-08-24 18:44:59 +08:00
parent d8b636f5da
commit 1c8df96c42
2 changed files with 5 additions and 4 deletions

View File

@@ -1,12 +1,12 @@
import logging
import re
import threading
import time
from datetime import datetime
import aip
import cloudscraper
import opencc
import time
from django.db import transaction
from django.db.models import QuerySet
from lxml import etree
@@ -648,7 +648,7 @@ class PtSpider:
# print(torrent_info)
if count + new_count <= 0:
return CommonResponse.error(msg='抓取失败或无促销种子!')
return CommonResponse.success((new_count, count))
return CommonResponse.success(data=(new_count, count))
except Exception as e:
# raise
return CommonResponse.error(msg='解析种子页面失败!' + str(e))

View File

@@ -26,7 +26,7 @@
### 功能实现
| 日期 | 功能 | 实现 |
| ---- | ---------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- |
| ------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------- |
| 0717 | 站点管理(内附爬虫规则、站点授权信息) | 已实现,支持站点见下表 |
| 0718 | 抓取种子信息 | 已实现 |
| 0719 | 下载器管理 | 已实现目前仅支持TransmissionqBittorrent下载器添加任务不返回任务信息需迂回容后处理 |
@@ -65,8 +65,9 @@
> 2022.08.03支持列表,根本本人现有站点数据整理
| 序号 | 站点 | 签到 | 个人数据 | 推送种子 |
| ---- | ---------------- | ---- | -------- | -------- |
| ------ | ------------------ | ------ | ---------- | ---------- |
| 1 | 阿童木 | 支持 | 支持 | 支持 |
| 2 | 猪猪网 | 支持 | 支持 | 支持 |
| 3 | 学校 | 支持 | 支持 | 支持 |