README: update python lib instructions

master
pictuga 2020-04-27 18:12:14 +02:00
parent 818cdaaa9b
commit 4a9b505499
1 changed files with 2 additions and 1 deletions

View File

@ -246,10 +246,11 @@ url = 'http://newspaper.example/feed.xml'
options = morss.Options(csv=True) # arguments options = morss.Options(csv=True) # arguments
morss.crawler.sqlite_default = '/tmp/morss-cache.db' # sqlite cache location morss.crawler.sqlite_default = '/tmp/morss-cache.db' # sqlite cache location
url = morss.UrlFix(url) # make sure the url is properly formatted
rss = morss.FeedFetch(url, options) # this only grabs the RSS feed rss = morss.FeedFetch(url, options) # this only grabs the RSS feed
rss = morss.FeedGather(rss, url, options) # this fills the feed and cleans it up rss = morss.FeedGather(rss, url, options) # this fills the feed and cleans it up
output = morss.Format(rss, options) # formats final feed output = morss.FeedFormat(rss, options, 'unicode') # formats final feed
``` ```
## Cache information ## Cache information