summaryrefslogtreecommitdiff
path: root/README.txt
diff options
context:
space:
mode:
Diffstat (limited to 'README.txt')
-rw-r--r--README.txt26
1 files changed, 26 insertions, 0 deletions
diff --git a/README.txt b/README.txt
new file mode 100644
index 0000000..ff83212
--- /dev/null
+++ b/README.txt
@@ -0,0 +1,26 @@
+Introduction
+============
+
+ >>> from beautifulsoup import BeautifulSoup
+ >>> soup = BeautifulSoup("<p>Some<b>bad<i>HTML")
+ >>> print soup.prettify()
+ <html>
+ <body>
+ <p>
+ Some
+ <b>
+ bad
+ <i>
+ HTML
+ </i>
+ </b>
+ </p>
+ </body>
+ </html>
+ >>> soup.find(text="bad")
+ u'bad'
+
+ >>> soup.i
+ <i>HTML</i>
+
+