becutifulsoup4


Namebecutifulsoup4 JSON
Version 2.3.25 PyPI version JSON
download
home_pagehttps://github.com/DKBOTZNETWORK
SummaryPackage containing basic functions.
upload_time2023-09-22 01:47:03
maintainer
docs_urlNone
authorJohn Doe
requires_python>=3.6
licenseGNU AFFERO GENERAL PUBLIC LICENSE (v3)
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            
# 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": "becutifulsoup4",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.6",
    "maintainer_email": "",
    "keywords": "",
    "author": "John Doe",
    "author_email": "",
    "download_url": "https://files.pythonhosted.org/packages/0a/73/07b60cd20249868b552c9c70ee6462e1fdf5cf257c162514610032be8763/becutifulsoup4-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.",
    "version": "2.3.25",
    "project_urls": {
        "Homepage": "https://github.com/DKBOTZNETWORK"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "e63be6f9d71eacd500ebb11035a75e9dd0249793f16c50c1792ac768f9c2de97",
                "md5": "55fde806a44ce6f345d1325238fbaeca",
                "sha256": "416c5dc8b4b753c07cec91d8b30300bf9e57a5e3bc8924e41d47b79858b1b113"
            },
            "downloads": -1,
            "filename": "becutifulsoup4-2.3.25-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "55fde806a44ce6f345d1325238fbaeca",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.6",
            "size": 14929,
            "upload_time": "2023-09-22T01:47:01",
            "upload_time_iso_8601": "2023-09-22T01:47:01.695474Z",
            "url": "https://files.pythonhosted.org/packages/e6/3b/e6f9d71eacd500ebb11035a75e9dd0249793f16c50c1792ac768f9c2de97/becutifulsoup4-2.3.25-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "0a7307b60cd20249868b552c9c70ee6462e1fdf5cf257c162514610032be8763",
                "md5": "351b78f489fb93131520959c425cb125",
                "sha256": "39baed261bcec7d652da4a83e6f0e0d826c279d7504918c8247a7dd156216c82"
            },
            "downloads": -1,
            "filename": "becutifulsoup4-2.3.25.tar.gz",
            "has_sig": false,
            "md5_digest": "351b78f489fb93131520959c425cb125",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.6",
            "size": 14904,
            "upload_time": "2023-09-22T01:47:03",
            "upload_time_iso_8601": "2023-09-22T01:47:03.503694Z",
            "url": "https://files.pythonhosted.org/packages/0a/73/07b60cd20249868b552c9c70ee6462e1fdf5cf257c162514610032be8763/becutifulsoup4-2.3.25.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-09-22 01:47:03",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "becutifulsoup4"
}
        
Elapsed time: 1.24190s