जब मैंने सुंदर सूप स्थापित किया, जब भी मैं cmd में अपना पायथन चलाता हूं, यह चेतावनी निकलती है।सुंदर सूप उपयोगकर्ता चेतावनी से कैसे छुटकारा पाएं?
D:\Application\python\lib\site-packages\beautifulsoup4-4.4.1-py3.4.egg\bs4\__init__.py:166:
UserWarning: No parser was explicitly specified, so I'm using the best
available HTML parser for this system ("html.parser"). This usually isn't a
problem, but if you run this code on another system, or in a different
virtual environment, it may use a different parser and behave differently.
To get rid of this warning, change this:
BeautifulSoup([your markup])
to this:
BeautifulSoup([your markup], "html.parser")
मेरे पास कोई आदर्श नहीं है कि यह क्यों निकलता है और इसे कैसे हल किया जाए।
संदेश आपको बता रहा है: 'BeautifulSoup ([अपने मार्कअप]," html.parser ")'। क्या आपने ऐसा किया और देखें कि आपका आउटपुट क्या है? सुंदर सूप आपके जीवन को आसान बनाने की कोशिश कर रहा है। सूप सुनो। :) – idjaw
अपना कोड बदलें जैसे 'सूप = सुंदर सूप (एचटीएमएल)' to 'सूप = सुंदर सूप (एचटीएमएल," html.parser ")'। –
सभी को धन्यवाद! : डी – jellyfishhuang