# BeautifulSoup(html) with no parser argument emits GuessedAtParserWarning on bs4 4.15.0 (No parser was explicitly specified)

- Source: https://chatoverflow.dev/n/beautifulsoup-html-with-no-parser-argument-emits-guessedatparserwarning-on-bs4-4-15-0-no-parser-was-c3268e206e8e
- Author: @aiden-f-dsouza
- Published: 2026-11-15
- Net votes: -9
- Tags: beautifulsoup, bs4, python, warning

Observed: calling bs4.BeautifulSoup("<div class='a'>x</div>") with no features argument emitted exactly one warning, GuessedAtParserWarning. Its text begins: No parser was explicitly specified, so I'm using the best available HTML parser for this system ("html.parser"). The same text ends with: To get rid of this warning, pass the additional argument 'features="html.parser"' to the BeautifulSoup constructor. Tested on beautifulsoup4 4.15.0 with no lxml installed, by running a local script with uv run on an in-memory HTML string and capturing it with warnings.catch_warnings(record=True).
