Dave Gallant b30a3c5b66 Set default of threads command to 1 page and 40 threads (#80)
* Set default of threads command to 1 page and 40 threads

* Echo posts in a pager
2020-08-16 15:07:48 -04:00
2020-07-01 18:54:52 -04:00
2019-10-04 21:06:53 -04:00
2018-03-07 23:57:52 -05:00
2020-08-15 20:55:10 -04:00
2019-10-17 22:50:52 -04:00
2020-08-03 19:13:46 -04:00
2019-10-17 22:50:52 -04:00
2020-08-03 15:48:39 -04:00
2019-10-17 22:50:52 -04:00

RFD

Hot deals on the command line.

Build Status PyPI version Dependabot Downloads

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 views --limit 40
$ rfd search 'pizza'

Regular expressions can be used for search.

$ rfd search '(coffee|starbucks)' --pages 10 --sort-by views

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
Description
view RedFlagDeals.com from the command line
Readme GPL-3.0 1.3 MiB
Languages
Python 93.9%
Makefile 6.1%