{
 "kind": "tool",
 "slug": "html5lib",
 "path": "tools/html5lib/",
 "name": "html5lib",
 "maker": null,
 "density": "basic",
 "crumbs": [
  [
   "Tools",
   "tools/"
  ],
  [
   "Scraping, browsers and parsing",
   "tools/scraping-parsing/"
  ]
 ],
 "lead": "HTML parser based on WHATWG specification for parsing and processing HTML.",
 "chips": [
  {
   "label": "Scraping, browsers and parsing",
   "path": "tools/scraping-parsing/"
  },
  {
   "label": "PYPI"
  }
 ],
 "primary": {
  "label": "Copy install command",
  "copy": "pip install html5lib"
 },
 "links": [
  {
   "label": "GitHub",
   "href": "https://github.com/html5lib/html5lib-python"
  },
  {
   "label": "Website",
   "href": "https://github.com/html5lib/html5lib-python"
  }
 ],
 "track": "New versions, deprecation and license changes on your dashboard",
 "verdicts": [
  {
   "key": "license",
   "label": "License",
   "value": "MIT",
   "status": "yes",
   "sub": "Use it in paid apps",
   "quote": null,
   "note": "License from PyPI classifier.",
   "src": "https://github.com/html5lib/html5lib-python"
  },
  {
   "key": "maint",
   "label": "Maintained",
   "value": "Maintained",
   "status": "yes",
   "sub": "Last change Apr 21, 2026",
   "note": "",
   "src": "https://github.com/html5lib/html5lib-python"
  },
  {
   "key": "pop",
   "label": "Used by agents' projects",
   "value": "8 projects",
   "status": "info",
   "sub": "#40 of 140 in its category",
   "note": "Dependency in 8 public GitHub projects set up for AI coding agents that we scanned (0.1%).",
   "src": null
  },
  {
   "key": "agent",
   "label": "Agent access",
   "value": "Install only",
   "status": "info",
   "sub": null,
   "note": "Agent skills for this library in the skills catalog; community skills are written by others, read them before you install.",
   "src": null
  }
 ],
 "vfoot": "From the package registry and GitHub, checked daily.",
 "blocks": [
  {
   "id": "overview",
   "nav": "Overview",
   "h2": "What html5lib does",
   "parts": [
    {
     "t": "prose",
     "text": "HTML parser based on WHATWG specification for parsing and processing HTML."
    }
   ]
  },
  {
   "id": "popularity",
   "nav": "Popularity",
   "h2": "html5lib popularity",
   "parts": [
    {
     "t": "stats",
     "items": [
      {
       "n": "57",
       "of": "/ 100",
       "l": "Gid Score, #1183 overall"
      },
      {
       "n": "7M",
       "l": "downloads a week, pypi"
      },
      {
       "n": "1,221",
       "l": "GitHub stars"
      },
      {
       "n": "8",
       "l": "agent projects use it"
      }
     ]
    },
    {
     "t": "small",
     "text": "Gid Score measures public popularity and activity, not quality.",
     "link": "How the Gid Score is calculated",
     "path": "tools/top/"
    }
   ]
  },
  {
   "id": "usage",
   "nav": "How it is used",
   "h2": "How html5lib is used",
   "parts": [
    {
     "t": "list",
     "items": [
      "html5lib is a dependency in 8 of the 6,254 public GitHub projects set up for AI coding agents that we scanned, too few to describe it from them alone. Our scan also samples projects by dependency (Solana 3,063, Ethereum and EVM 1,777, 3D and games 3,120, agent frameworks and SDKs 13,629); counting those, it appears in 237 projects, and what it is used with below comes from all of them.",
      "The most used alternative in our scan is Beautiful Soup (135 projects).",
      "Projects that use it most often also use Beautiful Soup (94.1%), lxml (92.8%), NumPy (92.0%)."
     ]
    },
    {
     "t": "h3",
     "text": "By coding agent"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "6 projects, 0.2%",
       "v": "GitHub Copilot",
       "path": "agents/github-copilot/"
      }
     ]
    },
    {
     "t": "h3",
     "text": "Often used with"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "In 94.1% of its projects",
       "v": "Beautiful Soup",
       "path": "tools/beautifulsoup4/"
      },
      {
       "l": "In 92.8% of its projects",
       "v": "lxml",
       "path": "tools/lxml/"
      },
      {
       "l": "In 92.0% of its projects",
       "v": "NumPy",
       "path": "tools/numpy/"
      },
      {
       "l": "In 89.0% of its projects",
       "v": "Click",
       "path": "tools/click-py/"
      },
      {
       "l": "In 88.6% of its projects",
       "v": "Jinja2",
       "path": "tools/jinja2/"
      },
      {
       "l": "In 87.3% of its projects",
       "v": "MarkupSafe",
       "path": "tools/markupsafe/"
      },
      {
       "l": "In 85.2% of its projects",
       "v": "attrs",
       "path": "tools/attrs/"
      },
      {
       "l": "In 85.2% of its projects",
       "v": "Pillow",
       "path": "tools/pillow/"
      }
     ]
    }
   ]
  },
  {
   "id": "more",
   "nav": null,
   "spy_as": "usage",
   "h2": "More about html5lib",
   "parts": [
    {
     "t": "more",
     "items": [
      {
       "title": "More in Scraping, browsers and parsing",
       "path": "tools/scraping-parsing/",
       "items": [
        {
         "text": "Puppeteer",
         "path": "tools/puppeteer/"
        },
        {
         "text": "Playwright Core",
         "path": "tools/playwright-core/"
        },
        {
         "text": "Cheerio",
         "path": "tools/cheerio/"
        },
        {
         "text": "Playwright (Python)",
         "path": "tools/playwright/"
        },
        {
         "text": "fast-xml-parser",
         "path": "tools/fast-xml-parser/"
        },
        {
         "text": "jsonc-parser",
         "path": "tools/jsonc-parser/"
        },
        {
         "text": "Mozilla Readability",
         "path": "tools/mozilla-readability/"
        },
        {
         "text": "linkedom",
         "path": "tools/linkedom/"
        }
       ]
      }
     ]
    }
   ]
  },
  {
   "id": "alternatives",
   "nav": "Alternatives",
   "h2": "Alternatives",
   "parts": [
    {
     "t": "alts",
     "items": [
      {
       "name": "html5lib",
       "me": true,
       "facts": [
        "MIT",
        "Gid 57",
        "7M/wk"
       ]
      },
      {
       "name": "Beautiful Soup",
       "why": "Python HTML/XML parsing and screen-scraping library for web data extraction.",
       "path": "tools/beautifulsoup4/",
       "facts": [
        "MIT",
        "Gid 78",
        "73.9M/wk"
       ]
      },
      {
       "name": "lxml",
       "why": "High-performance XML and HTML processing library combining libxml2/libxslt with Python.",
       "path": "tools/lxml/",
       "facts": [
        "BSD-3-Clause",
        "Gid 73",
        "98M/wk"
       ]
      }
     ],
     "more": "Compare html5lib with another tool",
     "more_path": "tools/compare/"
    }
   ]
  },
  {
   "id": "start",
   "nav": "Get started",
   "h2": "Get started",
   "parts": [
    {
     "t": "install",
     "intro": "Install it.",
     "code": "pip install html5lib"
    },
    {
     "t": "gap",
     "text": "No step-by-step start for html5lib yet: we have not written its hand-checked card."
    }
   ]
  }
 ],
 "glance": [
  [
   "Package",
   "pypi html5lib"
  ],
  [
   "Category",
   "Scraping, browsers and parsing"
  ],
  [
   "License",
   "MIT"
  ],
  [
   "Gid Score",
   "56.8"
  ],
  [
   "Rank in category",
   "#40 of 140"
  ],
  [
   "GitHub",
   "html5lib/html5lib-python"
  ],
  [
   "Last change",
   "Apr 21, 2026"
  ]
 ],
 "good": [],
 "checked_line": "From the package registry, GitHub and our scan of public agent projects; numbers update daily.",
 "logo": "https://agentgid.com/media/avatars/html5lib.png"
}