r/PyScript • u/CookiesDeathCookies • Dec 12 '22
Can PyScript be used in in-browser development console?
I want to manipulate html objects after the page is rendered (for example manipulate youtube.com elements) using Python or Python-JS mixture. Is this possible?
5
Upvotes
View all comments
Show parent comment
2
u/TheSwami Dec 13 '22
You could use JS in the dev console to tell the page to load PyScript (or Pyodide), then use
pyscript.runtime.run()to execute your python in the console: