mirror of
https://github.com/HIllya51/LunaTranslator.git
synced 2024-12-29 16:44:13 +08:00
Update jisho.py
This commit is contained in:
parent
e75b1086f1
commit
ba7e71452b
@ -89,7 +89,13 @@ class jisho(cishubase):
|
||||
res = get_element_by_id("page_container", html)
|
||||
if res is None:
|
||||
return
|
||||
res = res.replace('href="//', 'href="https://')
|
||||
res = (
|
||||
res.replace('href="//', 'href="https://')
|
||||
.replace("<h3>Discussions</h3>", "")
|
||||
.replace(
|
||||
'<a href="#" class="signin">Log in</a> to talk about this word.', ""
|
||||
)
|
||||
)
|
||||
|
||||
ss = re.search('href="https://assets.jisho.org/assets/application(.*)"', html)
|
||||
stl = requests.get(ss.group()[6:-1], proxies=getproxy()).text
|
||||
|
Loading…
x
Reference in New Issue
Block a user