Skip to content

Commit 096d4db

Browse files
committed
Added usage
1 parent f55f16b commit 096d4db

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

README

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,10 @@ Based on:
1313
- Ruby port by starrhorne and iterationlabs
1414
- Python port by gfxmonk ( https://github.com/gfxmonk/python-readability , based on BeautifulSoup )
1515
- Decruft effort to move to lxml ( http://www.minvolai.com/blog/decruft-arc90s-readability-in-python/ )
16+
17+
Usage:
18+
19+
import urllib
20+
html = urllib.urlopen(url).read()
21+
readable_article = Document(html).summary()
22+
readable_title = Document(html).short_title()

0 commit comments

Comments
 (0)