Skip to content
File

Blob: src/workerd/server/tests/python/vendor_pkg_tests/beautifulsoup4.py

python13 lines
1import bs4
2from workers import WorkerEntrypoint
3 
4 
5class Default(WorkerEntrypoint):
6 async def test(self):
7 assert bs4.__version__
8 # Use beautifulsoup4 to parse HTML
9 soup = bs4.BeautifulSoup("<html></html>", "html.parser")
10 print(soup.prettify())
11 
12 print("BeautifulSoup4 ran successfully!")