# Arana
## Introduction
Arana is an abstraction layer for web scrapers. At the moment arana abstracts
Chromium, Firefox and WebKit browsers.
## Features
- Provide an abstraction layer for web scrapers
- Provide an abstraction for a browser (Chromium, Firefox or WebKit)
- Provide a strong OOP composition API usage
- Pass Cloudflare web scrap protection for sites
## How to use
Install it using `pip` command:
```bash
pip install arana
```
in your project folder.
## Usage
To access a web page using Chromium browser, you can use:
```python
# Create a new Chromium browser
browser = Chromium()
# Open the browser
browser.open()
# Create a new web page
page = browser.page(url)
# Open the web page
response = page.open()
# Get the html content
html = response.html().content()
# Close the web page
page.close()
# Close the browser
browser.close()
```
## License
The MIT License (MIT)
Copyright (C) 2025 FabrÃcio Barros Cabral
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included
in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Raw data
{
"_id": null,
"home_page": null,
"name": "arana",
"maintainer": null,
"docs_url": null,
"requires_python": null,
"maintainer_email": null,
"keywords": "web, scraper, playwright, scrapy, scraping, browserforge",
"author": null,
"author_email": "Fabr\u00edcio Barros Cabral <fabriciofx@gmail.com>",
"download_url": "https://files.pythonhosted.org/packages/2a/20/c633a06481919feb112c05a3911201bd31ab1198b778c2d7ed4f9c1313e9/arana-0.0.2.tar.gz",
"platform": null,
"description": "# Arana\n\n## Introduction\n\nArana is an abstraction layer for web scrapers. At the moment arana abstracts\nChromium, Firefox and WebKit browsers.\n\n## Features\n\n- Provide an abstraction layer for web scrapers\n- Provide an abstraction for a browser (Chromium, Firefox or WebKit)\n- Provide a strong OOP composition API usage\n- Pass Cloudflare web scrap protection for sites\n\n## How to use\n\nInstall it using `pip` command:\n\n```bash\npip install arana\n```\n\nin your project folder.\n\n## Usage\n\nTo access a web page using Chromium browser, you can use:\n\n```python\n# Create a new Chromium browser\nbrowser = Chromium()\n# Open the browser\nbrowser.open()\n# Create a new web page\npage = browser.page(url)\n# Open the web page\nresponse = page.open()\n# Get the html content\nhtml = response.html().content()\n# Close the web page\npage.close()\n# Close the browser\nbrowser.close()\n```\n\n## License\n\nThe MIT License (MIT)\n\nCopyright (C) 2025 Fabr\u00edcio Barros Cabral\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included\nin all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n",
"bugtrack_url": null,
"license": null,
"summary": "Abstraction layer for web scrapers",
"version": "0.0.2",
"project_urls": {
"Bug Tracker": "https://github.com/fabriciofx/arana/issues",
"Homepage": "https://github.com/fabriciofx/arana"
},
"split_keywords": [
"web",
" scraper",
" playwright",
" scrapy",
" scraping",
" browserforge"
],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "7142ff8673bda2b8fb34e3e16da59356bcb0d101d63780c091775405efa6e402",
"md5": "75cb9c012462f98c5262af8774cfba4d",
"sha256": "ba5ab96eac9d29589a624e35efb023964a62b8bf9626d12f22424eb31303bc29"
},
"downloads": -1,
"filename": "arana-0.0.2-py3-none-any.whl",
"has_sig": false,
"md5_digest": "75cb9c012462f98c5262af8774cfba4d",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 16060,
"upload_time": "2025-03-14T21:09:59",
"upload_time_iso_8601": "2025-03-14T21:09:59.403717Z",
"url": "https://files.pythonhosted.org/packages/71/42/ff8673bda2b8fb34e3e16da59356bcb0d101d63780c091775405efa6e402/arana-0.0.2-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "2a20c633a06481919feb112c05a3911201bd31ab1198b778c2d7ed4f9c1313e9",
"md5": "02c2da98a1e0fcef6b67581c1a73d9ac",
"sha256": "8213454c9fa9ba3b236ca7cf1890ef2954081d31fcf0c83855b88af7e2e58fc1"
},
"downloads": -1,
"filename": "arana-0.0.2.tar.gz",
"has_sig": false,
"md5_digest": "02c2da98a1e0fcef6b67581c1a73d9ac",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 8966,
"upload_time": "2025-03-14T21:10:00",
"upload_time_iso_8601": "2025-03-14T21:10:00.380544Z",
"url": "https://files.pythonhosted.org/packages/2a/20/c633a06481919feb112c05a3911201bd31ab1198b778c2d7ed4f9c1313e9/arana-0.0.2.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-03-14 21:10:00",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "fabriciofx",
"github_project": "arana",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"requirements": [
{
"name": "aiofiles",
"specs": [
[
"==",
"24.1.0"
]
]
},
{
"name": "anyio",
"specs": [
[
"==",
"4.6.2.post1"
]
]
},
{
"name": "astroid",
"specs": [
[
"==",
"3.3.8"
]
]
},
{
"name": "beautifulsoup4",
"specs": [
[
"==",
"4.12.3"
]
]
},
{
"name": "browserforge",
"specs": [
[
"==",
"1.1.2"
]
]
},
{
"name": "bs4",
"specs": [
[
"==",
"0.0.2"
]
]
},
{
"name": "certifi",
"specs": [
[
"==",
"2024.8.30"
]
]
},
{
"name": "charset-normalizer",
"specs": [
[
"==",
"3.4.0"
]
]
},
{
"name": "click",
"specs": [
[
"==",
"8.1.7"
]
]
},
{
"name": "click-completion",
"specs": [
[
"==",
"0.5.2"
]
]
},
{
"name": "colorama",
"specs": [
[
"==",
"0.4.6"
]
]
},
{
"name": "crayons",
"specs": [
[
"==",
"0.4.0"
]
]
},
{
"name": "dill",
"specs": [
[
"==",
"0.3.9"
]
]
},
{
"name": "fake_https_server",
"specs": [
[
"==",
"0.0.4"
]
]
},
{
"name": "greenlet",
"specs": [
[
"==",
"3.1.1"
]
]
},
{
"name": "h11",
"specs": [
[
"==",
"0.14.0"
]
]
},
{
"name": "html5lib",
"specs": [
[
"==",
"1.1"
]
]
},
{
"name": "httpcore",
"specs": [
[
"==",
"1.0.7"
]
]
},
{
"name": "httpx",
"specs": [
[
"==",
"0.27.2"
]
]
},
{
"name": "idna",
"specs": [
[
"==",
"3.10"
]
]
},
{
"name": "iniconfig",
"specs": [
[
"==",
"2.0.0"
]
]
},
{
"name": "isort",
"specs": [
[
"==",
"5.13.2"
]
]
},
{
"name": "Jinja2",
"specs": [
[
"==",
"3.1.5"
]
]
},
{
"name": "lxml",
"specs": [
[
"==",
"5.3.0"
]
]
},
{
"name": "markdown-it-py",
"specs": [
[
"==",
"3.0.0"
]
]
},
{
"name": "MarkupSafe",
"specs": [
[
"==",
"3.0.2"
]
]
},
{
"name": "mccabe",
"specs": [
[
"==",
"0.7.0"
]
]
},
{
"name": "mdurl",
"specs": [
[
"==",
"0.1.2"
]
]
},
{
"name": "orjson",
"specs": [
[
"==",
"3.10.11"
]
]
},
{
"name": "packaging",
"specs": [
[
"==",
"24.2"
]
]
},
{
"name": "platformdirs",
"specs": [
[
"==",
"4.3.6"
]
]
},
{
"name": "playwright",
"specs": [
[
"==",
"1.50.0"
]
]
},
{
"name": "playwright-stealth",
"specs": [
[
"==",
"1.0.6"
]
]
},
{
"name": "pluggy",
"specs": [
[
"==",
"1.5.0"
]
]
},
{
"name": "pycycle",
"specs": [
[
"==",
"0.0.8"
]
]
},
{
"name": "pyee",
"specs": [
[
"==",
"12.0.0"
]
]
},
{
"name": "Pygments",
"specs": [
[
"==",
"2.18.0"
]
]
},
{
"name": "pylint",
"specs": [
[
"==",
"3.3.3"
]
]
},
{
"name": "pytest",
"specs": [
[
"==",
"8.3.3"
]
]
},
{
"name": "pytest-base-url",
"specs": [
[
"==",
"2.1.0"
]
]
},
{
"name": "pytest-playwright",
"specs": [
[
"==",
"0.5.2"
]
]
},
{
"name": "python-slugify",
"specs": [
[
"==",
"8.0.4"
]
]
},
{
"name": "requests",
"specs": [
[
"==",
"2.32.3"
]
]
},
{
"name": "rich",
"specs": [
[
"==",
"13.9.4"
]
]
},
{
"name": "setuptools",
"specs": [
[
"==",
"75.6.0"
]
]
},
{
"name": "shellingham",
"specs": [
[
"==",
"1.5.4"
]
]
},
{
"name": "six",
"specs": [
[
"==",
"1.16.0"
]
]
},
{
"name": "sniffio",
"specs": [
[
"==",
"1.3.1"
]
]
},
{
"name": "soupsieve",
"specs": [
[
"==",
"2.6"
]
]
},
{
"name": "text-unidecode",
"specs": [
[
"==",
"1.3"
]
]
},
{
"name": "tomlkit",
"specs": [
[
"==",
"0.13.2"
]
]
},
{
"name": "typing_extensions",
"specs": [
[
"==",
"4.12.2"
]
]
},
{
"name": "urllib3",
"specs": [
[
"==",
"2.2.3"
]
]
},
{
"name": "webencodings",
"specs": [
[
"==",
"0.5.1"
]
]
}
],
"lcname": "arana"
}