libearth.defaults
— Default data for initial state of apps¶
New in version 0.4.0.
This module provides small utilities and default data to fill initial state of Earth Reader apps.
-
class
libearth.defaults.
BlogrollLinkParser
¶ HTML parser that find all blogroll links.
-
libearth.defaults.
get_default_subscriptions
(blogroll_url='http://earthreader.org/')¶ Suggest the default set of subscriptions. The blogroll database will be remotely downloaded from Earth Reader website.
>>> subs = get_default_subscriptions() >>> subs <libearth.subscribe.SubscriptionList 'Feeds related to the Earth Reader project' of Earth Reader Team <earthreader@librelist.com>>
Parameters: blogroll_url ( str
) – the url to download blogroll opml. default is the official website of earth readerReturns: the default subscription list Return type: SubscriptionList