Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
The API client for the BBC News Labs Juicer API.
NOTE: the Juicer is an experiment run by the BBC News Labs. The API may change without notice, there are no uptime, reliability guarantees. Please take this as experimental sofware in front of experimental API.
Add this line to your application's Gemfile:
gem 'juicer-client'
And then execute:
$ bundle
Or install it yourself as:
$ gem install juicer-client
Using the library is very simple. You'll need to obtain an API key from
BBC Developer Portal by signing up
and registering a new app for the bbcrd-juicer-apis
product in the
API listing.
Once you have obtained an API key and have installed the gem, you can
use it by requiring the juicer
library and instantiating it with
your API key:
require 'juicer'
juicer = Juicer.new("<your API key>")
Have a look at the documentation for the library on how to filter articles, find similar content, etc.
juicer.products
=> ["NewsWeb", "Twitter", "Monitoring", "TheMirror", "Jupiter", "TheGuardian", ...]
juicer.articles({text: "London",
product: ["NewsWeb"],
published_after: "2014-10-14"})
=> [{"title"=>"London Market Report",
"description"=>"London Market Report",
"cps_id"=>"news_web_0962731f8c375d5096590ca38cee96e0e408180d",
"published"=>"2014-10-14T08:14:07.000Z",
"url"=>"http://www.bbc.co.uk/news/business-29610241#sa-ns_mchannel=rss&ns_source=PublicRSS20-sa",
"highlight"=>false,
"source"=>"NewsWeb",
"format"=>"TextualFormat",
"image"=>nil,
"themes"=>[],
"people"=>[],
"places"=>[],
"organisations"=>[{"kind"=>"Organisation", "name"=>"Burberry", ..}]},
{...}]
juicer.similar_articles("news_web_0962731f8c375d5096590ca38cee96e0e408180d")
=> [{"score"=>1.8277457,
"title"=>"Mulberry profit warning hits shares",
"cps_id"=>"20038835",
"created_at"=>"2012-10-23T12:58:45.247Z",
"published_at"=>"2012-10-23T11:57:37Z",
"url"=>"http://www.bbc.co.uk/news/business-20038835"},
{...}]
git checkout -b my-new-feature
)git commit -am 'Add some feature'
)git push origin my-new-feature
)FAQs
Unknown package
We found that juicer-client demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.