{"id":32175260,"url":"https://github.com/spumer/fastsoup","last_synced_at":"2026-02-19T08:03:12.108Z","repository":{"id":18633415,"uuid":"82951823","full_name":"spumer/FastSoup","owner":"spumer","description":"BeautifulSoup interface for lxml","archived":false,"fork":false,"pushed_at":"2024-11-28T06:42:06.000Z","size":103,"stargazers_count":4,"open_issues_count":2,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-07-13T02:03:05.537Z","etag":null,"topics":["beautifulsoup","fast","html","lxml","parser","python3"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/spumer.png","metadata":{"files":{"readme":"README.rst","changelog":null,"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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-02-23T17:16:48.000Z","updated_at":"2024-11-28T06:42:04.000Z","dependencies_parsed_at":"2024-11-28T07:26:31.043Z","dependency_job_id":"5d17351f-ddc1-4628-8c9b-8423fc30bea0","html_url":"https://github.com/spumer/FastSoup","commit_stats":{"total_commits":48,"total_committers":5,"mean_commits":9.6,"dds":0.5208333333333333,"last_synced_commit":"0980a5f62cdd8e493068ac0224958436eadb8eb8"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/spumer/FastSoup","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spumer%2FFastSoup","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spumer%2FFastSoup/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spumer%2FFastSoup/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spumer%2FFastSoup/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/spumer","download_url":"https://codeload.github.com/spumer/FastSoup/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spumer%2FFastSoup/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":280322665,"owners_count":26311106,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-21T02:00:06.614Z","response_time":58,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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","fast","html","lxml","parser","python3"],"created_at":"2025-10-21T19:30:33.227Z","updated_at":"2025-10-21T19:31:24.934Z","avatar_url":"https://github.com/spumer.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\nFastSoup \n========\n\n.. image:: https://travis-ci.org/spumer/FastSoup.svg\n    :target: https://travis-ci.org/spumer/FastSoup\n    :alt: Build Status\n\n.. image:: https://coveralls.io/repos/github/spumer/FastSoup/badge.svg\n    :target: https://coveralls.io/github/spumer/FastSoup\n\n=====================================================================================================================================================\n\nBeautifulSoup interface for lxml\n\nKey features\n============\n\n\n* **FAST** search in tree\n* **FAST** serialize to str\n* BeautifulSoup4 interface to interact with object:\n\n  * Search: ``find``\\ , ``find_all``\\ , ``find_next``\\ , ``find_next_sibling``\n  * Text: ``get_text``\\ , ``string``\n  * Tag: ``name``\\ , ``get``\\ , ``clear``\\ , ``__getitem__``\\ , ``__str__``, ``__repr__``, ``append``, ``new_tag``, ``extract``, ``replace_with``\n\nInstall\n-------\n\n.. code-block:: bash\n\n   pip install fast-soup==1.1.0\n\nHow to use\n----------\n\n.. code-block:: python\n\n   from fast_soup import FastSoup\n\n   content = ...  # read some html content\n   soup = FastSoup(content)\n\n   # interact like BS4 object\n   result = soup.find('a', id='my_link')\n\n   # interact like lxml object\n   el = result.unwrap()\n\nFAQ\n===\n\n**Q:** BS4 already implement lxml parser. Why i should use FastSoup?\n\n**A:** Yes, BS4 implement **parser**\\ , and it's just building the tree. All next interactions proceed with \"Python speed\":\nsearching, serialization.\nFastSoup internally use lxml and guarantee \"C speed\".\n\n**Q:** How FastSoup speedup works?\n\n**A:** FastSoup just build **xpath** and execute them. For prevent rebuilding LRU cache used.\n\n**Q:** Why you don't support whole interface? This will be soon?\n\n**A:** I wrote functions which speed up parsing in my projects. Just create a issue or pull request and i think we find the solution ;)\n\nMiscellaneous\n-------------\n\nYou can got power of BeautifulSoup when wrap your lxml objects, e.g:\n\n.. code-block:: python\n\n   from fast_soup import Tag\n\n   content = ...  # some bytes ready to parse\n   context = lxml.etree.iterparse(\n       io.BytesIO(content),  ...\n   )\n   for event, elem in context:\n       tag = Tag(elem)\n\n       tag_text = tag.get_text()\n       tag_attr = tag['attribute']\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspumer%2Ffastsoup","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fspumer%2Ffastsoup","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspumer%2Ffastsoup/lists"}