Friday, February 2, 2024

xml. Do you need to install a parser library?

 


                             Pyhton error




---------------------------------------------------------------------------
FeatureNotFound                           Traceback (most recent call last)
Cell In[5], line 1
----> 1 soup=BeautifulSoup(webpage,'xml')

File D:\Lib\site-packages\bs4\__init__.py:250, in BeautifulSoup.__init__(self, markup, features, builder, parse_only, from_encoding, exclude_encodings, element_classes, **kwargs)
    248     builder_class = builder_registry.lookup(*features)
    249     if builder_class is None:
--> 250         raise FeatureNotFound(
    251             "Couldn't find a tree builder with the features you "
    252             "requested: %s. Do you need to install a parser library?"
    253             % ",".join(features))
    255 # At this point either we have a TreeBuilder instance in
    256 # builder, or we have a builder_class that we can instantiate
    257 # with the remaining **kwargs.
    258 if builder is None:

FeatureNotFound: Couldn't find a tree builder with the features you requested: xml. Do you need to install a parser library?


solution:-



No comments:

Post a Comment