{"id":13418221,"url":"https://github.com/krmbzds/qf","last_synced_at":"2025-03-15T03:30:44.844Z","repository":{"id":56889777,"uuid":"50235201","full_name":"krmbzds/qf","owner":"krmbzds","description":"Extract substrings from a block of text","archived":true,"fork":false,"pushed_at":"2016-01-24T12:23:42.000Z","size":81,"stargazers_count":8,"open_issues_count":0,"forks_count":0,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-10-20T12:19:47.863Z","etag":null,"topics":["productivity-tools","regular-expressions","rubygem","search","substring-search","unix-command"],"latest_commit_sha":null,"homepage":"https://rubygems.org/gems/qf","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/krmbzds.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-01-23T11:14:32.000Z","updated_at":"2023-01-27T19:39:48.000Z","dependencies_parsed_at":"2022-08-21T00:50:22.136Z","dependency_job_id":null,"html_url":"https://github.com/krmbzds/qf","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krmbzds%2Fqf","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krmbzds%2Fqf/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krmbzds%2Fqf/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krmbzds%2Fqf/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/krmbzds","download_url":"https://codeload.github.com/krmbzds/qf/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243681024,"owners_count":20330152,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["productivity-tools","regular-expressions","rubygem","search","substring-search","unix-command"],"created_at":"2024-07-30T22:00:59.852Z","updated_at":"2025-03-15T03:30:44.827Z","avatar_url":"https://github.com/krmbzds.png","language":"Ruby","funding_links":[],"categories":["Uncategorized"],"sub_categories":["Uncategorized"],"readme":"# ![fq-logo][logo] qf\n\n[![Travis](https://img.shields.io/travis/krmbzds/qf.svg)](https://travis-ci.org/krmbzds/qf)\n[![Code Climate](https://img.shields.io/codeclimate/github/krmbzds/qf.svg)](https://codeclimate.com/github/krmbzds/qf)\n[![Gem](https://img.shields.io/gem/dv/qf/stable.svg)](https://rubygems.org/gems/qf)\n\n**qf** is a Ruby gem that extracts specific substrings from a block of text.\n\n**qf** is a productivity tool, it behaves like a standard Unix application and can be chained with other Unix commands.\n\nIt helps you extract:\n\n* Emails\n* URLs\n* Magnet Links\n* IPv4 \u0026 IPv6 Addressses\n* Credit Card Numbers\n\n.. and **much more** from any stream with flexibility and convenience.\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'qf'\n```\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install qf\n\n## Examples\n\n**qf** behaves like a standard Unix application.\n\nLet's say you want to extract URLs from a website:\n\n```sh\ncurl kerembozdas.com | qf url\n```\n\nEmails from some contact page:\n\n```sh\ncurl linux.com/contact | qf email\n```\n\nOr extract and save credit card numbers from a csv file:\n\n```sh\ncat customers.csv | qf creditcard \u003e customer_ccn.txt\n```\n\nTo see all the options you can use:\n\n```sh\nqf --list\n```\n\n## Usage\n\n```\nUsage: qf [filter]\n\nOptions\n -h, --help       Prints this help page\n -l, --list       Lists available filters\n\nExamples\n  qf url\n  qf magnet\n  qf creditcard\n  qf ipv4\n\nThis application uses standard input and output.\n```\n\n## Contributing\n\n1. Fork it (https://github.com/krmbzds/qf/fork)\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3. Commit your changes (`git commit -am 'Add some feature'`)\n4. Push to the branch (`git push origin my-new-feature`)\n5. Create a new Pull Request\n\n**Hint:** You can add new rules to the `rules.rb` file.\n\n## Trivia\n\n**qf** (pronounced as **/kjuː eff/**) is short for **quick fetch**, or **quick find**.  \nHowever, similar to how people pronounce **SQL** as **sequel**, the author likes to pronounce **qf** as **queef**. \n\n## License\n\nThe MIT License (MIT)  \nCopyright (c) 2016 Kerem Bozdas\n\n[logo]: http://i.imgur.com/PQxBoRI.png\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkrmbzds%2Fqf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkrmbzds%2Fqf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkrmbzds%2Fqf/lists"}