File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -15,29 +15,29 @@ Installation
1515
1616It's easy using ``pip ``, just run:
1717
18- ::
18+ .. code-block :: bash
1919
2020 $ pip install readability-lxml
2121
2222 Usage
2323-----
2424
25- ::
25+ .. code-block :: python
2626
2727 >> > import requests
2828 >> > from readability import Document
29-
29+
3030 >> > response = requests.get(' http://example.com' )
3131 >> > doc = Document(response.text)
3232 >> > doc.title()
3333 ' Example Domain'
34-
34+
3535 >> > doc.summary()
36- u' <html><body><div><body id="readabilityBody">\n<div>\n <h1>Example Domain</h1>\n
36+ """ <html><body><div><body id="readabilityBody">\n <div>\n <h1>Example Domain</h1>\n
3737 <p>This domain is established to be used for illustrative examples in documents. You may
3838 use this\n domain in examples without prior coordination or asking for permission.</p>
3939 \n <p><a href="http://www.iana.org/domains/example">More information...</a></p>\n </div>
40- \n</body>\n</div></body></html>'
40+ \n </body>\n </div></body></html>"""
4141
4242 Change Log
4343----------
You can’t perform that action at this time.
0 commit comments