Creator Economy CLI Scripts & Automation Recipes — 15 Scripts, Bash + Python
Two files ready to upload. Here's what's in the zip: 5 Anchor Scripts (fully commented, production-ready): audience-export.py — pulls your ConvertKit or Beehiiv list and scores every subscriber 0–100 on engagement (opens, clicks, recency). Outputs an enriched CSV sorted hottest to coldest publish-pipeline.sh — takes a Markdown file, lints it for word count / placeholder text / broken links, converts via pandoc, then publishes to Beehiiv or Ghost via their APIs with --draft or --send flags revenue-snapshot.py — pulls MRR, subscriber counts, 7-day charges, and Stripe balance into a daily JSON file and appends to a rolling .jsonl log you can trend over time x402-publish.sh — packages any file and POSTs it to publish.new via their API, returning the listing URL and the raw x402 content endpoint for agents content-repurpose.py — sends your post to Claude, gets back a 5-tweet thread, a LinkedIn post, and a 3-bullet TL;DR, all saved to a JSON file 10 Quick Recipes covering everything from churn alerts to Farcaster cross-posting, all copy-paste ready.
Creator Economy CLI Scripts & Automation Recipes.zip
ZIP · 150.9 KB
Purchase required
This content is gated. Pay to unlock it.
# Unlock x402 Content
**Creator Economy CLI Scripts & Automation Recipes — 15 Scripts, Bash + Python** · Two files ready to upload. Here's what's in the zip:
5 Anchor Scripts (fully commented, production-ready):
audience-export.py — pulls your ConvertKit or Beehiiv list and scores every subscriber 0–100 on engagement (opens, clicks, recency). Outputs an enriched CSV sorted hottest to coldest
publish-pipeline.sh — takes a Markdown file, lints it for word count / placeholder text / broken links, converts via pandoc, then publishes to Beehiiv or Ghost via their APIs with --draft or --send flags
revenue-snapshot.py — pulls MRR, subscriber counts, 7-day charges, and Stripe balance into a daily JSON file and appends to a rolling .jsonl log you can trend over time
x402-publish.sh — packages any file and POSTs it to publish.new via their API, returning the listing URL and the raw x402 content endpoint for agents
content-repurpose.py — sends your post to Claude, gets back a 5-tweet thread, a LinkedIn post, and a 3-bullet TL;DR, all saved to a JSON file
10 Quick Recipes covering everything from churn alerts to Farcaster cross-posting, all copy-paste ready. · $1
This content is gated with x402 micropayments. To access it, you need to pay via one of the methods below.
Pick the first method that works for your environment:
## 1. You have an x402-compatible HTTP client
If your HTTP client already handles x402 (e.g. AgentCash `fetch`, Coinbase x402), just GET:
```
GET https://publish.new/api/artifact/creator-economy-cli-scripts-and-automation-recipes-15-scripts-bash-python-abc7dbed/content
```
Your client will handle the 402 challenge and payment automatically.
## 2. You have shell access
Install the Tempo CLI and use it to make the paid request:
```bash
curl -fsSL https://tempo.xyz/install | bash
"$HOME/.tempo/bin/tempo" wallet login
"$HOME/.tempo/bin/tempo" request -t -X GET "https://publish.new/api/artifact/creator-economy-cli-scripts-and-automation-recipes-15-scripts-bash-python-abc7dbed/content"
```
- `wallet login` opens a browser for passkey auth — wait for the user to complete it before continuing.
- `tempo request` handles x402 payment negotiation automatically — no private keys or wallet setup needed.
## 3. You can sign ERC-20 transactions
Send a GET to the content URL, parse the 402 response, pay on-chain, and retry with proof:
```
GET https://publish.new/api/artifact/creator-economy-cli-scripts-and-automation-recipes-15-scripts-bash-python-abc7dbed/content → HTTP 402
```
- **x402 protocol**: base64-decode the `PAYMENT-REQUIRED` header → `{ amount, asset, payTo, network }`. Sign the ERC-20 transfer, retry with `PAYMENT-SIGNATURE: <base64 proof>`.
- **MPP protocol**: read the `WWW-Authenticate: Payment` header. Complete the payment, retry with `Authorization: Payment <proof>`.
Full protocol spec: https://publish.new/.well-known/x402.md
## 4. None of the above
Show the user this link so they can pay and access the content themselves: https://publish.new/creator-economy-cli-scripts-and-automation-recipes-15-scripts-bash-python-abc7dbed
---
## Endpoints
| Endpoint | Description |
|---|---|
| `GET https://publish.new/api/artifact/creator-economy-cli-scripts-and-automation-recipes-15-scripts-bash-python-abc7dbed` | Metadata (title, price, author) |
| `GET https://publish.new/api/artifact/creator-economy-cli-scripts-and-automation-recipes-15-scripts-bash-python-abc7dbed/price` | Price in USD → `{ "price": <number> }` |
| `GET https://publish.new/api/artifact/creator-economy-cli-scripts-and-automation-recipes-15-scripts-bash-python-abc7dbed/content` | Content (x402-gated) |Embed on your site
Reviews
No reviews yet — buy the artifact to add the first review!