8000 Update README.rst · Harry0201/python-readability@de20908 · GitHub
[go: up one dir, main page]

Skip to content

Commit de20908

Browse files
authored
Update README.rst
1 parent 4fa85d2 commit de20908

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

README.rst

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,16 @@ Usage
2424

2525
::
2626

27-
>> import requests
28-
>> from readability import Document
29-
>>
30-
>> response = requests.get('http://example.com')
31-
>> doc = Document(response.text)
32-
>> doc.title()
33-
>> 'Example Domain'
34-
>> doc.summary()
35-
>> u'<html><body><div><body id="readabilityBody">\n<div>\n <h1>Example Domain</h1>\n
27+
>>> import requests
28+
>>> from readability import Document
29+
30+
>>> response = requests.get('http://example.com')
31+
>>> doc = Document(response.text)
32+
>>> doc.title()
33+
'Example Domain'
34+
35+
>>> doc.summary()
36+
u'<html><body><div><body id="readabilityBody">\n<div>\n <h1>Example Domain</h1>\n
3637
<p>This domain is established to be used for illustrative examples in documents. You may
3738
use this\n domain in examples without prior coordination or asking for permission.</p>
3839
\n <p><a href="http://www.iana.org/domains/example">More information...</a></p>\n</div>

0 commit comments

Comments
 (0)
0