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 <cawatson1993@gmail.com>
Dependencies
Runtime Dependencies
- halite*github: icyleaf/halite, branch: master
README
# Spotlight
Search engine parsing for Crystal. Inspired by the [search-engine-parser](https://github.com/bisoncorps/search-engine-parser) Python library. Currently includes support for:
- Google
- Bing
- DuckDuckGo
## Installation
1. Add the dependency to your `shard.yml`:
```yaml
dependencies:
spotlight:
github: watzon/spotlight
```
2. Run `shards install`
## Usage
```crystal
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
1. Fork it (<https://github.com/watzon/spotlight/fork>)
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create a new Pull Request
## Contributors
- [Chris Watson](https://github.com/watzon) - 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
- Aug 13, 2026
- Synced
- Aug 13, 2026
- Versions
- 1