Readme Module¶
Everything except for configuration.
Models¶
- class readme.models.Item(*args, **kwargs)[source]¶
Entry in the read-it-later-list
- created = None¶
param created Creating date of the item
- fetch_article()[source]¶
Fetches a title and a readable_article for the current url. It uses the scrapers module for this and only downloads the content.
- owner¶
param owner Owning user
- readable_article = None¶
param readable_article Processed content of the url
- safe_article = None¶
param safe_article Escaped and stripped of tags
param tags User assigned tags
- title = None¶
param title Page title
- url = None¶
param url Page url
Scrapers¶
- exception readme.scrapers.ParserException[source]¶
Generic exception for parsers/scrapers. Indicates that a scraper cannot succeed.
- readme.scrapers.domain_parser(domain)[source]¶
Decorator to register a domain specific parser
Parameters: domain – String Returns: function
- readme.scrapers.parse(item, content_type, text=None, content=None)[source]¶
Scrape info from an item
Parameters: - content_type – mime type
- text – unicode text
- content – byte string
- item – Item