cympfh / tw-clean

Keep Your Tweets Clean

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

tw-clean

Keep Your Tweets Clean

required

usage examples

tw-clean --name cympfh --margin 1800 --interval 60 --rule '.text | startswith("@")'

Remove all cympfh 's tweets (authorized in twurl) older than 1800 sec (=30min) and which matches the rule every 60 sec.

Rules

The rule is written in jq.

Examples

Remove all tweets without media/images

--rule (.extended_entities.media | length) == 0

Tweets (without media/images) OR (text starts with .)

--rule (.extended_entities.media | length) == 0 or (.text | startswith("."))

Tweets NOT (text start with @)

--rule (.text | startswith("@") | not)

tw-trim

Just Recent n tweets will remain.

About

Keep Your Tweets Clean


Languages

Language:Shell 100.0%