Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
peater12
dr_py
提交
db2a3571
dr_py
项目概览
peater12
/
dr_py
落后 Fork 源项目 2 个版本
Fork自
晚风拂柳颜 / dr_py
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
dr_py
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
db2a3571
编写于
10月 20, 2022
作者:
H
hjdhnx
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
修复爱奇艺搜索
上级
7f9bf365
变更
4
展开全部
显示空白变更内容
内联
并排
Showing
4 changed file
with
12 addition
and
4 deletion
+12
-4
base/rules.db
base/rules.db
+0
-0
js/version.txt
js/version.txt
+1
-1
libs/drpy.js
libs/drpy.js
+10
-2
libs/drpy.min.js
libs/drpy.min.js
+1
-1
未找到文件。
base/rules.db
浏览文件 @
db2a3571
无法预览此类型文件
js/version.txt
浏览文件 @
db2a3571
3.9.13beta1
3.9.13beta2
\ No newline at end of file
\ No newline at end of file
libs/drpy.js
浏览文件 @
db2a3571
...
@@ -707,7 +707,10 @@ function readFile(filePath){
...
@@ -707,7 +707,10 @@ function readFile(filePath){
function
dealJson
(
html
)
{
function
dealJson
(
html
)
{
try
{
try
{
// html = html.match(/[\w|\W|\s|\S]*?(\{[\w|\W|\s|\S]*\})/).group[1];
// html = html.match(/[\w|\W|\s|\S]*?(\{[\w|\W|\s|\S]*\})/).group[1];
html
=
'
{
'
+
html
.
match
(
/.*
?\{(
.*
)\}
/
)[
1
]
+
'
}
'
;
html
=
html
.
trim
();
if
(
!
((
html
.
startsWith
(
'
{
'
)
&&
html
.
endsWith
(
'
}
'
))
||
(
html
.
startsWith
(
'
[
'
)
&&
html
.
endsWith
(
'
]
'
)))){
html
=
'
{
'
+
html
.
match
(
/.*
?\{(
.*
)\}
/m
)[
1
]
+
'
}
'
;
}
}
catch
(
e
)
{
}
catch
(
e
)
{
}
}
try
{
try
{
...
@@ -1425,7 +1428,7 @@ function searchParse(searchObj) {
...
@@ -1425,7 +1428,7 @@ function searchParse(searchObj) {
_pd
=
_ps
.
pd
;
_pd
=
_ps
.
pd
;
let
is_json
=
p0
.
startsWith
(
'
json:
'
);
let
is_json
=
p0
.
startsWith
(
'
json:
'
);
p0
=
p0
.
replace
(
/^
(
jsp:|json:|jq:
)
/
,
''
);
p0
=
p0
.
replace
(
/^
(
jsp:|json:|jq:
)
/
,
''
);
//
print('1381 p0:'+p0);
print
(
'
1381 p0:
'
+
p0
);
try
{
try
{
let
html
=
getHtml
(
MY_URL
);
let
html
=
getHtml
(
MY_URL
);
if
(
html
)
{
if
(
html
)
{
...
@@ -1445,9 +1448,14 @@ function searchParse(searchObj) {
...
@@ -1445,9 +1448,14 @@ function searchParse(searchObj) {
console
.
log
(
html
);
console
.
log
(
html
);
}
}
if
(
is_json
){
if
(
is_json
){
// console.log(html);
html
=
dealJson
(
html
);
html
=
dealJson
(
html
);
}
}
console
.
log
(
JSON
.
stringify
(
html
));
console
.
log
(
html
);
let
list
=
_pdfa
(
html
,
p0
);
let
list
=
_pdfa
(
html
,
p0
);
print
(
list
.
length
);
print
(
list
);
list
.
forEach
(
it
=>
{
list
.
forEach
(
it
=>
{
let
p1
=
getPP
(
p
,
1
,
pp
,
1
);
let
p1
=
getPP
(
p
,
1
,
pp
,
1
);
let
p2
=
getPP
(
p
,
2
,
pp
,
2
);
let
p2
=
getPP
(
p
,
2
,
pp
,
2
);
...
...
libs/drpy.min.js
浏览文件 @
db2a3571
此差异已折叠。
点击以展开。
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录