Files
rfd/README.md
Dave Gallant 20089bc699 Add --sort-by flag to threads sub-command (#75)
* Add --sort-by flag to threads sub-command

* Add some sanity test commands to tox
2020-08-02 19:30:04 -04:00

1.6 KiB

RFD

Hot deals on the command line.

Build Status PyPI version Dependabot Language grade: Python

screenshot

Install

pip install rfd

Usage

Usage: rfd [OPTIONS] COMMAND [ARGS]...

  CLI for https://forums.redflagdeals.com

Options:
  -v, --version
  --help         Show this message and exit.

Commands:
  posts    Display all posts in a thread.
  search   Search deals based on a regular expression.
  threads  Displays threads in the forum. Defaults to hot deals.

Examples

View Hot Deals

$ rfd threads

View and Sort Hot Deals

$ rfd threads --sort-by score
$ rfd threads --sort-by total_views --limit 40
$ rfd search 'pizza'

Regular expressions can be used for search.

$ rfd search '(coffee|starbucks)' --num-pages 100

Shell Completion

Completion can be enabled if using bash or zsh.

bash

$ echo 'eval "$(_RFD_COMPLETE=source rfd)"' >> ~/.profile

zsh

$ echo 'eval "$(_RFD_COMPLETE=source_zsh rfd)"' >> ~/.zshrc