crawlora-youtube 0.1.4 → 0.1.5
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 +5 -5
- data/lib/crawlora/youtube/client.rb +1 -1
- data/lib/crawlora/youtube/version.rb +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b295f64cda18a0fde9dd10fb492f175c116e802b3cc67535a6c6718407171cf6
|
|
4
|
+
data.tar.gz: a16da6caf59f945adb7498d278b49bf7f4d2ff95614329da040dadffdeaaa137
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: dfb4910e087cb0e36d7848229d990de3773bcf49d64a0b352778911a428ec07b83b78e6d1ac6a016e2d7189abdb1063ebea348e18c67f7ae628cd4b981d8939c
|
|
7
|
+
data.tar.gz: baa76d9d0c8052ad0b387e6f9a1b591991c6f6bc0ad4d135b1a006199e954e79ad8ce0e55c2036b6815ddbd9ad466639ad280a77a9c3f64c2e52ddadf7f3d899
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
|
@@ -8,7 +8,7 @@ This gem calls the Crawlora hosted API at `https://api.crawlora.net/api/v1`. It
|
|
|
8
8
|
gem "crawlora-youtube"
|
|
9
9
|
```
|
|
10
10
|
|
|
11
|
-
Create an account at [crawlora.net](https://crawlora.net/signup), open the [Crawlora console](https://crawlora.net/app) to get an API key, and set `CRAWLORA_API_KEY` before running the client:
|
|
11
|
+
Create an account at [crawlora.net](https://crawlora.net/signup?utm_source=rubygems&utm_medium=referral&utm_campaign=platform-clients&utm_content=youtube-ruby-signup), open the [Crawlora console](https://crawlora.net/app?utm_source=rubygems&utm_medium=referral&utm_campaign=platform-clients&utm_content=youtube-ruby-console) to get an API key, and set `CRAWLORA_API_KEY` before running the client:
|
|
12
12
|
|
|
13
13
|
```ruby
|
|
14
14
|
require "json"
|
|
@@ -20,14 +20,14 @@ puts result
|
|
|
20
20
|
client.close
|
|
21
21
|
```
|
|
22
22
|
|
|
23
|
-
Use a
|
|
23
|
+
Use a operation-specific method for normal calls. `request(operation_id, params = {}, response_type: :auto)` is available for every operation. `response_type: :text` returns raw response text. This gem supports 14 operations.
|
|
24
24
|
|
|
25
25
|
```ruby
|
|
26
26
|
client = Crawlora::Youtube::Client.new(api_key: ENV.fetch("CRAWLORA_API_KEY"), timeout: 30)
|
|
27
|
-
# client.<operation_method>(
|
|
27
|
+
# client.<operation_method>(...)
|
|
28
28
|
client.close
|
|
29
29
|
```
|
|
30
30
|
|
|
31
|
-
Client options include `api_key`, `base_url`, and `timeout`. Ruby stdlib provides the HTTP and JSON transport.
|
|
31
|
+
Client options include `api_key`, `base_url`, and `timeout`. Ruby stdlib provides the HTTP and JSON transport.
|
|
32
32
|
|
|
33
|
-
See [Crawlora](https://crawlora.net
|
|
33
|
+
See [Crawlora](https://crawlora.net/?utm_source=rubygems&utm_medium=referral&utm_campaign=platform-clients&utm_content=youtube-ruby-homepage), the [API documentation](https://crawlora.net/docs?utm_source=rubygems&utm_medium=referral&utm_campaign=platform-clients&utm_content=youtube-ruby-api-docs), and [the package repository](https://github.com/Crawlora-org/crawlora-youtube) for account setup, the 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-youtube-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-youtube-ruby/0.1.5", 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,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: crawlora-youtube
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.5
|
|
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-09 00:00:00.000000000 Z
|
|
12
12
|
dependencies: []
|
|
13
13
|
description: Credential-free YouTube API access through Crawlora's hosted service.
|
|
14
14
|
email:
|
|
@@ -22,11 +22,12 @@ files:
|
|
|
22
22
|
- lib/crawlora/youtube.rb
|
|
23
23
|
- lib/crawlora/youtube/client.rb
|
|
24
24
|
- lib/crawlora/youtube/version.rb
|
|
25
|
-
homepage: https://
|
|
25
|
+
homepage: https://crawlora.net/?utm_source=rubygems&utm_medium=referral&utm_campaign=platform-clients&utm_content=youtube-ruby-homepage
|
|
26
26
|
licenses:
|
|
27
27
|
- MIT
|
|
28
28
|
metadata:
|
|
29
29
|
source_code_uri: https://github.com/Crawlora-org/crawlora-youtube
|
|
30
|
+
documentation_uri: https://crawlora.net/docs?utm_source=rubygems&utm_medium=referral&utm_campaign=platform-clients&utm_content=youtube-ruby-api-docs
|
|
30
31
|
rubygems_mfa_required: 'true'
|
|
31
32
|
post_install_message:
|
|
32
33
|
rdoc_options: []
|