Giter Site home page Giter Site logo

rbing's People

Contributors

johngibbs avatar mikedemers avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

rbing's Issues

How do I specify the return result's language

Dear Sir:
I use your rbing api, and I want to know how do I specify the return result's language. I check the code, and try add "language:en" but it seems not work. I want to know if there is any way to specify the return result's language. Many
thanks.

Yours sincerely

Altered Query

This isn't so much a bug as a problem that I couldn't solve by myself and was hoping you'd be able to help with:

It seems that, contrary to the docs, the Bing API does not automatically alter a query when it is misspelled. This means that RBing::web("Dha Dkan", :site => 'imdb.com/title') returns no results while the equivalent query on the Bing site (http://www.bing.com/search?q=dha+dkan+site%3Aimdb.com%2Ftitle&qs=HS&form=QBLH&pq=dha+dkan&sc=8-8&sp=1&sk=) returns the correct result at the first position.

My question is now how I can get RBing to return the results to the altered query where appropriate. Can I somehow set the AlteredQuery property (http://msdn.microsoft.com/en-us/library/dd250932.aspx) or is there some other way of accomplishing this?

uninitialized constant RBing

steps to reproduce error

gem install rbing

require 'rubygems' require 'rbing' bing = RBing.new("APPID")

doing so give me following error

    from /Users/bhushan/.rvm/rubies/ruby-1.8.7-p352/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in`gem_original_require'
    from /Users/bhushan/.rvm/rubies/ruby-1.8.7-p352/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `require'
    from rbing.rb:2

rbing needs to be updated to support the new Bing API

From their migration doc, here are the changes that need to happen.

Add EnableHighlighting options

Good day! How to add EnableHighlighting options? I tried
rsp = bing.web("Ruby", :Market => "en-Us",:Options => ["EnableHighlighting"] , :offset => 1, :count => 1)
but it doesn't work

Error 1002: Parameter has invalid value

I am getting an error "Errors"=>[{"Code"=>1002, "Message"=>"Parameter has invalid value.", "Parameter"=>"SearchRequest.AppId", "Value"=>"--------------------------", "HelpUrl"=>"http://msdn.microsoft.com/en-us/library/dd251042.aspx"}] ", key blanked out. Any ideas?

My code is just like the example given.

require 'rubygems'
require 'rbing'

bing = RBing.new('aaaaaaaaaaaaaaaaaaaaaaaaaaa')
rsp = bing.web("tommy lee jones")
p rsp

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.