Skip to main content

Extract information from RSS feeds

Project description

# picot

Picot is a library to read, select and extract information from RSS feeds.

## Installation

You can install it using `pip install` as usual:
```bash
pip install picot
```

## Usage

### As a module

Picot is intended to be used mostly as a module, providing with some RSS feed goodies.
```python
import picot.feed

entries = picot.feed.Feed(url)
for entry in entries:
print(entry['title'])
```

#### Filter

In order to make filtering easier, you can provide `Feed` with a function determining what entries are selected:
```python
entries = picot.feed.Feed(url, filter_func=lambda x: x['title'].startswith('How to'))
```

#### Formatting

It provides with a formatting function, defining how entries are represented:
```python
entries = picot.feed.Feed(url, format_func=lambda x: '{} {}'.format(x['title'], x['link']))
```

### As a command

While 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>
```

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

picot-0.1.0.tar.gz (2.5 kB view details)

Uploaded Source

File details

Details for the file picot-0.1.0.tar.gz.

File metadata

  • Download URL: picot-0.1.0.tar.gz
  • Upload date:
  • Size: 2.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Python-urllib/3.6

File hashes

Hashes for picot-0.1.0.tar.gz
Algorithm Hash digest
SHA256 66acbfb62df537d34de6cbcad8c3030a5064373b917353d7dd14aebc80a4a947
MD5 c0cb750060c2c0762e7b18aef8d8016f
BLAKE2b-256 5ee0c5b7b57a926be80dbc494f66c3beee3b06c2a8df606c7eaef76f32682da3

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page