Skip to main content
Donate to the Python Software Foundation or Purchase a PyCharm License to Benefit the PSF! Donate Now

A kitchen for (beautiful) soup

Project description

.. This README is meant for consumption by humans and pypi. Pypi can render rst files so please do not use Sphinx features.
If you want to learn more about writing documentation, please check out:
This text does not appear on pypi or github. It is a comment.


This package tackles "soup", i.e. trees which are created by the well-known
beautifulsoup4 package from parsed HTML or XML sources.
It might be possible to accomplish the same by using lxml directly,
but it might have been more difficult, and thus it is left to another


- ``spoons`` module, for tackling "soup", e.g.

- ``has_any_class`` (a filter function to check for one of the given classes)

- ``forks`` module
(named mainly for historical reasons; for poking around in the soup), e.g.
``extract_linktext``, ``convert_dimension_styles``

- ``ids`` module, for creation of new ids for HTML elements

- ``id_factory``::

new_id = id_factory(...)
id = new_id(prefix)


This add-on can be seen in action at the following sites:



For now, the functions are documented by doctests.


Install by adding it to your buildout::



eggs =

and then running ``bin/buildout``


- Issue Tracker:
- Source Code:


If you are having issues, please let us know;
please use the issue tracker mentioned above.


The project is licensed under the GPLv2.

.. vim: tw=79 cc=+1 sw=4 sts=4 si et


- Tobias Herp,


1.0.dev2 (2018-09-17)

- License changed to GPL v2

1.0.dev1 (2018-07-09)

- Initial release.

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 (35.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