MCPcopy Create free account
hub / github.com/UndCover/PyramidStore / homeVideoContent

Method homeVideoContent

plugin/py_czspp.py:38–58  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

36 return result
37
38 def homeVideoContent(self):
39 rsp = self.fetch("https://czspp.com")
40 root = self.html(self.cleanText(rsp.text))
41 aList = root.xpath("//div[@class='mi_btcon']//ul/li")
42 videos = []
43 for a in aList:
44 name = a.xpath('./a/img/@alt')[0]
45 pic = a.xpath('./a/img/@data-original')[0]
46 mark = a.xpath("./div[@class='hdinfo']/span/text()")[0]
47 sid = a.xpath("./a/@href")[0]
48 sid = self.regStr(sid, "/movie/(\\S+).html")
49 videos.append({
50 "vod_id": sid,
51 "vod_name": name,
52 "vod_pic": pic,
53 "vod_remarks": mark
54 })
55 result = {
56 'list': videos
57 }
58 return result
59
60 def categoryContent(self, tid, pg, filter, extend):
61 result = {}

Callers

nothing calls this directly

Calls 4

fetchMethod · 0.95
htmlMethod · 0.95
cleanTextMethod · 0.95
regStrMethod · 0.95

Tested by

no test coverage detected