8000 Merge pull request #132 from azmeuk/readme · Harry0201/python-readability@5a74140 · GitHub
[go: up one dir, main page]

Skip to content

Commit 5a74140

Browse files
authored
Merge pull request buriy#132 from azmeuk/readme
Syntax highlight the README
2 parents 07f6861 + 0556abb commit 5a74140

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

README.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,29 +15,29 @@ Installation
1515

1616
It'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
----------

0 commit comments

Comments
 (0)
0