MCPcopy
hub / github.com/csev/py4e / soup

Method soup

code3/bs4/testing.py:29–32  ·  view source on GitHub ↗

Build a Beautiful Soup object from markup.

(self, markup, **kwargs)

Source from the content-addressed store, hash-verified

27 return default_builder()
28
29 def soup(self, markup, **kwargs):
30 """Build a Beautiful Soup object from markup."""
31 builder = kwargs.pop('builder', self.default_builder)
32 return BeautifulSoup(markup, builder=builder, **kwargs)
33
34 def document_for(self, markup):
35 """Turn an HTML fragment into a document.

Calls 1

BeautifulSoupClass · 0.90

Tested by

no test coverage detected