python-beautifulsoup4
Port variant py37
Summary Screen-scraping library (PY37)
Package version 4.9.3
Homepage https://www.crummy.com/software/BeautifulSoup/bs4/
Keywords python
Maintainer Python Automaton
License Not yet specified
Other variants py38
Ravenports Buildsheet | History
Ravensource Port Directory | History
Last modified 07 OCT 2020, 00:47:53 UTC
Port created 21 APR 2020, 22:22:44 UTC
Subpackage Descriptions
single Beautiful Soup is a library that makes it easy to scrape information from web pages. It sits atop an HTML or XML parser, providing Pythonic idioms for iterating, searching, and modifying the parse tree. # Quick start ``` >>> from bs4 import BeautifulSoup >>> soup = BeautifulSoup("

SomebadHTML") >>> print(soup.prettify())

Some bad HTML

>>> soup.find(text="bad") 'bad' >>> soup.i HTML # >>> soup = BeautifulSoup("SomebadXML", "xml") # >>> print(soup.prettify()) Some bad XML ``` To go beyond the basics, [comprehensive documentation is available]. # Links * [Homepage] * [Documentation] * [Discussion group] * [Development] * [Bug tracker] * [Complete changelog] # Note on Python 2 sunsetting Since 2012, Beautiful Soup has been developed as a Python 2 library which is automatically converted to Python 3 code as necessary. This makes it impossible to take advantage of some features of Python 3. For this reason, I plan to discontinue Beautiful Soup's Python 2 support at some point after December 31, 2020: one year after the sunset date for Python 2 itself. Beyond that point, new Beautiful Soup development will exclusively target Python 3. Of course, older releases of Beautiful Soup, which support both versions, will continue to be available. # Supporting the project If you use Beautiful Soup as part of your professional work, please consider a [Tidelift subscription]. This will support many of the free software projects your organization depends on, not just Beautiful Soup. If you use Beautiful Soup for personal projects, the best way to say thank you is to read [Tool Safety], a zine I wrote about what Beautiful Soup has taught me about software development. # Building the documentation The bs4/doc/ directory contains full documentation in Sphinx format. Run `make html` in that directory to create HTML documentation. # Running the unit tests Beautiful Soup supports unit test discovery from the project root directory: ``` $ nosetests ` ` $ python -m unittest discover -s bs4 ```
Configuration Switches (platform-specific settings discarded)
PY37 ON Build using Python 3.7 PY38 OFF Build using Python 3.8
Package Dependencies by Type
Build and Runtime python37:single:standard
python-setuptools:single:py37
Download groups
main mirror://PYPI/b/beautifulsoup4
Distribution File Information
84729e322ad1d5b4d25f805bfa05b902dd96450f43842c4e99067d5e1369eb25 376031 beautifulsoup4-4.9.3.tar.gz
Ports that require python-beautifulsoup4:py37
No other ports depend on this one.