| 38 | result['filters'] = self.config['filter'] |
| 39 | return result |
| 40 | def homeVideoContent(self): |
| 41 | rsp = self.fetch("https://www.genmov.com/",headers=self.header) |
| 42 | root = self.html(rsp.text) |
| 43 | aList = root.xpath("//div[@class='module module-wrapper']//div[@class='module-item']") |
| 44 | videos = [] |
| 45 | for a in aList: |
| 46 | name = a.xpath(".//div[@class='module-item-pic']/a/@title")[0] |
| 47 | pic = a.xpath(".//div[@class='module-item-pic']/img/@data-src")[0] |
| 48 | mark = a.xpath("./div[@class='module-item-text']/text()")[0] |
| 49 | sid = a.xpath(".//div[@class='module-item-pic']/a/@href")[0] |
| 50 | sid = self.regStr(sid,"/video/(\\S+).html") |
| 51 | videos.append({ |
| 52 | "vod_id":sid, |
| 53 | "vod_name":name, |
| 54 | "vod_pic":pic, |
| 55 | "vod_remarks":mark |
| 56 | }) |
| 57 | result = { |
| 58 | 'list':videos |
| 59 | } |
| 60 | return result |
| 61 | def categoryContent(self,tid,pg,filter,extend): |
| 62 | result = {} |
| 63 | urlParams = ["", "", "", "", "", "", "", "", "", "", "", ""] |