{"id":14156549,"url":"https://github.com/danclaudiupop/robox","last_synced_at":"2026-01-18T12:46:05.799Z","repository":{"id":39439103,"uuid":"454469467","full_name":"danclaudiupop/robox","owner":"danclaudiupop","description":"Simple library for exploring/scraping the web or testing a website you’re developing","archived":false,"fork":false,"pushed_at":"2023-03-01T03:59:46.000Z","size":182,"stargazers_count":127,"open_issues_count":7,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-11-27T19:54:40.620Z","etag":null,"topics":["beautifulsoup","httpx","python","scraping"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/danclaudiupop.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2022-02-01T16:47:27.000Z","updated_at":"2025-08-20T21:00:31.000Z","dependencies_parsed_at":"2024-01-14T05:07:47.037Z","dependency_job_id":"ec6a5abd-29d1-48f3-a696-d5e9bcb93239","html_url":"https://github.com/danclaudiupop/robox","commit_stats":{"total_commits":40,"total_committers":2,"mean_commits":20.0,"dds":"0.050000000000000044","last_synced_commit":"e2c4203aade6401c206f5cfdfd55d1c8d94a7e5f"},"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/danclaudiupop/robox","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danclaudiupop%2Frobox","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danclaudiupop%2Frobox/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danclaudiupop%2Frobox/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danclaudiupop%2Frobox/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/danclaudiupop","download_url":"https://codeload.github.com/danclaudiupop/robox/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danclaudiupop%2Frobox/sbom","scorecard":{"id":318606,"data":{"date":"2025-08-11","repo":{"name":"github.com/danclaudiupop/robox","commit":"e2c4203aade6401c206f5cfdfd55d1c8d94a7e5f"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.6,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/27 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/ci.yml:1","Warn: no topLevel permission defined: .github/workflows/publish-pypi.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:9: update your workflow using https://app.stepsecurity.io/secureworkflow/danclaudiupop/robox/ci.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:12: update your workflow using https://app.stepsecurity.io/secureworkflow/danclaudiupop/robox/ci.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci.yml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/danclaudiupop/robox/ci.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:25: update your workflow using https://app.stepsecurity.io/secureworkflow/danclaudiupop/robox/ci.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci.yml:46: update your workflow using https://app.stepsecurity.io/secureworkflow/danclaudiupop/robox/ci.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/publish-pypi.yml:12: update your workflow using https://app.stepsecurity.io/secureworkflow/danclaudiupop/robox/publish-pypi.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/publish-pypi.yml:15: update your workflow using https://app.stepsecurity.io/secureworkflow/danclaudiupop/robox/publish-pypi.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/publish-pypi.yml:20: update your workflow using https://app.stepsecurity.io/secureworkflow/danclaudiupop/robox/publish-pypi.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/publish-pypi.yml:30: update your workflow using https://app.stepsecurity.io/secureworkflow/danclaudiupop/robox/publish-pypi.yml/main?enable=pin","Info:   0 out of   5 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   4 third-party GitHubAction dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: BSD 3-Clause \"New\" or \"Revised\" License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'main'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":1,"reason":"9 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: PYSEC-2024-48 / GHSA-fj7x-q9j7-g6q6","Warn: Project is vulnerable to: PYSEC-2024-230 / GHSA-248v-346w-9cwc","Warn: Project is vulnerable to: PYSEC-2022-42986 / GHSA-43fp-rhv2-5gv8","Warn: Project is vulnerable to: PYSEC-2023-135 / GHSA-xqr8-7jwr-rhp7","Warn: Project is vulnerable to: GHSA-vqfr-h8mv-ghfj","Warn: Project is vulnerable to: GHSA-h8pj-cxx2-jfg2","Warn: Project is vulnerable to: PYSEC-2024-60 / GHSA-jjg7-2v4v-x38h","Warn: Project is vulnerable to: PYSEC-2022-42969","Warn: Project is vulnerable to: PYSEC-2024-187 / GHSA-rqc4-2hc7-8c8v"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 5 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-18T00:52:34.391Z","repository_id":39439103,"created_at":"2025-08-18T00:52:34.391Z","updated_at":"2025-08-18T00:52:34.391Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28536041,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-18T10:13:46.436Z","status":"ssl_error","status_checked_at":"2026-01-18T10:13:11.045Z","response_time":98,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["beautifulsoup","httpx","python","scraping"],"created_at":"2024-08-17T08:06:17.526Z","updated_at":"2026-01-18T12:46:05.763Z","avatar_url":"https://github.com/danclaudiupop.png","language":"Python","funding_links":[],"categories":["scraping"],"sub_categories":[],"readme":"[![codecov](https://codecov.io/gh/danclaudiupop/robox/branch/main/graph/badge.svg?token=2DR9K7DR0V)](https://codecov.io/gh/danclaudiupop/robox)\n[![Language grade: Python](https://img.shields.io/lgtm/grade/python/g/danclaudiupop/robox.svg?logo=lgtm\u0026logoWidth=18)](https://lgtm.com/projects/g/danclaudiupop/robox/context:python)\n[![Run tests](https://github.com/danclaudiupop/robox/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/danclaudiupop/robox/actions/workflows/ci.yml)\n[![view examples](https://img.shields.io/badge/learn%20by-examples-0077b3.svg)](https://github.com/danclaudiupop/robox/tree/main/examples)\n[![PyPI version](https://badge.fury.io/py/robox.svg)](https://badge.fury.io/py/robox)\n\n## Overview\nRobox is a simple library with a clean interface for exploring/scraping the web or testing a website you’re developing. Robox can fetch a page, click on links and buttons, and fill out and submit forms. Robox is built on top of two excelent libraries: [httpx](https://www.python-httpx.org/) and [beautifulsoup4](https://www.crummy.com/software/BeautifulSoup/bs4/doc/).\n\n---\nRobox has all the standard features of httpx, including async, plus:\n- clean api\n- caching\n- downloading files\n- history\n- retry\n- parsing tables\n- understands robots.txt\n\n\n## Examples\n\n```python\nfrom robox import Robox\n\n\nwith Robox() as robox:\n    page = robox.open(\"https://httpbin.org/forms/post\")\n    form = page.get_form()\n    form.fill_in(\"custname\", value=\"foo\")\n    form.check(\"topping\", values=[\"Onion\"])\n    form.choose(\"size\", option=\"Medium\")\n    form.fill_in(\"comments\", value=\"all good in the hood\")\n    form.fill_in(\"delivery\", value=\"13:37\")\n    page = page.submit_form(form)\n    assert page.url == \"https://httpbin.org/post\"\n```\n\nor use async version:\n\n```python\nimport asyncio\n\nfrom pprint import pprint\nfrom robox import AsyncRobox\n\n\nasync def main():\n    async with AsyncRobox(follow_redirects=True) as robox:\n        page = await robox.open(\"https://www.google.com\")\n        form = page.get_form()\n        form.fill_in(\"q\", value=\"python\")\n        consent_page = await page.submit_form(form)\n        form = consent_page.get_form()\n        page = await consent_page.submit_form(form)\n        links = page.get_links()\n        pprint([link for link in links if \"Python\" in link.text])\n\n\nasyncio.run(main())\n```\n\nCaching can be easily configured via [httpx-cache](https://obendidi.github.io/httpx-cache/)\n\n```python\nfrom robox import Robox, DictCache, FileCache\n\n\nwith Robox(options=Options(cache=DictCache())) as robox:\n    p1 = robox.open(\"https://httpbin.org/get\")\n    assert not p1.from_cache\n    p2 = robox.open(\"https://httpbin.org/get\")\n    assert p2.from_cache\n```\n\nFailed requests that are potentially caused by temporary problems such as a connection timeout or HTTP 500 error can be retried:\n\n```python\nwith Robox(\n    options=Options(\n        retry=True,\n        retry_max_attempts=2,\n        raise_on_4xx_5xx=True,\n    )\n) as robox:\n    page = robox.open(\"https://httpbin.org/status/503,200\")\n    assert page.status_code == 200\n```\n\nParse tables with rowspan and colspan:\n```python\nwith Robox() as robox:\n    page = robox.open(\"https://html.com/tables/rowspan-colspan/\")\n    tables = page.get_tables()\n    for table in tables:\n        pprint(table.get_rows())\n```\n```bash\n[['65', '65', '40', '40', '20', '20'],\n ['Men', 'Women', 'Men', 'Women', 'Men', 'Women'],\n ['82', '85', '78', '82', '77', '81']]\n ...\n```\n\nAn example on how to reuse authentication state with cookies:\n```python\nwith Robox() as robox:\n    page = robox.open(\"https://news.ycombinator.com/login\")\n    form = page.get_forms()[0]\n    form.fill_in(\"acct\", value=os.getenv(\"PASSWORD\"))\n    form.fill_in(\"pw\", value=os.getenv(\"USERNAME\"))\n    page.submit_form(form)\n    robox.save_cookies(\"cookies.json\")\n\n\nwith Robox() as robox:\n    robox.load_cookies(\"cookies.json\")\n    page = robox.open(\"https://news.ycombinator.com/\")\n    assert page.parsed.find(\"a\", attrs={\"id\": \"logout\"})\n```\n\nSee [examples](https://github.com/danclaudiupop/robox/tree/main/examples) folder for more detailed examples.\n\n## Installation\n\nUsing pip:\n\n```sh\npip install robox\n```\n\nRobox requires Python 3.8+.\nSee [Changelog](https://github.com/danclaudiupop/robox/blob/main/CHANGELOG.md) for changes.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanclaudiupop%2Frobox","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdanclaudiupop%2Frobox","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanclaudiupop%2Frobox/lists"}