GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Merge pull request #132 from azmeuk/readme · lsx88so/python-readability@5a74140

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • README.rst
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎README.rst‎

Copy file name to clipboardExpand all lines: README.rst
+6-6Lines changed: 6 additions & 6 deletions
  • Display the source diff
  • Display the rich diff
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)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.