Skip to main content

RFD

PyPI version Dependabot Downloads

Description

This is a CLI utility that allows you to view RedFlagDeals.com on the command line.

screenshot

Motivation

It is often faster to use a CLI than to load up a web page and navigate web elements. This tool can search for deals and sort them based on score and views. It is also able to load entire threads (without pagination) for additional analysis.

Installation

pip

pip3 install --user rfd

This can also be installed with pipx.

brew

If you have brew:

brew install davegallant/public/rfd

Usage

All commands open up in a terminal pager.

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.

View Hot Deals

To view the threads on most popular sub-forum:

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

Search

rfd search 'pizza'

Regex

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.

JSON Output

All commands support JSON output.

For example:

rfd threads --output json

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

Release files for rfd 0.9.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for rfd 0.9.0
File Size Uploaded
rfd-0.9.0.tar.gz 20.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for rfd 0.9.0
File Interpreter ABI Platform
rfd-0.9.0-py3-none-any.whl Python 3 none any Details

Total release size: 41.1 kB

Release files / rfd-0.9.0.tar.gz

Download URL rfd-0.9.0.tar.gz
Size 20.4 kB
Tags Source
SHA-256 checksum
How to use checksums
4abd7e338ffdfd1369cfd85651215a0a0c1c27ad7a6aebbcbd4a767338f3cb76
BLAKE2b-256 checksum
How to use checksums
548121432e7e50f0bd6313dcad2c1803f890dbd99e64438ea5c7ee9c8794d068
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.13

Release files / rfd-0.9.0-py3-none-any.whl

Download URL rfd-0.9.0-py3-none-any.whl
Size 20.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
81936f3f0fa90887fa67e5c9e3f9e03af2bb0af48784c94b40b29c1e9360aad2
BLAKE2b-256 checksum
How to use checksums
93608bcdb557d4c5b3228c83a527c6559c6033b50028b6a98fe2f9df2ffaeca3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.13

Release history Release notifications | RSS feed

This release

0.9.0 This release

2 release files

0.8.1

2 release files

0.8.0

2 release files

0.7.2

2 release files

0.7.1

2 release files

0.7.0

2 release files

0.6.0

1 release file

0.5.0

1 release file

0.4.1

1 release file

0.4.0

1 release file

0.3.6

1 release file

0.3.5

1 release file

0.3.4

1 release file

0.3.3

1 release file

0.3.2

1 release file

0.3.1

1 release file

0.3.0

1 release file

0.2.1

1 release file

0.2.0

1 release file

0.1.8

1 release file

0.1.7

1 release file

0.1.6

1 release file

0.1.5

1 release file

0.1.4

1 release file

0.1.3

1 release file

0.1.2

1 release file

0.1.1

1 release file

0.1.0

1 release file

0.0.8

1 release file

0.0.7

1 release file

0.0.6

1 release file

0.0.5

1 release file

0.0.4

1 release file

0.0.3

1 release file

0.0.2

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page