gsc-cli 2.0.1 → 2.0.2

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.
Files changed (6) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +69 -38
  3. data/bin/gsc +2 -2
  4. data/dist/gsc +2 -2
  5. data/lib/gsc/version.rb +1 -1
  6. metadata +18 -6
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2caa7ef6d70b3a937056d9c5b3296a18cbcdaab2137533fe553ca6e06d0db604
4
- data.tar.gz: 77a07b9ac543ac0530fb61dcc25953d0c948f4bb90463f477d08f0ffebe05921
3
+ metadata.gz: 3e379d13d9b1370ad2bb461f3e15f95954495bd116da11b6a24cfbda47709410
4
+ data.tar.gz: 405dbb5733c79e2ed8265c73ee57c0e659f6edf6364f74355b912b24d441acc9
5
5
  SHA512:
6
- metadata.gz: 1809e1e6e0c9a439894db3c5b8e3107f2ec2669f234e224d433d9d8cadfaa268eebfd632129424e88c85ea4f10664c710374737cb81d3adcfac3a4a8cbd7864c
7
- data.tar.gz: 00ab88895619228527ce0bd3cb8ced18f012610a87449c255dad2ea2cfe5da52f0d0af6f5aae6a5e33491425d893ea1dfb14c317e698f34d36dceac8504b9e4e
6
+ metadata.gz: da24aec2a22b157c347e85158a4a6a5b9f9ae3f58ed3f192f2b4fd8a8bee66122d5a603b5d044b54fa11e1c08736c1c7a68243ceadef828633f45a9b5039ebe7
7
+ data.tar.gz: 4fd60edd74505e3eac264b33ac4366e6f81c9f4c1019462ecf19b9cd701b2a31043967011eb576e3c39593441d3239c1ec009b8024f2b5cbbd9c7337d9203b41
data/README.md CHANGED
@@ -13,14 +13,14 @@
13
13
 
14
14
  <p align="center">
15
15
  <b>gsc-cli</b> is a free, open-source initiative built and maintained by
16
- <a href="https://apolloswave.com"><b>ApollosWave LLC</b></a>.
16
+ <a href="https://apolloswave.com/?utm_source=github&utm_medium=readme&utm_campaign=gsc-cli"><b>ApollosWave LLC</b></a>.
17
17
  </p>
18
18
 
19
19
  <p align="center">
20
20
  <sub>Explore other software built by our team:</sub><br>
21
- ⚡ <a href="https://superspeedapp.com"><b>Superspeed</b></a> — Lightning-fast macOS disk cleaner & RAM booster for Apple Silicon<br>
22
- 🛒 <a href="https://supercart.app"><b>Supercart</b></a> — High-converting slide cart drawer & 1-click upsells for Shopify stores<br>
23
- 📦 <a href="https://packinglog.com"><b>PackingLog</b></a> — Smart QR-code box inventory & photo catalog for residential & office moves
21
+ ⚡ <a href="https://superspeedapp.com/?utm_source=github&utm_medium=readme&utm_campaign=gsc-cli"><b>Superspeed</b></a> — Lightning-fast macOS disk cleaner & RAM booster for Apple Silicon<br>
22
+ 🛒 <a href="https://supercartapp.com/?utm_source=github&utm_medium=readme&utm_campaign=gsc-cli"><b>Supercart</b></a> — High-converting slide cart drawer & 1-click upsells for Shopify stores<br>
23
+ 📦 <a href="https://packinglog.com/?utm_source=github&utm_medium=readme&utm_campaign=gsc-cli"><b>PackingLog</b></a> — Smart QR-code box inventory & photo catalog for residential & office moves
24
24
  </p>
25
25
 
26
26
  ---
@@ -35,7 +35,7 @@ Every software company, indie hacker, and e-commerce founder faces the exact sam
35
35
  4. **AI Agents Need Clean, Fast, Machine-Readable Intelligence**: Modern AI coding agents (Google Antigravity, Claude Code, Cursor, Codex) cannot click web buttons. They need raw, fast, deterministic JSON over stdout.
36
36
 
37
37
  ### The Epiphany Bridge
38
- At **[ApollosWave](https://apolloswave.com)**, we run multiple production software businesses—from macOS system utilities (**[Superspeed](https://superspeedapp.com)**) and Shopify e-commerce apps (**[Supercart](https://supercart.app)**) to physical moving inventory SaaS (**[PackingLog](https://packinglog.com)**).
38
+ At **[ApollosWave](https://apolloswave.com/?utm_source=github&utm_medium=readme&utm_campaign=gsc-cli)**, we run multiple production software businesses—from macOS system utilities (**[Superspeed](https://superspeedapp.com/?utm_source=github&utm_medium=readme&utm_campaign=gsc-cli)**) and Shopify e-commerce apps (**[Supercart](https://supercartapp.com/?utm_source=github&utm_medium=readme&utm_campaign=gsc-cli)**) to physical moving inventory SaaS (**[PackingLog](https://packinglog.com/?utm_source=github&utm_medium=readme&utm_campaign=gsc-cli)**).
39
39
 
40
40
  We refused to bloat our repos with 40 gems or waste 10 hours a week clicking in Search Console. We needed a **single, standalone pure-Ruby CLI** that connects directly to Google APIs using native `OpenSSL` and `Net::HTTP` in **under 50 milliseconds**.
41
41
 
@@ -47,7 +47,7 @@ We built **`gsc-cli`** to run our own marketing. **We open-sourced it 100% free
47
47
 
48
48
  - 📈 **Real-Time Google Trends Engine**: 5-year and 1-year search trajectory, growth velocity percentage, Unicode sparklines (` ▂▃▄▅▆▇█`), and regional demand breakdowns with zero authentication.
49
49
  - 🎯 **Zero-Auth Keyword Planner**: Instant seed expansion via Google Autocomplete with automated search intent classification (`Informational`, `Commercial`, `Transactional`).
50
- - 💰 **Keywords Everywhere API Integration**: Fetch exact monthly search volume, CPC, competition index, and 12-month trends for up to 500 keywords in a single call.
50
+ - 💰 **Keywords Everywhere Dual Ingestion (Zero-Cost Clipboard & Headless API)**: Ingest free keyword tables directly from the Keywords Everywhere web dashboard via `gsc import clip` (zero credits required), or connect paid API keys for 1-step automated terminal lookups (`gsc ke`).
51
51
  - 📊 **Google Ads Planner Ingestion**: Ingest CSV exports from Google Ads Keyword Planner, calculate composite Opportunity Scores (0–100), and cross-correlate with live GSC rankings.
52
52
  - 🚀 **Instant Googlebot Re-Indexing**: Ping Google's Indexing API with `URL_UPDATED` or `URL_DELETED` for priority crawl queueing within seconds.
53
53
  - 🔍 **Live Google URL Inspection**: Direct Search Console API check for indexing verdict, assigned canonical URL, crawl timestamps, and robots.txt state.
@@ -147,17 +147,60 @@ gsc site-audit https://packinglog.com/sitemap.xml --report docs/seo/site_audit_i
147
147
 
148
148
  ---
149
149
 
150
- ### 1. Keywords Everywhere API Integration (`gsc ke`)
150
+ ### 1. Keywords Everywhere Dual Workflow (`gsc import clip` & `gsc ke`)
151
151
 
152
152
  #### The Problem
153
- Knowing *what* people search is only half the battle. You need to know **exact monthly search volume**, **Cost Per Click (CPC)**, and **commercial competition**. Manually logging into keyword tools, copying keyword tables, and checking spreadsheets breaks your flow and blocks autonomous AI agents.
153
+ Knowing *what* people search is only half the battle. You need to know **exact monthly search volume**, **Cost Per Click (CPC)**, and **commercial competition**. But keyword tools either force you to buy expensive API subscriptions or lock valuable data inside disconnected browser spreadsheets.
154
154
 
155
- #### The Magic
156
- `gsc-cli` integrates directly with the official Keywords Everywhere API. In a single command, it expands any topic, pulls exact search volumes and CPCs, calculates an **Opportunity Score (0–100)**, and checks whether your domain already ranks for that keyword in Search Console:
155
+ `gsc-cli` provides **two flexible workflows** tailored to how you work:
157
156
 
158
- ```bash
159
- gsc ke "mac cleaner" --limit 25
160
- ```
157
+ ---
158
+
159
+ #### 🆓 Method A: Zero-Cost Clipboard Ingestion (`gsc import clip`)
160
+ > **No API key or paid credits required!** Works 100% free with the Keywords Everywhere web dashboard or browser extension.
161
+
162
+ If you don't have paid API credits, or prefer using the free daily lookups on the Keywords Everywhere website:
163
+
164
+ 1. **Copy Your Keywords in the Browser**:
165
+ * Open [Keywords Everywhere](https://keywordseverywhere.com/) (or use their Chrome/Firefox extension or bulk keyword tool).
166
+ * View any table of search volumes, CPCs, and competition metrics.
167
+ * Click **"Copy"** / **"Copy to Clipboard"** (or select the rows and press `Cmd+C` / `Ctrl+C`).
168
+ 2. **Run One Command in Your Terminal**:
169
+ ```bash
170
+ gsc import clip
171
+ ```
172
+ 3. **Instant Analysis & GSC Correlation**:
173
+ `gsc-cli` uses native OS clipboard tools (`pbpaste` on macOS, `xclip`/`wl-paste` on Linux) to:
174
+ * Parse volume, CPC, competition score, and monthly history at zero cost.
175
+ * Draw live **Unicode Sparklines (` ▂▃▄▅▆▇█`)** showing 12-month demand trajectory.
176
+ * Calculate **Opportunity Scores (0–100)** to prioritize low-competition/high-volume wins.
177
+ * Automatically cross-reference your live Google Search Console rankings (`🏆 Top 3`, `🥇 Page 1`, `🎯 Striking Distance`, or `🚀 Untargeted`).
178
+ * Automatically archive the snapshot into `~/.config/gsc/domains/<domain>/keywords/` so you can track rank progress over time!
179
+
180
+ ---
181
+
182
+ #### ⚡ Method B: Headless Direct API Integration (`gsc ke`)
183
+ > **For automated, headless terminal lookups.** Requires a Keywords Everywhere API key with paid credits.
184
+
185
+ If you have purchased an API key from [Keywords Everywhere](https://keywordseverywhere.com/) (credits start at just $1.25 for 100,000 keyword lookups), you can query search demand directly from the terminal without ever opening a browser:
186
+
187
+ 1. **Connect your API key once**:
188
+ ```bash
189
+ gsc connect ke YOUR_API_KEY
190
+ ```
191
+ *Your key is securely stored in `~/.config/gsc/config.json` alongside your Google service account.*
192
+ 2. **Check your remaining account credits**:
193
+ ```bash
194
+ gsc ke-credits
195
+ ```
196
+ 3. **Query any keyword topic or seed directly**:
197
+ ```bash
198
+ gsc ke "mac cleaner" --limit 25
199
+ ```
200
+ 4. **Bulk inspect an entire keyword list headlessly**:
201
+ ```bash
202
+ gsc ke keywords.txt --country us --limit 100 --json
203
+ ```
161
204
 
162
205
  Terminal Output:
163
206
  ```text
@@ -173,22 +216,6 @@ Terminal Output:
173
216
  how to clear system storage mac 9,900 $1.20 0.15 89/100 Informational 🚀 Untargeted
174
217
  ```
175
218
 
176
- #### How to Connect Keywords Everywhere in 10 Seconds
177
- 1. Get an API key from [Keywords Everywhere](https://keywordseverywhere.com/) (credits start at just $1.25 for 100,000 keywords).
178
- 2. Connect it in `gsc`:
179
- ```bash
180
- gsc connect ke YOUR_API_KEY
181
- ```
182
- *Your key is securely saved to `~/.config/gsc/config.json` alongside your Google credentials.*
183
- 3. Check remaining account credits anytime:
184
- ```bash
185
- gsc ke-credits
186
- ```
187
- 4. Bulk inspect an entire keyword file:
188
- ```bash
189
- gsc ke keywords.txt --country us --limit 100 --json
190
- ```
191
-
192
219
  ---
193
220
 
194
221
  ### 2. Google Trends Real-Time Demand Engine (`gsc trends`)
@@ -231,18 +258,22 @@ gsc planner "moving boxes" --limit 20
231
258
 
232
259
  ---
233
260
 
234
- ### 4. Universal Keyword Ingestion: Google Ads & Keywords Everywhere (`gsc import`)
261
+ ### 4. Universal Keyword Ingestion: Clipboard, Google Ads & Files (`gsc import`)
235
262
 
236
263
  #### The Problem
237
264
  Exporting search volume and CPC data from keyword tools usually results in messy spreadsheets that sit forgotten in your downloads folder. Merging those keywords with your live Google Search Console rankings requires complex VLOOKUPs and manual position checking.
238
265
 
239
266
  #### The Magic
240
- `gsc import` accepts raw exports from **both Google Ads Keyword Planner and Keywords Everywhere** (in `.csv`, `.tsv`, or markdown table format):
267
+ `gsc import` accepts raw keyword data directly from your **clipboard** or files exported from **both Google Ads Keyword Planner and Keywords Everywhere** (in `.csv`, `.tsv`, or markdown table format):
268
+
241
269
  ```bash
242
- # Import Keywords Everywhere export
270
+ # 1-click ingest directly from your system clipboard (free & zero setup):
271
+ gsc import clip
272
+
273
+ # Import a Keywords Everywhere markdown or CSV export:
243
274
  gsc import path/to/KW.md --limit 30
244
275
 
245
- # Import Google Ads Keyword Planner CSV/TSV
276
+ # Import a Google Ads Keyword Planner CSV/TSV:
246
277
  gsc import path/to/google-ads-keywords.csv --limit 30
247
278
  ```
248
279
 
@@ -344,7 +375,7 @@ gsc saved check 1
344
375
  |---|---|
345
376
  | `gsc trends <query>` | Real-time Google Trends 5y/1y demand velocity, sparklines, and geo breakdown |
346
377
  | `gsc planner <seed>` | Zero-auth Google Suggest intent expander with live GSC rank correlation |
347
- | `gsc import <file>` | Ingest Google Ads or Keywords Everywhere export (.csv, .tsv, .md) with 12m sparklines |
378
+ | `gsc import <file or clip>` | Ingest Google Ads / Keywords Everywhere data from clipboard (`gsc import clip`) or file (.csv, .tsv, .md) with 12m sparklines |
348
379
  | `gsc planner-import <file>` | Ingest Google Ads / Keywords Everywhere export (alias for `import`) |
349
380
  | `gsc ke <seed or file>` | Keywords Everywhere: Exact monthly volume, CPC, competition & GSC correlation |
350
381
  | `gsc ke-credits` | Check remaining Keywords Everywhere account API credits |
@@ -428,13 +459,13 @@ gsc skills install
428
459
 
429
460
  ## 🏢 Proudly Backed by ApollosWave LLC
430
461
 
431
- `gsc-cli` is free and open-source software under the [MIT License](LICENSE). It is actively developed and maintained by the engineering team at **[ApollosWave LLC](https://apolloswave.com)**.
462
+ `gsc-cli` is free and open-source software under the [MIT License](LICENSE). It is actively developed and maintained by the engineering team at **[ApollosWave LLC](https://apolloswave.com/?utm_source=github&utm_medium=readme&utm_campaign=gsc-cli)**.
432
463
 
433
464
  We build tools for high-performance software, e-commerce, and everyday logistics. Check out our commercial products:
434
465
 
435
- - ⚡ **[Superspeed](https://superspeedapp.com)** — The native, lightning-fast macOS performance & storage cleaner designed for Apple Silicon. Purge multi-gigabyte Xcode caches, app leftovers, and reclaim RAM in one tap.
436
- - 🛒 **[Supercart](https://supercart.app)** — The modern slide cart drawer for Shopify. Boost Average Order Value (AOV) with automated in-cart upsells, free shipping progress bars, and instant 1-click checkout.
437
- - 📦 **[PackingLog](https://packinglog.com)** — The personal and business moving box inventory management app. Batch-photograph box items with your phone, print scannable QR stickers, and locate any item in seconds.
466
+ - ⚡ **[Superspeed](https://superspeedapp.com/?utm_source=github&utm_medium=readme&utm_campaign=gsc-cli)** — The native, lightning-fast macOS performance & storage cleaner designed for Apple Silicon. Purge multi-gigabyte Xcode caches, app leftovers, and reclaim RAM in one tap.
467
+ - 🛒 **[Supercart](https://supercartapp.com/?utm_source=github&utm_medium=readme&utm_campaign=gsc-cli)** — The modern slide cart drawer for Shopify. Boost Average Order Value (AOV) with automated in-cart upsells, free shipping progress bars, and instant 1-click checkout.
468
+ - 📦 **[PackingLog](https://packinglog.com/?utm_source=github&utm_medium=readme&utm_campaign=gsc-cli)** — The personal and business moving box inventory management app. Batch-photograph box items with your phone, print scannable QR stickers, and locate any item in seconds.
438
469
 
439
470
  ---
440
471
 
data/bin/gsc CHANGED
@@ -3,7 +3,7 @@
3
3
 
4
4
  # ==============================================================================
5
5
  # Google Search Console & Indexing API CLI Tool (Pure Ruby - Zero Gem Dependencies)
6
- # Standalone Single-File Distribution (Built from lib/gsc v2.0.1)
6
+ # Standalone Single-File Distribution (Built from lib/gsc v2.0.2)
7
7
  # ==============================================================================
8
8
 
9
9
  require 'net/http'
@@ -20,7 +20,7 @@ require 'stringio'
20
20
 
21
21
  # --- version.rb ---
22
22
  module GSC
23
- VERSION = '2.0.1'
23
+ VERSION = '2.0.2'
24
24
  end
25
25
 
26
26
  # --- color.rb ---
data/dist/gsc CHANGED
@@ -3,7 +3,7 @@
3
3
 
4
4
  # ==============================================================================
5
5
  # Google Search Console & Indexing API CLI Tool (Pure Ruby - Zero Gem Dependencies)
6
- # Standalone Single-File Distribution (Built from lib/gsc v2.0.1)
6
+ # Standalone Single-File Distribution (Built from lib/gsc v2.0.2)
7
7
  # ==============================================================================
8
8
 
9
9
  require 'net/http'
@@ -20,7 +20,7 @@ require 'stringio'
20
20
 
21
21
  # --- version.rb ---
22
22
  module GSC
23
- VERSION = '2.0.1'
23
+ VERSION = '2.0.2'
24
24
  end
25
25
 
26
26
  # --- color.rb ---
data/lib/gsc/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module GSC
4
- VERSION = '2.0.1'
4
+ VERSION = '2.0.2'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gsc-cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.1
4
+ version: 2.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - ApollosWave LLC
@@ -9,9 +9,18 @@ bindir: bin
9
9
  cert_chain: []
10
10
  date: 1980-01-02 00:00:00.000000000 Z
11
11
  dependencies: []
12
- description: A lightweight, zero-gem CLI tool and AI agent engine for Google Search
13
- Console, Google Indexing API, Google Analytics 4, Keywords Everywhere, and Google
14
- Trends.
12
+ description: |
13
+ == OVERVIEW
14
+
15
+ A lightweight, zero-gem CLI tool and AI agent engine for Google Search Console, Google Indexing API, Google Analytics 4, Keywords Everywhere, and Google Trends.
16
+
17
+ == APOLLOSWAVE ECOSYSTEM
18
+
19
+ Built and maintained by {ApollosWave LLC}[https://apolloswave.com/?utm_source=rubygems&utm_medium=gem_desc&utm_campaign=gsc-cli]. Check out our commercial products:
20
+
21
+ * {Superspeed}[https://superspeedapp.com/?utm_source=rubygems&utm_medium=gem_desc&utm_campaign=gsc-cli] - Lightning-fast macOS disk cleaner and RAM booster for Apple Silicon.
22
+ * {Supercart}[https://supercartapp.com/?utm_source=rubygems&utm_medium=gem_desc&utm_campaign=gsc-cli] - High-converting slide cart drawer and 1-click upsells for Shopify stores.
23
+ * {PackingLog}[https://packinglog.com/?utm_source=rubygems&utm_medium=gem_desc&utm_campaign=gsc-cli] - Smart QR-code moving box inventory and photo catalog.
15
24
  email:
16
25
  - support@apolloswave.com
17
26
  executables:
@@ -39,13 +48,16 @@ files:
39
48
  - lib/gsc/site_crawler.rb
40
49
  - lib/gsc/sitemap_loader.rb
41
50
  - lib/gsc/version.rb
42
- homepage: https://github.com/ApollosWave/gsc-cli
51
+ homepage: https://apolloswave.com
43
52
  licenses:
44
53
  - MIT
45
54
  metadata:
46
- homepage_uri: https://github.com/ApollosWave/gsc-cli
55
+ homepage_uri: https://apolloswave.com/?utm_source=rubygems&utm_medium=gem_sidebar&utm_campaign=gsc-cli
47
56
  source_code_uri: https://github.com/ApollosWave/gsc-cli
57
+ documentation_uri: https://github.com/ApollosWave/gsc-cli#readme
58
+ bug_tracker_uri: https://github.com/ApollosWave/gsc-cli/issues
48
59
  changelog_uri: https://github.com/ApollosWave/gsc-cli/blob/main/README.md
60
+ funding_uri: https://superspeedapp.com/?utm_source=rubygems&utm_medium=gem_sidebar&utm_campaign=gsc-cli
49
61
  rdoc_options: []
50
62
  require_paths:
51
63
  - lib