Supported Parser Backends¶
By default, Dude uses Playwright but gives you an option to use parser backends that you are familiar with. It is possible to use parser backends like BeautifulSoup4, Parsel and lxml.
Here is the summary of features supported by each parser backend.
Parser Backend | Supports Sync? |
Supports Async? |
Selectors | Setup Handler |
Navigate Handler |
Comments | |||
CSS | XPath | Text | Regex | ||||||
Playwright | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | |
BeautifulSoup4 | ✅ | ✅ | ✅ | 🚫 | 🚫 | 🚫 | 🚫 | 🚫 | |
Parsel | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | 🚫 | 🚫 | |
lxml | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | 🚫 | 🚫 | |
Pyppeteer | 🚫 | ✅ | ✅ | ✅ | ✅ | 🚫 | ✅ | ✅ | Not supported from 0.23.0 |
Selenium | ✅ | ✅ | ✅ | ✅ | ✅ | 🚫 | ✅ | ✅ |