fq-logo qf

Travis Code Climate Gem

qf is a ruby gem that extracts specific substrings from a block of text. Examples of substrings are the following, but not limited to: emails, URIs, magnets links, ipv4, ipv6 addresses, etc.

Installation

Add this line to your application's Gemfile:

gem 'qf'

And then execute:

$ bundle

Or install it yourself as:

$ gem install qf

Usage

Usage: qf [filter]

Options
 -h, --help       Prints this help page
 -l, --list       Lists available filters

Examples
  qf url
  qf magnet
  qf creditcard
  qf creditcard:visa

This application standard input and output.

Examples

qf behaves like a standard unix application.

Let's say you want to extract URLs from a website:

curl kerembozdas.com | qf url

Or credit cards from some csv file:

cat customers.csv | qf creditcard

Emails from some contact page:

curl www.linux.com/contact | qf email

To see all the options you can use:

qf --list

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/krmbzds/qf.