GitHub Repo Scraper - Code & Docs to LLM-Ready Text avatar

GitHub Repo Scraper - Code & Docs to LLM-Ready Text

Pricing

from $0.10 / 1,000 results

Go to Apify Store
GitHub Repo Scraper - Code & Docs to LLM-Ready Text

GitHub Repo Scraper - Code & Docs to LLM-Ready Text

Chat with a repo: turn any GitHub repository into LLM-ready text - README, file tree and source files as clean text with token counts, plus repo metadata and optional issues. Feed a codebase to ChatGPT/Claude or a RAG pipeline. Official GitHub API, no token required. Export JSON, CSV or Markdown.

Pricing

from $0.10 / 1,000 results

Rating

0.0

(0)

Developer

Get Anything

Get Anything

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

20 hours ago

Last modified

Share

GitHub Repo Scraper — Code & Docs to LLM-Ready Text

Chat with a repo. Turn any GitHub repository into clean, LLM-ready text: the README, the file tree, and the contents of selected source/doc files — each with a token count — plus repo metadata and (optionally) recent issues. Built for feeding a codebase into ChatGPT / Claude or a RAG pipeline.

Why this one

AI coding assistants and RAG-over-code are one of the biggest LLM use cases. This Actor gives you the whole repo as structured text in one run — no cloning, no git, no parsing HTML. It uses GitHub's official REST API plus raw.githubusercontent.com, so it's fast and reliable. Works without a token (60 req/h); add one for 5,000 req/h.

What it does

  • Scrape multiple repos by owner/repo or URL.
  • README + file tree + file contents (filtered by glob patterns).
  • Sensible include/exclude defaults (code + docs in; node_modules, lockfiles, binaries out).
  • Caps for max files, file size, and chars per file to control token cost.
  • Optional issues as text.
  • Export to JSON, CSV, or Markdown, or pull via the Apify API.

Input

FieldDescription
reposRepositories as owner/repo or GitHub URLs.
includeReadme / includeFileTree / includeFileContentsWhat to return.
includePatterns / excludePatternsGlob filters (defaults provided).
maxFiles / maxFileSizeKB / maxCharsPerFileToken-budget caps.
includeIssues / maxIssuesOptionally pull issues.
githubTokenOptional PAT for a higher rate limit.

Example

{
"repos": ["apify/apify-sdk-python"],
"includeReadme": true,
"includeFileContents": true,
"includePatterns": ["*.py", "*.md"],
"maxFiles": 50,
"maxFileSizeKB": 100
}

Output

One repo record (metadata + README + tree), then one file record per selected file:

{ "resultType": "file", "repo": "apify/apify-sdk-python", "path": "src/apify/actor.py",
"content": "from __future__ ...", "tokensApprox": 1820,
"url": "https://github.com/apify/apify-sdk-python/blob/master/src/apify/actor.py" }

Use cases

  • RAG over a codebase — chunk file.content into a vector DB, ask questions about the repo.
  • LLM code review / onboarding — paste README + key files into ChatGPT/Claude.
  • Docs generation — summarise a repo from its README and source.
  • Dependency / license audits — pull metadata across many repos.

FAQ

Do I need a token? No — but a token raises the limit to 5,000 req/h for large runs.

How are binary files handled? Skipped (size cap + a binary guard); only text is returned.