(self, key, quick)
| 167 | retry = retry - 1 |
| 168 | |
| 169 | def searchContent(self, key, quick): |
| 170 | url = 'https://cokemv.me/vodsearch/-------------.html?wd={0}'.format(key) |
| 171 | session = self.verifyCode(url) |
| 172 | rsp = session.get(url) |
| 173 | root = self.html(rsp.text) |
| 174 | vodList = root.xpath("//div[@class='module-card-item module-item']/a[@class='module-card-item-poster']") |
| 175 | videos = [] |
| 176 | for vod in vodList: |
| 177 | name = vod.xpath(".//img/@alt")[0] |
| 178 | pic = vod.xpath(".//img/@data-original")[0] |
| 179 | mark = vod.xpath(".//div[@class='module-item-note']/text()")[0] |
| 180 | sid = vod.xpath("./@href")[0] |
| 181 | sid = self.regStr(sid,"/voddetail/(\\S+).html") |
| 182 | videos.append({ |
| 183 | "vod_id":sid, |
| 184 | "vod_name":name, |
| 185 | "vod_pic":pic, |
| 186 | "vod_remarks":mark |
| 187 | }) |
| 188 | result = { |
| 189 | 'list':videos |
| 190 | } |
| 191 | return result |
| 192 | |
| 193 | config = { |
| 194 | "player": {"coke11":{"show":"蓝光采集2(暂时)","des":"","ps":"0","parse":""},"ddzy":{"show":"蓝光采集3(暂时)","des":"","ps":"0","parse":""},"coke12345":{"show":"采集路线","des":"","ps":"0","parse":""},"cokemv0555":{"show":"COKEMV","des":"","ps":"0","parse":""},"cokeqie01":{"show":"極速路線","des":"","ps":"0","parse":""},"xin":{"show":"高速路線","des":"","ps":"0","parse":""},"90mm":{"show":"COKEMV(測試)","des":"","ps":"0","parse":""},"toutiao":{"show":"海外路線","des":"","ps":"0","parse":""},"age01":{"show":"動漫一線","des":"","ps":"0","parse":""},"mahua":{"show":"海外(禁國內)","des":"","ps":"0","parse":""},"age02":{"show":"動漫二線","des":"","ps":"0","parse":""}}, |
nothing calls this directly
no test coverage detected