GithubHelp home page GithubHelp logo

crag's Introduction

Crag

crag is a command-line rust based application and library for acessing (google) search results.

crag example

Quickstart: CLI

If you already have rust and cargo installed, you can install crag directly from crates.io:

cargo install --features=cli crag

Usage

To search with crag, just run crag [SEARCH], and wait for the results -- it's really that simple.

crag mountain-climbing

Of course, crag also supports several flags that modify the results returned by your search. The tool ships with built-in help text that describes the various options:

crag --help
...

Quickstart: Lib

Add crag to your project in your Cargo.toml:

crag = "0.4.0"

Usage

From a high level, crag uses search engine implementations to execute search queries and return a vector of results. Queries, engine settings, and search results are all static types; the actual search engine used should be interchangeable for any given query.

So if you want to point crag at your custom searx server, it's as simple as implementing the Soap trait for that engine.

crag also provides search implementations out-of-the-box, so you can get to searching:

Check out the API docs for usage examples and detailed information: https://docs.rs/crag

Overview

Features

  • Searches things (from the command line!)
  • Clean search result display
  • Cross-platform
  • Integrates with your project as a library
  • Optional interactive search result navigation
  • Supports multiple search engines
  • ...

Alternatives

  • googler: The de facto standard (and probably best) command line google application, but it is currently archived.

crag's People

Contributors

mlsvrts avatar mr6r4y avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.