Sha256: d298f5bfe094453c1f620d644ee02e9648f63fabd8d588bc6915c28c37a3d3ba
Contents?: true
Size: 1.3 KB
Versions: 1
Compression:
Stored size: 1.3 KB
Contents
# zoomeye-rb [](https://travis-ci.com/ninoseki/zoomeye-rb) [](https://coveralls.io/github/ninoseki/zoomeye-rb?branch=master) [](https://www.codefactor.io/repository/github/ninoseki/zoomeye-rb) [ZoomEye](https://www.zoomeye.org/) API wrapper for Ruby. ## Installation ```bash gem install zoomeye ``` ## Usage ```ruby require "zoomeye" # when given nothing, it tries to load your usernamem & password via ENV["ZOOMEYE_USERNAME"] and ENV["ZOOMEYE_PASSWORD"] api = ZoomEye::API.new # or you can set them manually api = ZoomEye::API.new(username: "USERNAME", password: "PASSWORD") # Host search api.host.search("port:80 nginx") api.host.search("port:80 nginx", page: 7, facets: "app,device") # Web search api.web.search("wordpress") api.web.search("wordpress", page: 1, facets: "app.os") # Resource info api.resource_info.get ``` ## Contributing Bug reports and pull requests are welcome on GitHub at https://github.com/ninoseki/zoomeye-rb. ## License The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
zoomeye-rb-0.1.1 | README.md |