mirror of
https://github.com/HIllya51/LunaTranslator.git
synced 2025-01-13 23:53:54 +08:00
.
This commit is contained in:
parent
fe1623de9c
commit
14f4bc1dc0
@ -32,6 +32,7 @@ class japandict(cishubase):
|
|||||||
res = get_element_by("class", "list-group list-group-flush", html)
|
res = get_element_by("class", "list-group list-group-flush", html)
|
||||||
if not res:
|
if not res:
|
||||||
return
|
return
|
||||||
|
res = re.sub('href="(.*?)"', 'href="https://www.japandict.com\\1"', res)
|
||||||
ts = []
|
ts = []
|
||||||
styles = '<link rel="stylesheet" href="https://www.japandict.com/static/css/japandict.ac087f3ecbc8.css" type="text/css"><link rel="preload" href="https://www.japandict.com/static/JapaneseRadicals-Regular.woff2" as="font"><link rel="preload" href="https://www.japandict.com/static/radicals_font.woff" as="font">'
|
styles = '<link rel="stylesheet" href="https://www.japandict.com/static/css/japandict.ac087f3ecbc8.css" type="text/css"><link rel="preload" href="https://www.japandict.com/static/JapaneseRadicals-Regular.woff2" as="font"><link rel="preload" href="https://www.japandict.com/static/radicals_font.woff" as="font">'
|
||||||
for link in re.findall('href="(.*?)"', styles):
|
for link in re.findall('href="(.*?)"', styles):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user