and switch over the interface.Base.soup method to use it to convert the html to soup, there are times when I need to soupify the html in child projects and it would be nice to be able to do:
from brow.utils import Soup
soup = Soup(body)
in utils.py:
from bs4 import BeautifulSoup
class Soup(BeautifulSoup):
# https://bazaar.launchpad.net/~leonardr/beautifulsoup/bs4/view/head:/bs4/__init__.py
def __init__(self, markup="", features="html.parser", *args, **kwargs):
super(Soup, self).__init__(markup, features, *args, **kwargs)
and switch over the interface.Base.soup method to use it to convert the html to soup, there are times when I need to soupify the html in child projects and it would be nice to be able to do:
in
utils.py
: