crawlora-duckduckgo 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +1 -1
- data/README.md +15 -2
- data/lib/crawlora/duckduckgo/client.rb +1 -1
- data/lib/crawlora/duckduckgo/version.rb +1 -1
- metadata +5 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: eae9de6d2801a04401d8b336fa3e6202170e4b29979ce9c446eff143619171c4
|
|
4
|
+
data.tar.gz: cef82522bfd6908b338d176aea5be4da7745d07d29287966e724cfb9b2d9183a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 452a006ac3047ec69e7cb3925ef79bcdbc8a759d653820fb88cc0058671bc2f08d27432c3fdf623ca9760ccd909327d4fa0483f16d7819983c5b74708aeab7a8
|
|
7
|
+
data.tar.gz: 98afabe08e32e53b89642ce7882e69dee697c511518516b1c9e7a506c2096f1cde2bd93223701428d56359dff143ecf467489b7c43b6f228ac6ccc176a4ee797
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
# Crawlora DuckDuckGo Ruby
|
|
1
|
+
# Crawlora DuckDuckGo API client for Ruby (`crawlora-duckduckgo`)
|
|
2
2
|
|
|
3
|
-
This gem calls
|
|
3
|
+
This Ruby gem calls Crawlora's hosted DuckDuckGo API at `https://api.crawlora.net/api/v1`. It exposes 6 endpoints covering web, news, image, video, and shopping search plus query suggestions; it does not call or scrape DuckDuckGo directly. Requests require your Crawlora API key and use your account's service plan.
|
|
4
4
|
|
|
5
5
|
## Install
|
|
6
6
|
|
|
@@ -30,4 +30,17 @@ client.close
|
|
|
30
30
|
|
|
31
31
|
Client options include `api_key`, `base_url`, and `timeout`. Ruby stdlib provides the HTTP and JSON support.
|
|
32
32
|
|
|
33
|
+
## Supported DuckDuckGo API endpoints
|
|
34
|
+
|
|
35
|
+
Browse every route included in this gem. The [endpoint reference](https://github.com/Crawlora-org/crawlora-duckduckgo/blob/main/docs/usage.md) includes parameter and response details.
|
|
36
|
+
|
|
37
|
+
| Method | Endpoint | API operation | Description |
|
|
38
|
+
| --- | --- | --- | --- |
|
|
39
|
+
| `GET` | `/duckduckgo/image` | `duckduckgo-image` | Search DuckDuckGo image results |
|
|
40
|
+
| `GET` | `/duckduckgo/news` | `duckduckgo-news` | Search DuckDuckGo news results |
|
|
41
|
+
| `GET` | `/duckduckgo/search` | `duckduckgo-search` | Search DuckDuckGo web results |
|
|
42
|
+
| `GET` | `/duckduckgo/shopping` | `duckduckgo-shopping` | Search DuckDuckGo shopping results |
|
|
43
|
+
| `GET` | `/duckduckgo/suggest` | `duckduckgo-suggest` | Suggest DuckDuckGo search queries |
|
|
44
|
+
| `GET` | `/duckduckgo/video` | `duckduckgo-video` | Search DuckDuckGo video results |
|
|
45
|
+
|
|
33
46
|
See [Crawlora](https://crawlora.net/?utm_source=rubygems&utm_medium=referral&utm_campaign=platform-clients&utm_content=duckduckgo-ruby-homepage), the [API documentation](https://crawlora.net/docs?utm_source=rubygems&utm_medium=referral&utm_campaign=platform-clients&utm_content=duckduckgo-ruby-api-docs), and [the package repository](https://github.com/Crawlora-org/crawlora-duckduckgo) for account setup, the API operation reference, and release history.
|
|
@@ -29,7 +29,7 @@ module Crawlora
|
|
|
29
29
|
class Client
|
|
30
30
|
attr_reader :base_url
|
|
31
31
|
|
|
32
|
-
def initialize(api_key: ENV["CRAWLORA_API_KEY"], base_url: "https://api.crawlora.net/api/v1", timeout: 30, user_agent: "crawlora-duckduckgo-ruby/0.1.
|
|
32
|
+
def initialize(api_key: ENV["CRAWLORA_API_KEY"], base_url: "https://api.crawlora.net/api/v1", timeout: 30, user_agent: "crawlora-duckduckgo-ruby/0.1.1", transport: nil)
|
|
33
33
|
@api_key = api_key
|
|
34
34
|
@base_url = base_url.to_s.sub(%r{/+$}, "")
|
|
35
35
|
@timeout = Float(timeout)
|
metadata
CHANGED
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: crawlora-duckduckgo
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Crawlora
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-10-
|
|
11
|
+
date: 2026-10-12 00:00:00.000000000 Z
|
|
12
12
|
dependencies: []
|
|
13
|
-
description:
|
|
13
|
+
description: Ruby client for Crawlora's hosted DuckDuckGo API. Covers web, news, image,
|
|
14
|
+
video, and shopping search plus query suggestions across 6 endpoints.
|
|
14
15
|
email:
|
|
15
16
|
executables: []
|
|
16
17
|
extensions: []
|
|
@@ -47,5 +48,5 @@ requirements: []
|
|
|
47
48
|
rubygems_version: 3.4.19
|
|
48
49
|
signing_key:
|
|
49
50
|
specification_version: 4
|
|
50
|
-
summary: DuckDuckGo client for
|
|
51
|
+
summary: DuckDuckGo API client for Crawlora (6 endpoints)
|
|
51
52
|
test_files: []
|