Skip to content

Rustik/yareq

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Yareq

This gem demonstrate how to query yandex search engine via http and parse results.

Installation

Add this line to your application's Gemfile:

gem 'yareq', github: 'Rustik/yareq'

# dependencies -- because I didn't submit it into RubyGems I don't need to build it with it's dependencies
gem 'curb'
gem 'nokogiri'
gem 'addressable'

And then execute:

$ bundle
$ bundle exec yareq

Usage

Using command line:

$ bundle exec yareq

Inside your app:

require 'yareq'
y = Yareq::Request.new "ford", { lr: "2" }
y.process #=> [array of links]

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

About

this gem demonstrate how to send requests to yandex search engine and retrieve results with Ruby

Resources

License

Stars

1 star

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages