def query_info(self, url): #url = 'http://vmus.online/The-Outpost-S01EP01.html' hutf = self.get_hutf(url) #echo(hutf) ol = OpenLoad() ret = SelStr("title", hutf) ol.title = ret[0].text ret = SelStr("div.entry-content>p iframe", hutf) #url = [ret[0]['src']] return ol.query_info(ret[0]['src'])
def query_info1(self, url): hutf = self.login_hutf(url) #<meta name="og:url" content="https://openload.co/embed/isCWWnlsZLE/"> #<iframe src="https://openload.co/embed/isCWWnlsZLE/" urls = match1( hutf, '\<iframe src="(https://openload.(c|i)o/embed/\S+)" ', '\<meta name="og:url" ' 'content="(https://openload.(c|i)o/embed/\S+)"\>') echo(urls) title = match1(hutf, '<meta property="og:title" content="([^<>]+)"') echo("vmus query_info title=", title) if not urls: echo(SelStr("div.clearfix > p > strong", hutf)[0].text) return None, None, urls, None ol = OpenLoad() ol.title = title return ol.query_info(urls[0])