mirror of
https://github.com/HIllya51/LunaTranslator.git
synced 2025-01-13 07:33:53 +08:00
.
This commit is contained in:
parent
67dfb5b16b
commit
642aac26e9
@ -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])
|
||||||
|
Loading…
x
Reference in New Issue
Block a user