Add source pcolle

This commit is contained in:
yoshiko2
2023-05-25 23:39:35 +08:00
parent 35143774ba
commit b5adda52dd
3 changed files with 7 additions and 3 deletions

View File

@@ -4,6 +4,7 @@ import json
import re
from lxml import etree, html
import config
from . import httprequest
from .utils import getTreeElement, getTreeAll
@@ -166,7 +167,8 @@ class Parser:
}
dic = self.extradict(dic)
except Exception as e:
#print(e)
if config.getInstance().debug():
print(e)
dic = {"title": ""}
js = json.dumps(dic, ensure_ascii=False, sort_keys=True, separators=(',', ':'))
return js