mirror of
https://github.com/davegallant/rfd.git
synced 2025-08-06 00:33:40 +00:00
* Cleanup CLI interface and allow for regular expressions in search * Put a cap on beautifulsoup4
66 lines
1.4 KiB
Markdown
66 lines
1.4 KiB
Markdown
# RFD
|
|
|
|
Hot deals on the command line.
|
|
|
|
[](https://travis-ci.org/davegallant/rfd)
|
|
[](https://badge.fury.io/py/rfd)
|
|
[](https://dependabot.com/)
|
|
[](https://lgtm.com/projects/g/davegallant/rfd/alerts/)
|
|
[](https://lgtm.com/projects/g/davegallant/rfd/context:python)
|
|
|
|
|
|

|
|
|
|
|
|
## Install
|
|
|
|
```bash
|
|
pip install rfd
|
|
```
|
|
|
|
## Usage
|
|
|
|
```shell
|
|
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
|
|
```shell
|
|
rfd threads
|
|
```
|
|
|
|
### search for pizza
|
|
```shell
|
|
rfd search 'pizza'
|
|
```
|
|
|
|
## Tab Completion
|
|
|
|
To enable:
|
|
|
|
### bash
|
|
|
|
```bash
|
|
echo 'eval "$(_RFD_COMPLETE=source rfd)"' >> ~/.profile
|
|
```
|
|
|
|
### zsh
|
|
|
|
|
|
```zsh
|
|
echo 'eval "$(_RFD_COMPLETE=source_zsh rfd)"' >> ~/.zshrc
|
|
```
|