Skip to main content
Python Software Foundation 20th Year Anniversary Fundraiser  Donate today!

Slurp packages Beautifulsoup4 into command line.

Project description

Slurp the beautiful soup
===============

BeautifulSoup4 packaged into a command line tool.


Installation
---------

From the Python package index (Pypi_):

(sudo) pip install beautifulsoup4-slurp

or from Github_:

git clone https://github.com/peterhil/slurp.git
cd slurp
(sudo) python setyp.py install


Usage
-----

Show help:

slurp -h

Parse with html5lib and pretty print into stdout:

slurp -i bookmarks.html -p 'html5lib' -y

Parse with lxml and pretty print into stdout:

slurp -i bookmarks.html -p 'lxml' -y

Write pretty-printed to output to file:

slurp -y -i bookmarks.html -o bookmarks_soup.html

Pipe into slurp:

echo '<title>Slurp!</title><p><a href="https://github.com/peterhil/slurp/">Github</a>' | slurp -y


.. _Github: https://github.com/peterhil/slurp/
.. _Pypi: http://pypi.python.org/pypi/beautifulsoup4-slurp


License
------

Copyright (c) 2015, Peter Hillerström <peter.hillerstrom@gmail.com>
All rights reserved. This software is licensed under MIT license.

For the full copyright and license information, please view the LICENSE
file that was distributed with this source code.

Project details


Download files

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

Files for beautifulsoup4-slurp, version 0.0.2
Filename, size File type Python version Upload date Hashes
Filename, size beautifulsoup4-slurp-0.0.2.tar.gz (3.0 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page