Htmlys is a free extension for PHP and Python that can parse HTML documents. Because it is compiled directly into binary code and interfaced through PHP or Python classes and functions, the tool offers great speed and efficiency and can be used easily from any PHP or Python script.