请问能否把当前session的整个html页面dump成一个单独的静态文件 #326
Unanswered
wanghaisheng
asked this question in
Q&A
Replies: 2 comments 6 replies
-
只能通过js的方式来获取了, |
Beta Was this translation helpful? Give feedback.
6 replies
-
import pywebio
def main():
html = pywebio.session.eval_js("$('html')[0].outerHTML")
open("save.html", "w").write(html)
pywebio.start_server(main, port=8080) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
有api吗 我没找到。囧
Beta Was this translation helpful? Give feedback.
All reactions