<commit_before># Hckr

Browse Hackernews from the command line. Or get some JSON.

## Installation

Add this line to your application's Gemfile:

    gem 'hckr'

And then execute:

    $ bundle

Or install it yourself as:

    $ gem install hckr

## Usage

### Via CLI
```hckr```

#### Options:
* ```home```, ```-h``` or ```--home``` returns links from the Show HN page
* ```show```, ```-s``` or ```--show``` returns links from the Show HN page
* ```jobs```, ```-j``` or ```--jobs``` returns links from the jobs section
* ```newest```, ```-n``` or ```--newest``` returns links from the newest section
* ```best```, ```-b``` or ```--best``` returns links from the best section
* ```help``` or ```--help``` sends help

When ran without any arguments, returns links from the home page.

### Return JSON
You can call the ```Hckr::JsonBuilder``` like:

```ruby
Hckr::JsonBuilder.new(page: :jobs).build!
```

which will return a JSON of the jobs HN page.


## Contributing

1. Fork it ( http://github.com/fteem/hckr/fork )
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)<commit_msg>fix: readme formatting<commit_after># Hckr

Browse Hackernews from the command line. Or get some JSON.

## Installation

Add this line to your application's Gemfile:

    gem 'hckr'

And then execute:

    $ bundle

Or install it yourself as:

    $ gem install hckr

## Usage

### Via CLI
```hckr```

#### Options:

* ```home```, ```-h``` or ```--home``` returns links from the Show HN page
* ```show```, ```-s``` or ```--show``` returns links from the Show HN page
* ```jobs```, ```-j``` or ```--jobs``` returns links from the jobs section
* ```newest```, ```-n``` or ```--newest``` returns links from the newest section
* ```best```, ```-b``` or ```--best``` returns links from the best section
* ```help``` or ```--help``` sends help

When ran without any arguments, returns links from the home page.

### Return JSON
You can call the ```Hckr::JsonBuilder``` like:

```ruby
Hckr::JsonBuilder.new(page: :jobs).build!
```

which will return a JSON of the jobs HN page.


## Contributing

1. Fork it ( http://github.com/fteem/hckr/fork )
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
{'fraction_non_alphanumeric': 0.18708881578947367, 'fraction_numerical': 0.003289473684210526, 'mean_word_length': 3.905241935483871, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5636634', 'n_tokens_mistral': 829, 'n_tokens_neox': 789, 'n_words': 323}