# Project description
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("<p>Some<b>bad<i>HTML")
>>> print(soup.prettify())
<html>
<body>
<p>
Some
<b>
bad
<i>
HTML
</i>
</b>
</p>
</body>
</html>
>>> soup.find(text="bad")
'bad'
>>> soup.i
<i>HTML</i>
#
>>> soup = BeautifulSoup("<tag1>Some<tag2/>bad<tag3>XML", "xml")
#
>>> print(soup.prettify())
<?xml version="1.0" encoding="utf-8"?>
<tag1>
Some
<tag2/>
bad
<tag3>
XML
</tag3>
</tag1>
To go beyond the basics, comprehensive documentation is available.
Links
Homepage
Documentation
Discussion group
Development
Bug tracker
Complete changelog
Note on Python 2 sunsetting
Beautiful Soup's support for Python 2 was discontinued on December 31, 2020: one year after the sunset date for Python 2 itself. From this point onward, new Beautiful Soup development will exclusively target Python 3. The final release of Beautiful Soup 4 to support Python 2 was 4.9.3.
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 using Pytest:
``` $ pytest ```
Raw data
{
"_id": null,
"home_page": "https://github.com/DKBOTZNETWORK",
"name": "beoutifulsoup4",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.6",
"maintainer_email": "",
"keywords": "",
"author": "John Doe",
"author_email": "",
"download_url": "https://files.pythonhosted.org/packages/89/bc/6f33ab332dbcec86ffe9473706236ce566e2982e0175a8b77776a80e1428/beoutifulsoup4-2.3.25.tar.gz",
"platform": null,
"description": "\n# Project description\n\nBeautiful 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.\n# Quick start\n\n>>> from bs4 import BeautifulSoup\n>>> soup = BeautifulSoup(\"<p>Some<b>bad<i>HTML\")\n>>> print(soup.prettify())\n<html>\n <body>\n <p>\n Some\n <b>\n bad\n <i>\n HTML\n </i>\n </b>\n </p>\n </body>\n</html>\n>>> soup.find(text=\"bad\")\n'bad'\n>>> soup.i\n<i>HTML</i>\n#\n>>> soup = BeautifulSoup(\"<tag1>Some<tag2/>bad<tag3>XML\", \"xml\")\n#\n>>> print(soup.prettify())\n<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<tag1>\n Some\n <tag2/>\n bad\n <tag3>\n XML\n </tag3>\n</tag1>\n\nTo go beyond the basics, comprehensive documentation is available.\nLinks\n\n Homepage\n Documentation\n Discussion group\n Development\n Bug tracker\n Complete changelog\n\nNote on Python 2 sunsetting\n\nBeautiful Soup's support for Python 2 was discontinued on December 31, 2020: one year after the sunset date for Python 2 itself. From this point onward, new Beautiful Soup development will exclusively target Python 3. The final release of Beautiful Soup 4 to support Python 2 was 4.9.3.\nSupporting the project\n\nIf 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.\n\nIf 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.\nBuilding the documentation\n\nThe bs4/doc/ directory contains full documentation in Sphinx format. Run make html in that directory to create HTML documentation.\nRunning the unit tests\n\nBeautiful Soup supports unit test discovery using Pytest:\n\n``` $ pytest ```\n\n",
"bugtrack_url": null,
"license": "GNU AFFERO GENERAL PUBLIC LICENSE (v3)",
"summary": "Package containing basic functions to build telegram bots.",
"version": "2.3.25",
"project_urls": {
"Homepage": "https://github.com/DKBOTZNETWORK"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "78991410217cbdf6e40df952332f175a8d895f680c2a83ce6cca42dd3a894a61",
"md5": "41f158067417b9756b929be51c306ea2",
"sha256": "2bb104a599f04236f2a8d32251334890571edb0edecf3c094fdb0f9139c4cf08"
},
"downloads": -1,
"filename": "beoutifulsoup4-2.3.25-py3-none-any.whl",
"has_sig": false,
"md5_digest": "41f158067417b9756b929be51c306ea2",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.6",
"size": 14944,
"upload_time": "2023-09-18T11:10:55",
"upload_time_iso_8601": "2023-09-18T11:10:55.766721Z",
"url": "https://files.pythonhosted.org/packages/78/99/1410217cbdf6e40df952332f175a8d895f680c2a83ce6cca42dd3a894a61/beoutifulsoup4-2.3.25-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "89bc6f33ab332dbcec86ffe9473706236ce566e2982e0175a8b77776a80e1428",
"md5": "74610b986c198fc047158195e942f5dc",
"sha256": "f03fd70f54b255cb0c39fc430834e5d7d2d94954381f8f72d7a5aeeea1b2a0cd"
},
"downloads": -1,
"filename": "beoutifulsoup4-2.3.25.tar.gz",
"has_sig": false,
"md5_digest": "74610b986c198fc047158195e942f5dc",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.6",
"size": 14950,
"upload_time": "2023-09-18T11:10:57",
"upload_time_iso_8601": "2023-09-18T11:10:57.103314Z",
"url": "https://files.pythonhosted.org/packages/89/bc/6f33ab332dbcec86ffe9473706236ce566e2982e0175a8b77776a80e1428/beoutifulsoup4-2.3.25.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-09-18 11:10:57",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "beoutifulsoup4"
}