Skip to content

Commit 94f1a66

Browse files
authored
Updated readme: updated to requests.content
Requests.content is preferred over requests.text, as it's more reliable
1 parent 65f2f13 commit 94f1a66

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ Usage
3535
>>> from readability import Document
3636
3737
>>> response = requests.get('http://example.com')
38-
>>> doc = Document(response.text)
38+
>>> doc = Document(response.content)
3939
>>> doc.title()
4040
'Example Domain'
4141

0 commit comments

Comments
 (0)