https://github.com/enderahmetyurt/hurriyet-cli
A Ruby CLI for Hurriyet
https://github.com/enderahmetyurt/hurriyet-cli
cli hurriyet ruby-cli ruby-gem
Last synced: 5 months ago
JSON representation
A Ruby CLI for Hurriyet
- Host: GitHub
- URL: https://github.com/enderahmetyurt/hurriyet-cli
- Owner: enderahmetyurt
- License: mit
- Created: 2016-09-01T14:55:45.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2018-10-28T19:28:44.000Z (about 7 years ago)
- Last Synced: 2025-07-26T19:43:57.780Z (5 months ago)
- Topics: cli, hurriyet, ruby-cli, ruby-gem
- Language: Ruby
- Homepage: https://rubygems.org/gems/hurriyet_cli
- Size: 40 KB
- Stars: 14
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# HurriyetCli
A Ruby CLI for [Hurriyet Public API]( http://developers.hurriyet.com.tr/).
## Installation
Add this line to your application's Gemfile:
```ruby
gem 'hurriyet_cli'
```
And then execute:
$ bundle
Or install it yourself as:
$ gem install hurriyet_cli
## Usage
Export your ```HURRIYET_API_KEY``` that you get from [https://developers.hurriyet.com.tr](https://developers.hurriyet.com.tr)
```bash
$ export HURRIYET_API_KEY=
```
```bash
$ hurriyet_cli articles # Fetch all articles
$ hurriyet_cli articles --top 5 # Fetch top 5 articles
```
## Thanks
* [Yiğit Özkavcı](https://github.com/yigitozkavci/) for Ruby Hurriyet API Wrapper.
* [Hamdi Akoğuz](https://github.com/Hamdiakoguz) for his advices.
## License
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).