| 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 = {} |