Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/stevesoltys/duckduckgo
An unofficial DuckDuckGo search API.
https://github.com/stevesoltys/duckduckgo
api duckduckgo scraper search unofficial
Last synced: about 2 months ago
JSON representation
An unofficial DuckDuckGo search API.
- Host: GitHub
- URL: https://github.com/stevesoltys/duckduckgo
- Owner: stevesoltys
- License: mit
- Created: 2016-04-05T23:25:51.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2024-02-19T22:27:46.000Z (11 months ago)
- Last Synced: 2024-10-31T13:13:51.772Z (3 months ago)
- Topics: api, duckduckgo, scraper, search, unofficial
- Language: Ruby
- Homepage: http://www.rubydoc.info/gems/duckduckgo/0.1.7
- Size: 36.1 KB
- Stars: 9
- Watchers: 3
- Forks: 11
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# DuckDuckGo
An unofficial DuckDuckGo search API.
## Installation
Add this line to your application's Gemfile:
```ruby
gem 'duckduckgo'
```And then execute:
$ bundle
Or install it yourself as:
$ gem install duckduckgo
## Usage
Using this library is very simple. Here's an example:
```ruby
#!/usr/bin/env rubyrequire 'duckduckgo'
results = DuckDuckGo::search(:query => 'Apples')
result = results.firstresult.uri
# => "https://en.wikipedia.org/wiki/Apple"result.title
# => "Apple - Wikipedia, the free encyclopedia"result.description
# => "The apple tree (Malus domestica) is a deciduous tree in the rose family best known for its sweet, pomaceous fruit, the apple. It is cultivated worldwide as a fruit ..."
```## Development
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
## Contributing
Bug reports and pull requests are welcome on GitHub at https://github.com/stevesoltys/duckduckgo. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
## License
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).