Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
夏至溪檐
dr_py
提交
0b8a6032
dr_py
项目概览
夏至溪檐
/
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,发现更多精彩内容 >>
提交
0b8a6032
编写于
11月 25, 2022
作者:
H
hjdhnx
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
修复py厂长
上级
787a1389
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
14 addition
and
11 deletion
+14
-11
js/version.txt
js/version.txt
+1
-1
txt/py/py_czspp.py
txt/py/py_czspp.py
+13
-10
未找到文件。
js/version.txt
浏览文件 @
0b8a6032
3.9.24beta6
\ No newline at end of file
3.9.24beta7
\ No newline at end of file
txt/py/py_czspp.py
浏览文件 @
0b8a6032
...
...
@@ -7,6 +7,7 @@ import base64
import
hashlib
import
requests
from
Crypto.Cipher
import
AES
import
urllib
class
Spider
(
Spider
):
# 元类 默认的元类 type
def
getName
(
self
):
...
...
@@ -39,10 +40,13 @@ class Spider(Spider): # 元类 默认的元类 type
def
homeVideoContent
(
self
):
url
=
"https://czspp.com"
if
len
(
self
.
cookies
)
<=
0
:
self
.
getCookie
(
url
)
url
=
url
+
self
.
zid
rsp
=
self
.
fetch
(
url
)
header
=
{
"Connection"
:
"keep-alive"
,
"Referer"
:
url
,
"User-Agent"
:
"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.0.0 Safari/537.36"
}
session
=
self
.
getCookie
(
url
,
header
)
rsp
=
session
.
get
(
url
,
headers
=
header
)
root
=
self
.
html
(
self
.
cleanText
(
rsp
.
text
))
aList
=
root
.
xpath
(
"//div[@class='mi_btcon']//ul/li"
)
videos
=
[]
...
...
@@ -63,7 +67,6 @@ class Spider(Spider): # 元类 默认的元类 type
}
return
result
cookies
=
''
def
getCookie
(
self
,
url
,
header
):
session
=
requests
.
session
()
rsp
=
session
.
get
(
url
)
...
...
@@ -89,7 +92,7 @@ class Spider(Spider): # 元类 默认的元类 type
"User-Agent"
:
"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.0.0 Safari/537.36"
}
session
=
self
.
getCookie
(
url
,
header
)
rsp
=
session
.
get
(
url
,
cookies
=
self
.
cookies
,
headers
=
header
)
rsp
=
session
.
get
(
url
,
headers
=
header
)
root
=
self
.
html
(
self
.
cleanText
(
rsp
.
text
))
aList
=
root
.
xpath
(
"//div[contains(@class,'bt_img mi_ne_kd mrb')]/ul/li"
)
videos
=
[]
...
...
@@ -124,7 +127,7 @@ class Spider(Spider): # 元类 默认的元类 type
"User-Agent"
:
"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.0.0 Safari/537.36"
}
session
=
self
.
getCookie
(
url
,
header
)
rsp
=
session
.
get
(
url
,
cookies
=
self
.
cookies
,
headers
=
header
)
rsp
=
session
.
get
(
url
,
headers
=
header
)
root
=
self
.
html
(
self
.
cleanText
(
rsp
.
text
))
node
=
root
.
xpath
(
"//div[@class='dyxingq']"
)[
0
]
pic
=
node
.
xpath
(
".//div[@class='dyimg fl']/img/@src"
)[
0
]
...
...
@@ -194,14 +197,14 @@ class Spider(Spider): # 元类 默认的元类 type
return
result
def
searchContent
(
self
,
key
,
quick
):
url
=
'https://czspp.com/xssearch?q={0}'
.
format
(
key
)
url
=
'https://czspp.com/xssearch?q={0}'
.
format
(
urllib
.
parse
.
quote
(
key
)
)
header
=
{
"Connection"
:
"keep-alive"
,
"Referer"
:
url
,
"User-Agent"
:
"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.0.0 Safari/537.36"
}
session
=
self
.
getCookie
(
url
,
header
)
rsp
=
session
.
get
(
url
,
cookies
=
self
.
cookies
,
headers
=
header
)
rsp
=
session
.
get
(
url
,
headers
=
header
)
root
=
self
.
html
(
self
.
cleanText
(
rsp
.
text
))
vodList
=
root
.
xpath
(
"//div[contains(@class,'mi_ne_kd')]/ul/li/a"
)
videos
=
[]
...
...
@@ -251,7 +254,7 @@ class Spider(Spider): # 元类 默认的元类 type
}
session
=
self
.
getCookie
(
url
,
header
)
pat
=
'
\\
"([^
\\
"]+)
\\
";var [
\\
d
\\
w]+=function dncry.*md5.enc.Utf8.parse
\\
(
\\
"([
\\
d
\\
w]+)
\\
".*md5.enc.Utf8.parse
\\
(([
\\
d]+)
\\
)'
rsp
=
session
.
get
(
url
,
cookies
=
self
.
cookies
,
headers
=
header
)
rsp
=
session
.
get
(
url
,
headers
=
header
)
html
=
rsp
.
text
content
=
self
.
regStr
(
html
,
pat
)
if
content
==
''
:
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录