File: http-features.rst

package info (click to toggle)
listparser 0.20-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 964 kB
  • sloc: xml: 1,228; python: 818; makefile: 4
file content (21 lines) | stat: -rw-r--r-- 573 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
HTTP Features
=============

If the requests package is installed, listparser will be able to accept HTTP and HTTPS URL's for parsing.
For example:

..  code-block:: pycon

    >>> result = listparser.parse("https://domain.example/feeds.opml")

A 30-second timeout is set on all requests.

If requests is not installed, listparser will return a dictionary with the following data:

..  code-block:: pycon

    >>> listparser.parse("https://domain.example/feeds.opml")
    {
        'bozo': 1,
        'bozo_exception': ListparserError('requests is not installed...')
    }