8000 GitHub - longform/biffbot: ruby api for diffbot's article extractor
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

longform/biffbot

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Biffbot

Ruby gem to connect to diffbot's article api

Installation

Add this line to your application's Gemfile:

gem 'biffbot'

And then execute:

$ bundle

Or install it yourself as:

$ gem install biffbot

Usage

Usage example:

biff = Biffbot::Base.new("your developer token")
article = biff.parse("the url you want to parse",options)

You can use the options hash to set the following: tags, stats, dontStripAds, comments, summary, html

example:

options = Hash.new
options[:tags] = true
options[:stats] = true
biff = Biffbot::Base.new("your developer token")
article = biff.parse("the url you want to parse",options)

Contributing

  1. Fork it
  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)
  5. Create new Pull Request

About

ruby api for diffbot's article extractor

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Ruby 100.0%
0