Skip to main content

view RedFlagDeals.com from the command line

Project description

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'

Advanced

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

rfd-0.8.0.tar.gz (19.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

rfd-0.8.0-py3-none-any.whl (20.3 kB view details)

Uploaded Python 3

File details

Details for the file rfd-0.8.0.tar.gz.

File metadata

  • Download URL: rfd-0.8.0.tar.gz
  • Upload date:
  • Size: 19.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for rfd-0.8.0.tar.gz
Algorithm Hash digest
SHA256 727600550901a398c3827a098c63568b0d8d13083b0737c08fd7a108dd757172
MD5 0cc6fd74fa05a2b66b0aaeb65ed241e4
BLAKE2b-256 df0a93fe3fc1261550ad4e684a6f4bdba7dc1b365489a21b71f1463d53b13499

See more details on using hashes here.

File details

Details for the file rfd-0.8.0-py3-none-any.whl.

File metadata

  • Download URL: rfd-0.8.0-py3-none-any.whl
  • Upload date:
  • Size: 20.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for rfd-0.8.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1527db15c24d4dcb7efd99814b9cff51b78279227920f5ab1dd5cc55301c704b
MD5 8a3f88e04bfb17eca0e2679c407af998
BLAKE2b-256 ee91febee757bff71677092641e050155df2755d1bcbecdcc260346d1e0aab27

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page