parent
b03d865b7b
commit
11923e0a6d
|
@ -101,12 +101,12 @@ import morss
|
||||||
url = 'http://newspaper.example/feed.xml'
|
url = 'http://newspaper.example/feed.xml'
|
||||||
options = morss.Options(['force', 'quiet']) # arguments
|
options = morss.Options(['force', 'quiet']) # arguments
|
||||||
cache_path = '/tmp/morss-cache' # cache folder, needs write permission
|
cache_path = '/tmp/morss-cache' # cache folder, needs write permission
|
||||||
url, cache = Init(url, cache_path, options)
|
url, cache = morss.Init(url, cache_path, options)
|
||||||
|
|
||||||
rss = Fetch(url, cache, options) # this only grabs the RSS feed
|
rss = morss.Fetch(url, cache, options) # this only grabs the RSS feed
|
||||||
rss = Gather(rss, url, cache, options) # this fills the feed and cleans it up
|
rss = morss.Gather(rss, url, cache, options) # this fills the feed and cleans it up
|
||||||
|
|
||||||
output = After(rss, options) # formats final feed
|
output = morss.After(rss, options) # formats final feed
|
||||||
```
|
```
|
||||||
|
|
||||||
##Cache information
|
##Cache information
|
||||||
|
|
Loading…
Reference in New Issue