campbells


Namecampbells JSON
Version 0.3.0 PyPI version JSON
download
home_page
SummaryA condensed web scraping library.
upload_time2023-08-27 17:56:44
maintainer
docs_urlNone
author
requires_python>=3.10
licenseMIT
keywords html xml parse soup
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            <div align="center">

# Campbells 🥫

A condensed web scraping library.

[Install](#installation) •
[Examples](#examples)

</div>

Adapted from [beautifulsoup4][bs4]'s inner package, then linted, refactored, reduced, and seasoned to taste.

[bs4]: https://beautiful-soup-4.readthedocs.io/

## Development

To run pre-commit checks and tests:

```sh
pre-commit run --all-files && pdm run python -m pytest
```

## Examples

To parse a string as HTML, your reciple should call for `CampbellsSoup`:

```py
from campbells import CampbellsSoup

html_str = "<html><body><p>Hello world!</p></body></html>"
soup = CampbellsSoup(html_str)
```

## Installation

**Campbells** is available on PyPi:

``` bash
pip install campbells
```

The dependencies needed to use `html5lib` and `lxml` parsers are not installed by default.
They can be installed with:

- `pip install campbells[html5lib]` to be able to use
  [html5lib](https://html5lib.readthedocs.io/en/latest/).
  - **Pros:** closest to how browsers parses web pages, very lenient, creates valid HTML5.
  - **Cons:** slowest parser.
- `pip install campbells[lxml]` to be able to use
  [lxml](https://lxml.de/).
  - **Pros:** fastest parser.
  - **Cons:** heavier dependency (C extension).

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "campbells",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.10",
    "maintainer_email": "",
    "keywords": "HTML XML parse soup",
    "author": "",
    "author_email": "Louis Maddox <louismmx@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/22/d0/319df779ad1fb74df055066ea003cc0e595a9a6bcb48eff60594067bc0a2/campbells-0.3.0.tar.gz",
    "platform": null,
    "description": "<div align=\"center\">\n\n# Campbells \ud83e\udd6b\n\nA condensed web scraping library.\n\n[Install](#installation) \u2022\n[Examples](#examples)\n\n</div>\n\nAdapted from [beautifulsoup4][bs4]'s inner package, then linted, refactored, reduced, and seasoned to taste.\n\n[bs4]: https://beautiful-soup-4.readthedocs.io/\n\n## Development\n\nTo run pre-commit checks and tests:\n\n```sh\npre-commit run --all-files && pdm run python -m pytest\n```\n\n## Examples\n\nTo parse a string as HTML, your reciple should call for `CampbellsSoup`:\n\n```py\nfrom campbells import CampbellsSoup\n\nhtml_str = \"<html><body><p>Hello world!</p></body></html>\"\nsoup = CampbellsSoup(html_str)\n```\n\n## Installation\n\n**Campbells** is available on PyPi:\n\n``` bash\npip install campbells\n```\n\nThe dependencies needed to use `html5lib` and `lxml` parsers are not installed by default.\nThey can be installed with:\n\n- `pip install campbells[html5lib]` to be able to use\n  [html5lib](https://html5lib.readthedocs.io/en/latest/).\n  - **Pros:** closest to how browsers parses web pages, very lenient, creates valid HTML5.\n  - **Cons:** slowest parser.\n- `pip install campbells[lxml]` to be able to use\n  [lxml](https://lxml.de/).\n  - **Pros:** fastest parser.\n  - **Cons:** heavier dependency (C extension).\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "A condensed web scraping library.",
    "version": "0.3.0",
    "project_urls": {
        "Homepage": "https://github.com/lmmx/campbells",
        "Repository": "https://github.com/lmmx/campbells.git"
    },
    "split_keywords": [
        "html",
        "xml",
        "parse",
        "soup"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "90370d08f0064ce7a627ae97bafe39af3774fd45f5952bf65414613f3d7c9429",
                "md5": "f4ae49a5e31e964bf9771180423e0820",
                "sha256": "40b3bf04eb7ca46621b03b6c06329ce778344ecbdd484885b8f4ff2f178ffa8c"
            },
            "downloads": -1,
            "filename": "campbells-0.3.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "f4ae49a5e31e964bf9771180423e0820",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.10",
            "size": 173447,
            "upload_time": "2023-08-27T17:56:42",
            "upload_time_iso_8601": "2023-08-27T17:56:42.443735Z",
            "url": "https://files.pythonhosted.org/packages/90/37/0d08f0064ce7a627ae97bafe39af3774fd45f5952bf65414613f3d7c9429/campbells-0.3.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "22d0319df779ad1fb74df055066ea003cc0e595a9a6bcb48eff60594067bc0a2",
                "md5": "71b3ae25abdc425069b897fe5feb5a1b",
                "sha256": "b0c2e4d47e8f9eed71fbe1b44daacb7d950bdca877341b22dfe2aee3d3891654"
            },
            "downloads": -1,
            "filename": "campbells-0.3.0.tar.gz",
            "has_sig": false,
            "md5_digest": "71b3ae25abdc425069b897fe5feb5a1b",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.10",
            "size": 145348,
            "upload_time": "2023-08-27T17:56:44",
            "upload_time_iso_8601": "2023-08-27T17:56:44.804594Z",
            "url": "https://files.pythonhosted.org/packages/22/d0/319df779ad1fb74df055066ea003cc0e595a9a6bcb48eff60594067bc0a2/campbells-0.3.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-08-27 17:56:44",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "lmmx",
    "github_project": "campbells",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "campbells"
}
        
Elapsed time: 0.14705s