https://github.com/rickbutton/articulus
https://github.com/rickbutton/articulus
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/rickbutton/articulus
- Owner: rickbutton
- Created: 2012-07-19T03:08:26.000Z (almost 13 years ago)
- Default Branch: master
- Last Pushed: 2012-07-25T01:43:47.000Z (almost 13 years ago)
- Last Synced: 2025-02-12T23:29:22.553Z (5 months ago)
- Language: Ruby
- Size: 113 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Articulus
This gem is a small library that allows for news-article parsing, simple as that.
The only currently supported backend is the [DiffBot](http://diffbot.com) engine## Installation
Add this line to your application's Gemfile:
gem 'articulus'
And then execute:
$ bundle
Or install it yourself as:
$ gem install articulus
## Usage
Usage of Articulus will be slightly different depending on the backend used. Some backends have more or less features.
### DiffBot
Articulus.backend = :diffbot
article = Articulus.parse("http://news.somewebsite.com/article.html", :token => "DIFFBOT_TOKEN")
puts article[:title]
puts article[:textDiffBot also provides an option to view their confidence rating on an article. Just set `:stats` to `true` in the `parse` method.
article = Articulus.parse("http://news.somewebsite.com/article.html", :token => "DIFFBOT_TOKEN", :stats => true)
confidence = article[:confidence]## Contributing
1. Fork it
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Added some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new Pull Request