This commit is contained in:
恍兮惚兮 2025-01-02 13:18:01 +08:00
parent 67dfb5b16b
commit 642aac26e9

View File

@ -15,6 +15,8 @@ class weblio(cishubase):
html = requests.get(url, proxies=self.proxy).text html = requests.get(url, proxies=self.proxy).text
head = simplehtmlparser_all(html, "div", '<div class="pbarT">') head = simplehtmlparser_all(html, "div", '<div class="pbarT">')
content = simplehtmlparser_all(html, "div", '<div class="kijiWrp">') content = simplehtmlparser_all(html, "div", '<div class="kijiWrp">')
if not content:
return
collect = [] collect = []
for i, xx in enumerate(head): for i, xx in enumerate(head):
xx = re.sub('src="//(.*?)"', 'src="https://\\1"', xx + content[i]) xx = re.sub('src="//(.*?)"', 'src="https://\\1"', xx + content[i])