diff --git a/controllers/cms.py b/controllers/cms.py index b09996c923b33e057b34a22be07289682579d259..440df41414ef8e253362ecb8b6cc68775c54ce98 100644 --- a/controllers/cms.py +++ b/controllers/cms.py @@ -1048,7 +1048,7 @@ class CMS: if is_json: html = self.dealJson(html) html = json.loads(html) - print(html) + # print(html) if not is_json and html.find('输入验证码') > -1: cookie = verifyCode(url,self.headers,self.timeout,self.retry_count,self.ocr_api) # cookie = '' @@ -1063,15 +1063,13 @@ class CMS: html = r.text items = pdfa(html,p[0].replace('json:','',1)) - print(len(items),items) + # print(len(items),items) videos = [] for item in items: # print(item) try: # title = pdfh(item, p[1]) - print(p[1].split('||')) title = ''.join([pdfh(item, i) for i in p[1].split('||')]) - print(title) try: img = pd(item, p[2]) except: diff --git a/utils/htmlParser.py b/utils/htmlParser.py index f94dfadda147173abc3c447e75ec7152286dca88..90c2aac092d5921886d9b6255af52278dc2ce5fa 100644 --- a/utils/htmlParser.py +++ b/utils/htmlParser.py @@ -35,7 +35,7 @@ class jsoup: # FIXME 暂时不支持jsonpath那样的|| 分割取或属性 if option: - print(f'parse:{parse}=>(option:{option})') + # print(f'parse:{parse}=>(option:{option})') ret = doc(parse) # print(html) # FIXME 解析出来有多个的情况应该自动取第一个