We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6db7999 commit 8613545Copy full SHA for 8613545
README.rst
@@ -213,7 +213,7 @@ You got to wrap the binary content with stream to get html working:
213
>>> # In reality, you might deal with html file upload
214
>>> # where you will read from requests.FILES['YOUR_HTML_FILE']
215
>>> htmlfile = "your_file.html"
216
- >>> with open(htmlfile, "rb") as f:
+ >>> with open(htmlfile, "r") as f:
217
... content = f.read()
218
... r = pe.get_book(file_type="html", file_content=content)
219
... print(r)
0 commit comments