crawlora-google 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 +49 -2
- data/lib/crawlora/google/client.rb +1 -1
- data/lib/crawlora/google/version.rb +1 -1
- metadata +6 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6a0c805127bfd49582d48b9cd6f343ebd96de7aee16d7fff22552ab91e2f1658
|
|
4
|
+
data.tar.gz: 64add3955b504776ab10b6b1ebc34188c04810db282d2ad3fc9441f31ef9d938
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0c8271e7a815b4d58e92428b87ef198e12ddb7f2f390a48428254f64889068cc3292396e3ef7a278e9f30b6eb9668d5f6918c2876a0193d3f778c164755a605b
|
|
7
|
+
data.tar.gz: 5bb9fdca606e7f1f12532c3aec72de7fdb250a2009b078d8294b9c4a2bddb0468464bfe36b8632e5bbdaac2a1bbb68771d82f730f281c85fa7df3040c7ae4684
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
# Crawlora Google Ruby
|
|
1
|
+
# Crawlora Google API client for Ruby (`crawlora-google`)
|
|
2
2
|
|
|
3
|
-
This gem calls
|
|
3
|
+
This Ruby gem calls Crawlora's hosted Google API at `https://api.crawlora.net/api/v1`. It exposes 40 endpoints covering Maps search, places, reviews and photos; News; Trends; Finance quotes and markets; suggestions; videos; and jobs; it does not call or scrape Google directly. Requests require your Crawlora API key and use your account's service plan.
|
|
4
4
|
|
|
5
5
|
## Install
|
|
6
6
|
|
|
@@ -30,4 +30,51 @@ 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 Google API endpoints
|
|
34
|
+
|
|
35
|
+
Browse every route included in this gem. The [endpoint reference](https://github.com/Crawlora-org/crawlora-google/blob/main/docs/usage.md) includes parameter and response details.
|
|
36
|
+
|
|
37
|
+
| Method | Endpoint | API operation | Description |
|
|
38
|
+
| --- | --- | --- | --- |
|
|
39
|
+
| `GET` | `/google/finance/analyst-articles/{quote}` | `google-finance-analyst-articles` | Google Finance analyst articles |
|
|
40
|
+
| `GET` | `/google/finance/chart/{quote}` | `google-finance-chart` | Google Finance chart data |
|
|
41
|
+
| `GET` | `/google/finance/classification/{quote}` | `google-finance-classification` | Google Finance classification data |
|
|
42
|
+
| `GET` | `/google/finance/company/{quote}` | `google-finance-company` | Google Finance company data |
|
|
43
|
+
| `GET` | `/google/finance/context` | `google-finance-context` | Find Google Finance instruments by query |
|
|
44
|
+
| `GET` | `/google/finance/financials/{quote}` | `google-finance-financials` | Google Finance financial statements |
|
|
45
|
+
| `GET` | `/google/finance/markets/categories/{category}/news` | `google-finance-markets-category-news` | Google Finance category news |
|
|
46
|
+
| `GET` | `/google/finance/markets/categories/{category}/stocks` | `google-finance-markets-category-stocks` | Google Finance category stocks |
|
|
47
|
+
| `GET` | `/google/finance/markets/earnings` | `google-finance-markets-earnings` | Google Finance earnings calendar |
|
|
48
|
+
| `GET` | `/google/finance/markets/featured` | `google-finance-markets-featured` | Google Finance featured stocks |
|
|
49
|
+
| `GET` | `/google/finance/markets/headline` | `google-finance-markets-headline` | Google Finance top headline |
|
|
50
|
+
| `GET` | `/google/finance/markets/indices` | `google-finance-markets-indices` | Google Finance market indices |
|
|
51
|
+
| `GET` | `/google/finance/markets/movers` | `google-finance-markets-movers` | Google Finance market movers |
|
|
52
|
+
| `GET` | `/google/finance/markets/top` | `google-finance-markets-top` | Google Finance top stocks by metric |
|
|
53
|
+
| `GET` | `/google/finance/markets/trending` | `google-finance-markets-trending` | Google Finance trending stocks |
|
|
54
|
+
| `GET` | `/google/finance/news/{quote}` | `google-finance-news` | Google Finance quote news |
|
|
55
|
+
| `GET` | `/google/finance/quote/{quote}` | `google-finance-quote` | Google Finance Quote API |
|
|
56
|
+
| `GET` | `/google/finance/related/{quote}` | `google-finance-related` | Google Finance related instruments |
|
|
57
|
+
| `GET` | `/google/finance/search` | `google-finance-search` | Google Finance Search API |
|
|
58
|
+
| `GET` | `/google/finance/ticker/{ticker}` | `google-finance-ticker` | Google Finance Ticker API |
|
|
59
|
+
| `POST` | `/google/jobs` | `google-jobs` | Search Google Jobs |
|
|
60
|
+
| `GET` | `/google/map/place/{place_id}` | `google-map-place` | Google Maps place details API |
|
|
61
|
+
| `GET` | `/google/map/place/{place_id}/photos` | `google-map-place-photos` | Google Maps place photos API |
|
|
62
|
+
| `GET` | `/google/map/place/{place_id}/reviews` | `google-map-place-reviews` | Google Maps place reviews API |
|
|
63
|
+
| `POST` | `/google/map/search` | `google-map-search` | Google Maps search API |
|
|
64
|
+
| `GET` | `/google/news` | `google-news` | Search Google News |
|
|
65
|
+
| `POST` | `/google/news` | `google-news-search` | Search Google News with JSON |
|
|
66
|
+
| `GET` | `/google/suggest` | `google-suggest` | Suggest Google search queries |
|
|
67
|
+
| `GET` | `/google/trends/categories` | `google-trends-categories` | Google Trends categories |
|
|
68
|
+
| `GET` | `/google/trends/enums` | `google-trends-enums` | Google Trends enum metadata |
|
|
69
|
+
| `POST` | `/google/trends/explore` | `google-trends-explore` | Google Trends explore data |
|
|
70
|
+
| `POST` | `/google/trends/explore/interest-by-region` | `google-trends-explore-interest-by-region` | Google Trends interest by region |
|
|
71
|
+
| `POST` | `/google/trends/explore/interest-over-time` | `google-trends-explore-interest-over-time` | Google Trends interest over time |
|
|
72
|
+
| `POST` | `/google/trends/explore/related-topics` | `google-trends-explore-related-topics` | Google Trends related topics |
|
|
73
|
+
| `POST` | `/google/trends/explore/rising-queries` | `google-trends-explore-rising-queries` | Google Trends explore rising queries |
|
|
74
|
+
| `POST` | `/google/trends/explore/top-queries` | `google-trends-explore-top-queries` | Google Trends explore top queries |
|
|
75
|
+
| `GET` | `/google/trends/locations` | `google-trends-locations` | Google Trends locations |
|
|
76
|
+
| `GET` | `/google/trends/trending` | `google-trends-trending` | Google Trends trending now data |
|
|
77
|
+
| `POST` | `/google/trends/trending/detail` | `google-trends-trending-detail` | Google Trends trending term detail |
|
|
78
|
+
| `GET` | `/google/videos` | `google-videos` | Search Google video results |
|
|
79
|
+
|
|
33
80
|
See [Crawlora](https://crawlora.net/?utm_source=rubygems&utm_medium=referral&utm_campaign=platform-clients&utm_content=google-ruby-homepage), the [API documentation](https://crawlora.net/docs?utm_source=rubygems&utm_medium=referral&utm_campaign=platform-clients&utm_content=google-ruby-api-docs), and [the package repository](https://github.com/Crawlora-org/crawlora-google) 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-google-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-google-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,18 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: crawlora-google
|
|
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 Google API. Covers Maps search, places,
|
|
14
|
+
reviews and photos; News; Trends; Finance quotes and markets; suggestions; videos;
|
|
15
|
+
and jobs across 40 endpoints.
|
|
14
16
|
email:
|
|
15
17
|
executables: []
|
|
16
18
|
extensions: []
|
|
@@ -47,5 +49,5 @@ requirements: []
|
|
|
47
49
|
rubygems_version: 3.4.19
|
|
48
50
|
signing_key:
|
|
49
51
|
specification_version: 4
|
|
50
|
-
summary: Google client for
|
|
52
|
+
summary: Google API client for Crawlora (40 endpoints)
|
|
51
53
|
test_files: []
|