talira

Beautiful Soup

Python library for pulling data out of HTML and XML

open sourceMITfree

Beautiful Soup is a Python screen-scraping library for pulling data out of HTML and XML documents. It is installed as the beautifulsoup4 package from PyPI and packaged in Debian as python3-bs4. Leonard Richardson has written and maintained it since 2004; it is released under the MIT licence, with its code on Launchpad.

Problems it solves

  • pull data out of a web page's HTML in a Python script
  • scrape a website in Python
  • read values out of an XML file in Python
  • parse an HTML page I downloaded with requests

Features

  • Screen-scraping library for Python
  • Reads HTML, XML and SGML markup
  • Installed as beautifulsoup4 from PyPI
  • Packaged in Debian as python3-bs4

Alternatives

The same job

These do what Beautiful Soup does.

  1. Scrapy Open source web scraping and crawling framework for Python
  2. Crawlee Web scraping and browser automation library for JavaScript and Python
  3. Scrapling A web scraping framework from a single request to a full-scale crawl
  4. ScrapeGraphAI Python library and API that scrape websites with LLMs from a plain description of what to extract

Compare Beautiful Soup with the top 3