Skip to content Skip to sidebar Skip to footer

Using/importing Beautiful Soup 4 Without Installation

As the Beautiful Soup documentation says: If all else fails, the license for Beautiful Soup allows you to package the entire library with your application. You can download the ta

Solution 1:

That 'bunch of python scripts' is called a python package; there should be a __init__.py file in there somewhere. Together they form a coherent whole, a namespaced set of modules.

You can just import the BeautifulSoup class from the bs4 package:

from bs4 importBeautifulSoup

See the documentation for more info.

Post a Comment for "Using/importing Beautiful Soup 4 Without Installation"