spotlight
Version, currently master branch1 version
- master branchlatestNov 11, 2019
github.com/watzon/spotlight
Search engine parsing for Crystal
10 stars
0 dependents
License: MIT
Installation
# Add this to your shard.yml
dependencies:
spotlight:
github: watzon/spotlight
branch: mastermaster is a branch, not a release, so this tracks it rather than pinning a version.
Then run:
shards installshard.yml
- Crystal
0.31.1- License
- MIT
- Author
- Chris Watson
Dependencies
Runtime Dependencies
- halite*github: icyleaf/halite, branch: master
README
Spotlight
Search engine parsing for Crystal. Inspired by the search-engine-parser Python library. Currently includes support for:
- Bing
- DuckDuckGo
Installation
-
Add the dependency to your
shard.yml:dependencies: spotlight: github: watzon/spotlight -
Run
shards install
Usage
require "spotlight"
ddg = Spotlight::DuckDuckGo.new
ddg.search("crystal language")
# => [#<Spotlight::Result:0x7fd6a131f090
# @desc= "Type system. Crystal is statically type checked, so any type errors will be caught early by the compiler rather than fail on runtime. Moreover, and to keep the language clean, Crystal has built-in type inference, so most type annotations are unneeded.",
# @link="https://crystal-lang.org/",
# @title="Crystal">, ...]
Contributing
- Fork it (https://github.com/watzon/spotlight/fork)
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create a new Pull Request
Contributors
- Chris Watson - creator and maintainer
Documentation
Built from the current release. The first visit to a release nobody has asked for starts its build.
Links
This branch
- Branch
master- Seen
- Nov 11, 2019
- Crystal
0.31.1- Indexed
- yes
Dependents
No indexed shard depends on this one yet.
Repository
github.com/watzon/spotlight
Metadata
- Created
- Aug 12, 2026
- Updated
- Oct 15, 2026
- Synced
- Oct 15, 2026
- Versions
- 1