Skip to content
This repository has been archived by the owner on Apr 21, 2021. It is now read-only.

Latest commit

 

History

History
39 lines (29 loc) · 919 Bytes

README.md

File metadata and controls

39 lines (29 loc) · 919 Bytes

puput

Puput is a tool to manage PR and PA

Installation

You can install it using pip install as usual:

pip install puput

Usage

Puput is intended to be used as a command:

$ puput <RSS URL>

The option --to-date limits the output to entries published in the last 24h:

$ puput --to-date <RSS URL>

The option --title-starts allows to specify a string the title must start with to be accepted:

$ puput --title-starts 'Hello' <RSS URL>

The option --format allows to specify a string, using Jinja2 templating system, to format the output based on the entry data:

$ puput --format '{{title}} {{link}}' <RSS URL>

Example

This is how puput is used to tweet job offers sent to the PyBCN mailing list, which is published as RSS:

$ puput <RSS URL> --to-date --title-starts 'Job Offer' --format '#pybcn #jobs {{title[11:]}} {{link}}'