From 11bf07d42a19fb8dfd1607af303a8e273e8c8aa2 Mon Sep 17 00:00:00 2001 From: Leonard Richardson Date: Sun, 6 Oct 2019 10:46:16 -0400 Subject: Simplified the README to satisfy pypi's restructuredText parser. --- README.md | 70 +++++++++++++++++++++++++++++++-------------------------------- 1 file changed, 35 insertions(+), 35 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index b84f237..49a2c8e 100644 --- a/README.md +++ b/README.md @@ -5,39 +5,39 @@ idioms for iterating, searching, and modifying the parse tree. # Quick start ``` - >>> from bs4 import BeautifulSoup - >>> soup = BeautifulSoup("

SomebadHTML") - >>> print soup.prettify() - - -

- Some - - bad - - HTML - - -

- - - >>> soup.find(text="bad") - u'bad' - - >>> soup.i - HTML - - >>> soup = BeautifulSoup("SomebadXML", "xml") - >>> print soup.prettify() - - - Some - - bad - - XML - - +>>> from bs4 import BeautifulSoup +>>> soup = BeautifulSoup("

SomebadHTML") +>>> print soup.prettify() + + +

+Some + +bad + +HTML + + +

+ + +>>> soup.find(text="bad") +u'bad' +>>> soup.i +HTML +# +>>> soup = BeautifulSoup("SomebadXML", "xml") +# +>>> print soup.prettify() + + +Some + +bad + +XML + + ``` To go beyond the basics, [comprehensive documentation is available](http://www.crummy.com/software/BeautifulSoup/bs4/doc/). @@ -89,11 +89,11 @@ documentation. Beautiful Soup supports unit test discovery from the project root directory: ``` - $ nosetests +$ nosetests ``` ``` - $ python -m unittest discover -s bs4 +$ python -m unittest discover -s bs4 ``` If you checked out the source tree, you should see a script in the -- cgit v1.2.3