Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,7 @@ temp/

# Bun
bun.lockb

# API comparison data
data/
scripts/
14 changes: 12 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,26 @@ Command-line interface for [ScrapeGraph AI](https://scrapegraphai.com) — AI-po

```
just-scrape/
├── docs/ # API response docs per endpoint
│ ├── smartscraper.md
│ ├── searchscraper.md
│ ├── markdownify.md
│ ├── crawl.md
│ ├── scrape.md
│ ├── agenticscraper.md
│ ├── generate-schema.md
│ ├── sitemap.md
│ └── credits.md
├── src/
│ ├── cli.ts # Entry point, citty main command + subcommands
│ ├── lib/
│ │ ├── env.ts # Zod-parsed env config (API key, debug, timeout)
│ │ ├── folders.ts # API key resolution + interactive prompt
│ │ ├── scrapegraphai.ts # SDK layer — all API functions
│ │ ├── scrapegraphai.ts # SDK layer — all API functions (typed responses)
│ │ ├── schemas.ts # Zod validation schemas
│ │ └── log.ts # Logger factory + syntax-highlighted JSON output
│ ├── types/
│ │ └── index.ts # Zod-derived types + ApiResult
│ │ └── index.ts # Zod-derived types + ApiResult + response types
│ ├── commands/
│ │ ├── smart-scraper.ts
│ │ ├── search-scraper.ts
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "just-scrape",
"version": "0.1.8",
"version": "0.1.9",
"description": "ScrapeGraph AI CLI tool",
"type": "module",
"main": "dist/cli.mjs",
Expand Down
2 changes: 1 addition & 1 deletion src/commands/agentic-scraper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export default defineCommand({
if (args["use-session"]) params.use_session = true;

out.start("Running browser automation");
const result = await scrapegraphai.agenticScraper(key, params, out.poll);
const result = await scrapegraphai.agenticScraper(key, params);
out.stop(result.elapsedMs);

if (result.data) out.result(result.data);
Expand Down
2 changes: 1 addition & 1 deletion src/commands/generate-schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export default defineCommand({
if (args["existing-schema"]) params.existing_schema = JSON.parse(args["existing-schema"]);

out.start("Generating schema");
const result = await scrapegraphai.generateSchema(key, params, out.poll);
const result = await scrapegraphai.generateSchema(key, params);
out.stop(result.elapsedMs);

if (result.data) out.result(result.data);
Expand Down
2 changes: 1 addition & 1 deletion src/commands/markdownify.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export default defineCommand({
if (args.headers) params.headers = JSON.parse(args.headers);

out.start("Converting to markdown");
const result = await scrapegraphai.markdownify(key, params, out.poll);
const result = await scrapegraphai.markdownify(key, params);
out.stop(result.elapsedMs);

if (result.data) out.result(result.data);
Expand Down
2 changes: 1 addition & 1 deletion src/commands/scrape.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export default defineCommand({
if (args["country-code"]) params.country_code = args["country-code"];

out.start("Scraping");
const result = await scrapegraphai.scrape(key, params, out.poll);
const result = await scrapegraphai.scrape(key, params);
out.stop(result.elapsedMs);

if (result.data) out.result(result.data);
Expand Down
2 changes: 1 addition & 1 deletion src/commands/search-scraper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export default defineCommand({
if (args.headers) params.headers = JSON.parse(args.headers);

out.start("Searching");
const result = await scrapegraphai.searchScraper(key, params, out.poll);
const result = await scrapegraphai.searchScraper(key, params);
out.stop(result.elapsedMs);

if (result.data) out.result(result.data);
Expand Down
2 changes: 1 addition & 1 deletion src/commands/smart-scraper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export default defineCommand({
if (args["plain-text"]) params.plain_text = true;

out.start("Scraping");
const result = await scrapegraphai.smartScraper(key, params, out.poll);
const result = await scrapegraphai.smartScraper(key, params);
out.stop(result.elapsedMs);

if (result.data) out.result(result.data);
Expand Down
Loading