picot 0.1.0

Creator: railscoder56

Last updated:

Add to Cart

Description:

picot 0.1.0

# picotPicot is a library to read, select and extract information from RSS feeds.## InstallationYou can install it using `pip install` as usual:```bashpip install picot ```## Usage### As a modulePicot is intended to be used mostly as a module, providing with some RSS feed goodies.```pythonimport picot.feedentries = picot.feed.Feed(url)for entry in entries: print(entry['title'])```#### FilterIn order to make filtering easier, you can provide `Feed` with a function determining what entries are selected:```pythonentries = picot.feed.Feed(url, filter_func=lambda x: x['title'].startswith('How to'))```#### FormattingIt provides with a formatting function, defining how entries are represented:```pythonentries = picot.feed.Feed(url, format_func=lambda x: '{} {}'.format(x['title'], x['link']))```### As a commandWhile intended to be used as a library, Picot can be invoked as a command line tool to get the titles of the entries in an RSS:```bash$ picot <RSS URL>```

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Customer Reviews

There are no reviews.