mirror of https://github.com/pyodide/pyodide.git
c4e1a4140a
Example: If you do: ```js languagePluginLoader.then(() => { // pyodide is now ready to use... pyodide.loadPackage('beautifulsoup4').then(() => { pyodide.runPython(` text = """ <div> <!-- These are animals --> <p class="a">Cat</p> <p class="b">Dog</p> <p class="c">Mouse</p> </div> """ from bs4 import BeautifulSoup import soupsieve soup = BeautifulSoup(text, 'html.parser') print(soup.select('p:is(.a, .c)')) `); }); }); ``` then the output is: ``` [<p class="a">Cat</p>, <p class="c">Mouse</p>] ``` |
||
---|---|---|
.. | ||
meta.yaml |