I would like to know how to insert css, js and html into a DOM. I have a css js and html file that should be loaded into the DOM after calling a URL.
does anyone have a tip on how to get this done ? i have the DOM itself yes can load via
import webview
def change_dom(window):
result = window.evaluate_js("document.documentElement.outerHTML")
print(result)
if __name__ == '__main__':
window = webview.create_window('URL Change Example', 'https://www.amazon.de')
webview.start(change_dom, window)
Thought to myself if I just insert the whole thing with BS4, but don't know if the way is not too cumbersome.
Thanks in advance