mirror of
https://github.com/davegallant/rfd.git
synced 2025-08-05 16:23:40 +00:00
12b12c59140d9ceb7c8842606a90f3f11eb5e5cc
* Replace travis-ci with Actions * Update README.md * Add stdout to assertion failure
RFD
Hot deals on the command line.
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
All commands open up in a terminal pager.
View Hot Deals
rfd threads
View and Sort Hot Deals
rfd threads --sort-by score
To view and sort multiple pages, use --pages
:
rfd threads --sort-by views --pages 10
Simple Search
rfd search 'pizza'
Advanced Search
Regular expressions can be used for search.
rfd search '(coffee|starbucks)' --pages 10 --sort-by views
View Posts
It's possible to view an entire post and all comments by running:
rfd posts https://forums.redflagdeals.com/kobo-vs-kindle-2396227/
This allows for easy grepping and searching for desired expressions.
Shell Completion
Shell 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
Languages
Python
93.9%
Makefile
6.1%