UniNews
University news from Greek and international universities in one place
Loading...
Searching...
No Matches
uninews.fetchers.rss.RssFetcher Class Reference
Inheritance diagram for uninews.fetchers.rss.RssFetcher:
uninews.fetchers.base.Fetcher

Public Member Functions

list[dict] fetch_raw (self)
 
- Public Member Functions inherited from uninews.fetchers.base.Fetcher
 __init_subclass__ (cls, **kwargs)
 
 __init__ (self, str publisher, str category, dict config)
 
str __repr__ (self)
 
list[Article] fetch (self)
 
requests.Response request (self, str url)
 
str get_html (self, str url)
 

Static Public Attributes

str fetcher_type = "rss"
 
- Static Public Attributes inherited from uninews.fetchers.base.Fetcher
ClassVar fetcher_type = ""
 
tuple required_keys = ("label", "url")
 
dict registry = {}
 

Additional Inherited Members

- Public Attributes inherited from uninews.fetchers.base.Fetcher
 publisher
 
 category
 
 config
 

Detailed Description

JSON keys: label, url

Member Function Documentation

◆ fetch_raw()

list[dict] uninews.fetchers.rss.RssFetcher.fetch_raw (   self)
Return dicts with 'title' and 'link'.

Optional keys: 'published', 'summary', 'image_url'.
Links and image URLs may be relative.

Reimplemented from uninews.fetchers.base.Fetcher.

Member Data Documentation

◆ fetcher_type

str uninews.fetchers.rss.RssFetcher.fetcher_type = "rss"
static

The documentation for this class was generated from the following file: