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.
===============
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file beautifulsoup4-slurp-0.0.2.tar.gz
.
File metadata
- Download URL: beautifulsoup4-slurp-0.0.2.tar.gz
- Upload date:
- Size: 3.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 354d08cf1026a3f71ce52860d2f6aedceed3494b0533313510dc815ba6766006 |
|
MD5 | 6bd3ec9cec1ac9b75805981fe14b0662 |
|
BLAKE2b-256 | 1697e9249e347cd2c6da18909f973370e31a9b457c702390208776b12e1c31ad |