<commit_before>[![License][License-Image]][License-Url] [![Build][Build-Status-Image]][Build-Status-Url] [![Release][Release-Image]][Release-Url]
# s
Web search from the terminal. Just opens your default browser.

```
Usage:
  s <query> [flags]

Flags:
  -b, --binary string     binary to launch search uri
  -l, --list-providers    list supported providers
  -p, --provider string   set search provider (default "google")
  -v, --verbose           display url when opening
      --version           display version
```

## Install

```
go get -v github.com/zquestz/s
cd $GOPATH/src/github.com/zquestz/s
make
make install
```

## Examples

Search for puppies on google.
```
s puppies
```

Search for a wifi router on amazon
```
s -p amazon wifi router
```

Search for rhinos on wikipedia
```
s -p wikipedia rhinos
```

## Provider Expansion

We can do partial matching of provider names. This searches Facebook for hamsters.
```
s -p fa hamsters
```

Or toasters on amazon.
```
s -p am toasters
```

## Provider Autocompletion

Autocompletion for providers is supported. For setting up autocompletion:

1. Have `s` installed
2. Add the following lines to `~/.bash_profile` or `~/.zshrc`
```
if [ -f $GOPATH/src/github.com/zquestz/s/autocomplete/s-completion.bash ]; then
    . $GOPATH/src/github.com/zquestz/s/autocomplete/s-completion.bash
fi
```

Now you are good to go.
```
s -p ba<TAB><TAB>
baidu     bandcamp
```

## Advanced

Setup an alias in your `.profile` for your favorite providers.
```
alias sa="s -p amazon"
alias sw="s -p wikipedia"
```

Use w3m to find cats instead of just your default browser.
```
s -b w3m cats
```

Search for conspiracy theories in incognito mode.
```
s -b "chromium --incognito" conspiracy theories
```

## Supported Providers

* 8tracks
* amazon
* arxiv
* atmospherejs
* baidu
* bandcamp
* bing
* codepen
* coursera
* crunchyroll
* digg
* dockerhub
* dribbble
* duckduckgo
* dumpert
* facebook
* flickr
* flipkart
* foursquare
* gist
* github
* gmail
* go
* godoc
* google
* hackernews
* ietf
* ifttt
* imdb
* imgur
* kickasstorrents
* libgen
* linkedin
* macports
* mdn
* msdn
* nhaccuatui
* npm
* npmsearch
* nvd
* packagist
* php
* pinterest
* python
* quora
* reddit
* rubygems
* soundcloud
* spotify
* stackoverflow
* steam
* taobao
* thepiratebay
* twitchtv
* twitter
* unity3d
* vimeo
* wikipedia
* wolframalpha
* yahoo
* yandex
* youtube

#### Contributors

* [<NAME> (zquestz)](https://github.com/zquestz/)
* [<NAME> (fnky)](https://github.com/fnky/)
* [<NAME> (mbhinder)](https://github.com/mbhinder/)
* [<NAME> (KeizerDev)](https://github.com/KeizerDev/)
* [<NAME> (vekat)](https://github.com/vekat/)
* [<NAME> (tw4dl)](https://github.com/tw4dl/)
* [<NAME> (akb)](http://github.com/akb/)
* [<NAME> (djap96)](https://github.com/djap96/)
* [<NAME> (lkhamsurenl)](https://github.com/lkhamsurenl/)

#### License

s is released under the MIT license.

[License-Url]: http://opensource.org/licenses/MIT
[License-Image]: https://img.shields.io/npm/l/express.svg
[Build-Status-Url]: http://travis-ci.org/zquestz/s
[Build-Status-Image]: https://travis-ci.org/zquestz/s.svg?branch=master
[Release-Url]: https://github.com/zquestz/s/releases/tag/v0.2.0
[Release-image]: http://img.shields.io/badge/release-v0.2.0-1eb0fc.svg<commit_msg>Added back goreportcard badge<commit_after>[![License][License-Image]][License-Url] [![ReportCard][ReportCard-Image]][ReportCard-Url] [![Build][Build-Status-Image]][Build-Status-Url] [![Release][Release-Image]][Release-Url]
# s
Web search from the terminal. Just opens your default browser.

```
Usage:
  s <query> [flags]

Flags:
  -b, --binary string     binary to launch search uri
  -l, --list-providers    list supported providers
  -p, --provider string   set search provider (default "google")
  -v, --verbose           display url when opening
      --version           display version
```

## Install

```
go get -v github.com/zquestz/s
cd $GOPATH/src/github.com/zquestz/s
make
make install
```

## Examples

Search for puppies on google.
```
s puppies
```

Search for a wifi router on amazon
```
s -p amazon wifi router
```

Search for rhinos on wikipedia
```
s -p wikipedia rhinos
```

## Provider Expansion

We can do partial matching of provider names. This searches Facebook for hamsters.
```
s -p fa hamsters
```

Or toasters on amazon.
```
s -p am toasters
```

## Provider Autocompletion

Autocompletion for providers is supported. For setting up autocompletion:

1. Have `s` installed
2. Add the following lines to `~/.bash_profile` or `~/.zshrc`
```
if [ -f $GOPATH/src/github.com/zquestz/s/autocomplete/s-completion.bash ]; then
    . $GOPATH/src/github.com/zquestz/s/autocomplete/s-completion.bash
fi
```

Now you are good to go.
```
s -p ba<TAB><TAB>
baidu     bandcamp
```

## Advanced

Setup an alias in your `.profile` for your favorite providers.
```
alias sa="s -p amazon"
alias sw="s -p wikipedia"
```

Use w3m to find cats instead of just your default browser.
```
s -b w3m cats
```

Search for conspiracy theories in incognito mode.
```
s -b "chromium --incognito" conspiracy theories
```

## Supported Providers

* 8tracks
* amazon
* arxiv
* atmospherejs
* baidu
* bandcamp
* bing
* codepen
* coursera
* crunchyroll
* digg
* dockerhub
* dribbble
* duckduckgo
* dumpert
* facebook
* flickr
* flipkart
* foursquare
* gist
* github
* gmail
* go
* godoc
* google
* hackernews
* ietf
* ifttt
* imdb
* imgur
* kickasstorrents
* libgen
* linkedin
* macports
* mdn
* msdn
* nhaccuatui
* npm
* npmsearch
* nvd
* packagist
* php
* pinterest
* python
* quora
* reddit
* rubygems
* soundcloud
* spotify
* stackoverflow
* steam
* taobao
* thepiratebay
* twitchtv
* twitter
* unity3d
* vimeo
* wikipedia
* wolframalpha
* yahoo
* yandex
* youtube

#### Contributors

* [<NAME> (zquestz)](https://github.com/zquestz/)
* [<NAME> (fnky)](https://github.com/fnky/)
* [<NAME> (mbhinder)](https://github.com/mbhinder/)
* [<NAME> (KeizerDev)](https://github.com/KeizerDev/)
* [<NAME> (vekat)](https://github.com/vekat/)
* [<NAME> (tw4dl)](https://github.com/tw4dl/)
* [<NAME> (akb)](http://github.com/akb/)
* [<NAME> (djap96)](https://github.com/djap96/)
* [<NAME> (lkhamsurenl)](https://github.com/lkhamsurenl/)

#### License

s is released under the MIT license.

[License-Url]: http://opensource.org/licenses/MIT
[License-Image]: https://img.shields.io/npm/l/express.svg
[ReportCard-Url]: http://goreportcard.com/report/zquestz/s
[ReportCard-Image]: http://goreportcard.com/badge/zquestz/s
[Build-Status-Url]: http://travis-ci.org/zquestz/s
[Build-Status-Image]: https://travis-ci.org/zquestz/s.svg?branch=master
[Release-Url]: https://github.com/zquestz/s/releases/tag/v0.2.0
[Release-image]: http://img.shields.io/badge/release-v0.2.0-1eb0fc.svg
{'fraction_non_alphanumeric': 0.1611465914154166, 'fraction_numerical': 0.005940888162780335, 'mean_word_length': 3.911743253099927, 'pattern_counts': {'":': 0, '<': 27, '<?xml version=': 0, '>': 27, 'https://': 22, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '434730', 'n_tokens_mistral': 2643, 'n_tokens_neox': 2463, 'n_words': 619}