]*title="([^"]+)">.*?
([^<]+)
', r.text, re.S)
videos = [{"vod_id": h, "vod_name": t.strip(), "vod_pic": i if i.startswith("http") else "https:"+i, "vod_remarks": r.strip()} for h, i, r, t, s in items]
pages = re.findall(r'/p(\d+)\.html"[^>]*>(\d+)', r.text)
pagecount = max([int(p[1]) for p in pages]) if pages else int(pg)
return {'list': videos, 'page': int(pg), 'pagecount': pagecount, 'limit': len(videos), 'total': 9999}
except: return {'list': [], 'page': 1, 'pagecount': 1}
def searchContent(self, key, quick, pg="1"):
url = "https://a123tv.com/s/{}.html".format(urllib.parse.quote(key)) if pg == "1" else "https://a123tv.com/s/{}/p{}.html".format(urllib.parse.quote(key), pg)
try:
r = requests.get(url, headers=self.header, timeout=5); r.encoding = "utf-8"
items = re.findall(r'
]*>([^<]+) .*?