Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
sunboy0628
dr_py
提交
0d831522
dr_py
项目概览
sunboy0628
/
dr_py
与 Fork 源项目一致
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,体验更适合开发者的 AI 搜索 >>
提交
0d831522
编写于
8月 26, 2022
作者:
H
hjdhnx
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
增加喵喵源
上级
a247a008
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
25 addition
and
4 deletion
+25
-4
js/喵喵.js
js/喵喵.js
+19
-0
models/cms.py
models/cms.py
+6
-4
未找到文件。
js/喵喵.js
0 → 100644
浏览文件 @
0d831522
var
rule
=
{
title
:
'
喵喵
'
,
host
:
'
https://www.2345ka.com
'
,
// homeUrl:'/',
url
:
'
/t/fyclass/fypage.html
'
,
searchUrl
:
'
/s/**/fypage.html
'
,
headers
:{
'
User-Agent
'
:
'
Mozilla/5.0 (Linux; U; Android 9; zh-CN; MI 9 Build/PKQ1.181121.001) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/57.0.2987.108 UCBrowser/12.5.5.1035 Mobile Safari/537.36
'
},
timeout
:
5000
,
class_parse
:
'
.bm-item-list a:gt(0):lt(7);a&&Text;a&&href;/(
\\
d+).html
'
,
limit
:
10
,
推荐
:
'
.movie-list-body;.movie-list-item;.movie-title&&Text;.movie-post-lazyload&&data-original;.movie-rating&&Text;a&&href
'
,
double
:
true
,
// 推荐内容是否双层定位
一级
:
'
.movie-list-body .movie-list-item;.movie-title&&Text;.Lazy&&data-original;.movie-rating&&Text;a&&href
'
,
二级
:{
"
title
"
:
"
h1.movie-title&&Text;.data:eq(1)&&Text
"
,
"
img
"
:
"
.poster img&&src
"
,
"
desc
"
:
"
.cr3.starLink&&Text
"
,
"
content
"
:
"
.detailsTxt&&Text
"
,
"
tabs
"
:
"
.play_source_tab a
"
,
"
lists
"
:
"
.content_playlist:eq(#id) a
"
},
搜索
:
'
.vod-search-list;.movie-title&&Text;.Lazy&&data-original;.getop&&Text;a&&href;.getop:eq(-1)&&Text
'
,
}
\ No newline at end of file
models/cms.py
浏览文件 @
0d831522
...
...
@@ -442,15 +442,17 @@ class CMS:
if
__name__
==
'__main__'
:
from
utils
import
parser
# js_path = f'js/玩偶姐姐.js'
js_path
=
f
'js/555影视.js'
# js_path = f'js/555影视.js'
js_path
=
f
'js/喵喵.js'
ctx
,
js_code
=
parser
.
runJs
(
js_path
)
rule
=
ctx
.
eval
(
'rule'
)
cms
=
CMS
(
rule
)
print
(
cms
.
title
)
print
(
cms
.
homeContent
())
# print(cms.categoryContent('
20
',1))
# print(cms.categoryContent('
5
',1))
# print(cms.categoryContent('latest',1))
# print(cms.detailContent(['https://hongkongdollvideo.com/video/b22c7cb6df40a3c4.html']))
# print(cms.detailContent(['https://www.2345ka.com/v/45499.html']))
# print(cms.detailContent(1,['https://www.2345ka.com/v/78499.html']))
# cms.categoryContent('dianying',1)
# print(cms.detailContent(['67391']))
# print(cms.searchContent('斗罗大陆'))
\ No newline at end of file
print
(
cms
.
searchContent
(
'斗罗大陆'
))
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录