{"id":23552276,"url":"https://github.com/onyazuka/htmlparser","last_synced_at":"2026-05-03T05:40:03.070Z","repository":{"id":144020653,"uuid":"182776793","full_name":"onyazuka/HTMLParser","owner":"onyazuka","description":"HTML parser written in Python","archived":false,"fork":false,"pushed_at":"2020-02-25T12:57:38.000Z","size":13,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-05-15T17:13:48.064Z","etag":null,"topics":["dom","html","javascript","parser","python","python3"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/onyazuka.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2019-04-22T12:03:18.000Z","updated_at":"2020-02-25T12:57:41.000Z","dependencies_parsed_at":null,"dependency_job_id":"98e9c3dd-36d3-41b5-8223-52f048c16a80","html_url":"https://github.com/onyazuka/HTMLParser","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onyazuka%2FHTMLParser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onyazuka%2FHTMLParser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onyazuka%2FHTMLParser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onyazuka%2FHTMLParser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/onyazuka","download_url":"https://codeload.github.com/onyazuka/HTMLParser/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254384985,"owners_count":22062422,"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","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":["dom","html","javascript","parser","python","python3"],"created_at":"2024-12-26T11:10:02.602Z","updated_at":"2026-05-03T05:40:03.021Z","avatar_url":"https://github.com/onyazuka.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# HTMLParser\nHTML parser written in Python\n\nIt implements most of needed functions for convenient working with HTML DOM.\n\n## Features\n- Parsing from string or from URL(with or without connection);\n- All DOM readonly functions;\n- CSS query selectors;\n\n## Warnings\nWhen using querySelect, please keep in mind some differences from native CSS selectors:\n- when using selectors like querySelectorAll(\"input[type='text']\"), attribute value should always be quoted;\n- when using complex selectors like querySelectorAll(\"div \u003e li \u003e div\"), there should be at least one space between each selector and operator.\n\n## Usage\nFrom URL:\n\n```python\n  from parser import *\n  dom = HTMLDomParser(PARSER_MODE[\"URL\"], \"http://my_favourite_web_site.zzz\")\n  doc = dom.getDocument()\n  divs = doc.getElementsByTagName(\"div\")\n  firstDiv = divs[0]\n  firstDivFirstChild = firstDiv.firstElementChild()\n  secondDiv = divs[1]\n  secondDiv2 = firstDiv.nextElementSibling()\n\n  navs = doc.getElementsByClassName(\"nav\")\n\n  classyDivs = doc.querySelectorAll(\"div[class]\")\n  divLiDiv = doc.querySelectorAll(\"div \u003e li \u003e div\")\n\n  ...\n```\n\nOr from string:\n\n```python\n  from parser import *\n  dom = HTMLDomParser(PARSER_MODE[\"RAW\"], \"\u003chtml\u003e\u003chead\u003e...\u003c/head\u003e\u003cbody\u003e...\u003c/body\u003e\u003c/html\u003e\")\n```\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fonyazuka%2Fhtmlparser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fonyazuka%2Fhtmlparser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fonyazuka%2Fhtmlparser/lists"}