Beautiful Soup is a Python library for pulling data out of HTML and XML files.

From the Beautiful Soup documentation:

Beautiful Soup is a Python library for pulling data out of HTML and XML files. It works with your favorite parser to provide idiomatic ways of navigating, searching, and modifying the parse tree.

Beautiful Soup 4 (commonly known as bs4, after the name of its Python module) is the latest version of Beautiful Soup, and is mostly backwards-compatible with Beautiful Soup 3.

Notice: Beautiful Soup 3 works only on Python 2 while Beautiful Soup 4 works on both Python 2 (2.6+) and Python 3

history | excerpt history