crawlee-python/docs/quick-start/code_examples/playwright_crawler_headful_...

20 lines
366 B
Python

import asyncio
from crawlee.crawlers import PlaywrightCrawler
async def main() -> None:
crawler = PlaywrightCrawler(
# Run with a visible browser window.
# highlight-next-line
headless=False,
# Switch to the Firefox browser.
browser_type='firefox',
)
# ...
if __name__ == '__main__':
asyncio.run(main())