Skip to main content

High performance HTML parser built on lxml

Project description

pho is a library built on lxml, and implements the [Beautiful Soup]( apis. It is meant to be a drop in replacement for BS.

BS is an awesome library for parsing and navigating DOM. But, because it tries to do a lot, it exhibits fairly poor performance. See [this post]( to see that directly using lxml over soup could give up to 70x speed improvement.

Pho aims to ease the transition from soup to using pure lxml, by implementing a part of the soup API as thin wrapper on lxml. Though I don’t have rigorous benchmarks, I have seen 10-30x performance improvement from using pho.


To install requests, simply:

$ pip install pho

Pho tries to pip install lxml, and for lxml you will need the following packages installed in your system.


import pho import requests



You can see the code [here](>)

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
pho-0.0.1.tar.gz (1.8 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page