提交 15679fc0 编写于 作者: H hjdhnx

完成pdfh系列函数

上级 9358f192
......@@ -91,7 +91,7 @@ class CMS:
# params = '-'.join(urlParams)
# print(params)
# url = self.url + '/{0}.html'.format(params)
pg = str(fypage)
fypage = str(fypage)
url = self.url.replace('fyclass',fyclass).replace('fypage',fypage)
print(url)
headers = {'user-agent': self.ua}
......@@ -101,6 +101,7 @@ class CMS:
pdfh = jsp.pdfh
pdfa = jsp.pdfa
pd = jsp.pd
print(pdfh(r.text,p[0]))
items = pdfa(r.text, p[0])
videos = []
......@@ -120,7 +121,7 @@ class CMS:
"vod_content": content,
})
result['list'] = videos
result['page'] = pg
result['page'] = fypage
result['pagecount'] = 9999
result['limit'] = 90
result['total'] = 999999
......
......@@ -29,7 +29,9 @@ class jsoup:
if pd and option in ['url','src','href','data-original']:
ret = urljoin(self.MY_URL,ret)
else:
ret = ret('fisrt').html()
ret = ret.next()
print(ret)
ret = str(ret('fisrt'))
return ret
def pdfa(self,html,parse):
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册