
Security News
Astral Launches pyx: A Python-Native Package Registry
Astral unveils pyx, a Python-native package registry in beta, designed to speed installs, enhance security, and integrate deeply with uv.
= yboss
yboss is a ruby library for the Yahoo BOSS API (http://developer.yahoo.com/boss/search/)
== Usage
=== Configuration
require 'yboss'
YBoss::Config.instance.oauth_key = 'your consumer_key here' YBoss::Config.instance.oauth_secret = 'your consumer_secret here'
YBoss::Config.instance.proxy = 'http://your.proxy-address.com:3128/'
=== Parameters
You may use the same parameter names that are documented in the Boss API Guide at http://developer.yahoo.com/boss/search/boss_api_guide/.
=== The web search service
res = YBoss.web('q' => 'tuscany')
res.responsecode
200 res.start 0 res.count 20 res.totalresults 576
res.items.each do |i| puts "#{i.url}: #{i.title}, #{i.abstract}" puts " date: #{i.date}" puts " clickurl: #{i.clickurl}" puts " dispurl: #{i.dispurl}" end
=== The limitedweb search service
res = YBoss.limitedweb('q' => 'tuscany')
The result has the same methods as the web result
=== The image search service
res = YBoss.images('q' => 'ford mustang')
res.responsecode
200 res.start 0 res.count 35 res.totalresults 19400
res.items.each do |i| puts "#{i.url}: #{i.title} (#{i.size}, #{i.format})" puts " size: #{i.width}x#{i.height}" puts " clickurl: #{i.clickurl}" puts " refererclickurl: #{i.refererclickurl}" puts " refererurl: #{i.refererurl}" puts " thumbnailheight: #{i.thumbnailheight}" puts " thumbnailurl: #{i.thumbnailurl}" end
=== The news search service
res = YBoss.news('q' => 'Mercedes Benz')
res.responsecode
200 res.start 0 res.count 50 res.totalresults 492
res.items.each do |i| puts "#{i.url}: #{i.title}" puts " abstract: #{i.abstract}" puts " clickurl: #{i.clickurl}" puts " language: #{i.language}" puts " date: #{Time.at(i.date)}" puts " source: #{i.source}" puts " sourceurl: #{i.sourceurl}" end
=== The blog search service
res = YBoss.blogs('q' => 'Mercedes Benz')
res.responsecode
200 res.start 0 res.count 20 res.totalresults 17016
res.items.each do |i| puts "#{i.dispurl}: #{i.title}" puts " abstract: #{i.abstract}" puts " clickurl: #{i.clickurl}" puts " keyterms: #{i.keyterms}" puts " date: #{i.date}" puts " author: #{i.author}" puts " icon: #{i.icon}" puts " score: #{i.score}" end
=== The spelling service
res = YBoss.spelling('q' => 'gruffaloe')
res.responsecode
200 res.start 0 res.count 1 res.totalresults 1
res.items.each do |i| puts i.suggestion end
=== The related [also try] service
res = YBoss.related('q' => 'gruffalo')
res.responsecode
200 res.start 0 res.count 4 res.totalresults 4
res.items.each do |i| puts i.suggestion end
== Contributing to yboss
== Copyright
Copyright (c) 2013 Tobias Begalke. See LICENSE.txt for further details.
FAQs
Unknown package
We found that yboss 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
Astral unveils pyx, a Python-native package registry in beta, designed to speed installs, enhance security, and integrate deeply with uv.
Security News
The Latio podcast explores how static and runtime reachability help teams prioritize exploitable vulnerabilities and streamline AppSec workflows.
Security News
The latest Opengrep releases add Apex scanning, precision rule tuning, and performance gains for open source static code analysis.