socialscrape-cli
socialscrape: social media data on the command line, as JSON for scripts and agents or a
table for people. Python 3.10+, one dependency (httpx).
pip install socialscrape-cli # or: pipx install socialscrape-cli
socialscrape login # paste your key once (saved to ~/.config/socialscrape/config.json, mode 600)
socialscrape github user torvalds
socialscrape transcript "https://www.youtube.com/watch?v=dQw4w9WgXcQ"
socialscrape search threads "open source" -o table
socialscrape threads profile-posts zuck --pages 3
socialscrape ad-libraries facebook-search nike --region US --all --max-credits 5
socialscrape credits
The CLI reads the same endpoint catalog as the socialscrape-mcp server, so a platform appears here
in the release after its endpoints are built. It uses plain httpx and needs no other SocialScrape package.
Commands
socialscrape <platform> <resource> [value] [--param value] |
Any endpoint. socialscrape github --help lists a platform's resources, socialscrape github user --help the parameters. Resource names use hyphens: profile.posts is profile-posts (dots and underscores also work). |
transcript URL |
Transcript of a video or post on any supported platform. |
profile, post, comments, search PLATFORM VALUE |
The same job on any platform that has it (search takes --kind). Shortcuts for <platform> <resource>. |
credits, usage [daily|routes], job ID |
Balance, request history, an async job. All free. |
batch FILE|- |
Up to 100 requests in one call from JSON: [{"endpoint": "github.user", "params": {"handle": "torvalds"}}]. |
monitors list|create|delete|test|deliveries|events|redeliver |
Webhook monitors. |
endpoints [PLATFORM] |
What can be called. |
login, logout, config |
Save, remove, show (masked) the key. |
The positional value is the resource's main parameter; the form is detected (a URL goes to url,
anything else to handle, id or query). Every parameter is also a flag (--handle, --url,
--sort, --limit, --region, ...), with the API's aliases (--username).
Output
- stdout is data only: pretty JSON on a terminal, compact JSON in a pipe.
-o tableand-o ndjson(one item per line) change the format;--envelopeprints the whole response (data,credits_charged,cursor, ...);--rawasks for the platform's original object (raw=true) and prints the whole response. - stderr carries the price:
credits charged: 1 | remaining: 4999.-qsilences it. --dry-runprints the request and what it would cost and sends nothing (no key needed).
Paging
--pages N follows the cursor up to N pages; --all follows it to the end (cap --max-pages,
default 50). Each page costs credits, so bound it: --max-items N, --max-credits N. The merged
result is one list with every item; if a later page fails you still get the earlier ones.
Exit codes
0 ok, 1 API error (not found, private, invalid parameters, ...), 2 usage error (nothing was
sent, nothing charged), 3 key or credits (unauthorized, forbidden, insufficient_credits),
4 retryable (rate limited, upstream blocked or timed out, network). Failures are free.
Key and server
The key comes from --key, then $SOCIALSCRAPE_API_KEY, then the saved config. login checks the
key against the API before it saves anything. --api-url or $SOCIALSCRAPE_API_URL points at another
server (default https://api.socialscrape.dev).
Metadata
Release files for socialscrape-cli 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| socialscrape_cli-0.1.1.tar.gz | 58.9 kB | Without provenance | Details for socialscrape_cli-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| socialscrape_cli-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for socialscrape_cli-0.1.1-py3-none-any.whl |
Total release size: 119.1 kB
Security for socialscrape-cli 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.
Release files / socialscrape_cli-0.1.1.tar.gz
How to use checksums
4d8c06318fe1aa49cba42774982859ee4d1448bb47a6654f4bea393adad84172How to use checksums
67d3ed548b83846df16180af22aadce5b9ce7ad30b320b88bc0f5a0be7c976d5What is trusted publishing?
twine/7.0.0 CPython/3.12.3