VOOZH about

URL: https://apify.com/fresh_cliff/github-scraper

⇱ GitHub Repository Data Scraper Β· Apify


Pricing

$10.00/month + usage

Go to Apify Store

GitHub Repository Scraper

This actor scrapes detailed information from GitHub repositories using reliable HTTP requests and HTML parsing. It extracts repository metadata including star counts, fork counts, topics/tags, license information, primary programming language, and last updated timestamps.

Pricing

$10.00/month + usage

Rating

0.0

(0)

Developer

πŸ‘ Brennan Crawford

Brennan Crawford

Maintained by Community

Actor stats

2

Bookmarked

57

Total users

3

Monthly active users

a year ago

Last modified

Share

GitHub Repository Scraper for Apify

A Python-based Apify actor that scrapes GitHub repository information using requests and BeautifulSoup.

Features

  • Extracts repository information including:
    • Full name (owner/repo)
    • Star count
    • Description
    • Primary programming language
    • Topics/tags
    • Last updated time
    • License information
    • Fork count
  • Written in Python using requests and BeautifulSoup for reliable scraping
  • Built for the Apify platform

Files

  • apify_actor.py - The main actor code for Apify deployment
  • requests_github_scraper.py - Standalone GitHub scraper (for local testing)
  • INPUT_SCHEMA.json - Input schema for the Apify actor
  • requirements.txt - Python dependencies
  • package.json - Actor metadata for Apify

Local Testing

  1. Install dependencies: pip install -r requirements.txt
  2. Run the local version: python requests_github_scraper.py
  3. Check results in the apify_storage directory

Deploying to Apify

Prerequisites

  1. Create an Apify account if you don't have one
  2. Install the Apify CLI: npm install -g apify-cli
  3. Log in to your Apify account: apify login

Deployment Steps

  1. Initialize your project folder (if you haven't already):

    apify init github-scraper
  2. Modify the Dockerfile to use Python:

    FROM apify/actor-python:3.9
    # Copy source code
    COPY . ./
    # Install dependencies
    RUN pip install --no-cache-dir -r requirements.txt
    # Define how to run the actor
    CMD ["python3", "apify_actor.py"]
  3. Push your actor to Apify:

    apify push
  4. After pushing, your actor will be available in the Apify Console.

Running on Apify

  1. Navigate to your actor in the Apify Console
  2. Click on "Run" in the top-right corner
  3. Enter the GitHub repository URLs you want to scrape in the Input form
  4. Click "Run" to start the actor
  5. Access the results in the "Dataset" tab once the run is complete

Input Options

  • repoUrls (required): Array of GitHub repository URLs to scrape
  • sleepBetweenRequests (optional): Delay between requests in seconds (default: 3)

Example Input

{
"repoUrls":[
"https://github.com/microsoft/playwright",
"https://github.com/facebook/react",
"https://github.com/tensorflow/tensorflow"
],
"sleepBetweenRequests":5
}

Output Format

The actor provides clean, well-structured data for each GitHub repository in the following format:

{
"url":"https://github.com/microsoft/playwright",
"name":"playwright",
"owner":"microsoft",
"fullName":"microsoft/playwright",
"description":"Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.",
"stats":{
"stars":"71.2k",
"forks":"4k"
},
"language":"TypeScript",
"topics":[
"electron",
"javascript",
"testing",
"firefox",
"chrome",
"automation",
"web",
"test",
"chromium",
"test-automation",
"testing-tools",
"webkit",
"end-to-end-testing",
"e2e-testing",
"playwright"
],
"lastUpdated":"2025-03-17T17:00:47Z",
"license":"Apache-2.0 license"
}

Output Fields:

FieldTypeDescription
urlStringThe full URL of the GitHub repository
nameStringRepository name (without owner)
ownerStringUsername or organization that owns the repository
fullNameStringComplete repository identifier (owner/name)
descriptionStringRepository description
stats.starsStringNumber of stars the repository has
stats.forksStringNumber of forks the repository has
languageStringPrimary programming language
topicsArrayList of topics/tags associated with the repository
lastUpdatedStringISO timestamp of the last update
licenseStringRepository license information

This structured output format makes it easy to:

  • Display repository cards in your applications
  • Create data visualizations
  • Filter and sort repositories by various attributes
  • Export to other data formats

You might also like

GitHub Repositories Scraper - CheapπŸ“¦πŸ™πŸ”

scrapestorm/github-repositories-scraper-cheap

πŸ” Easily collect repositories from GitHub Provide a GitHub profile URL or username and extract detailed repository information such as repository name, description, language, stars, topics & repository link πŸ“¦πŸ™ Perfect for open-source analysis, developer scouting & market intelligence πŸ“ŠπŸ”₯

2

GitHub Repository Scraper

vulnv/github-repository-scraper

Scrape and extract GitHub repository data, metadata, statistics, stars, forks, issues, and project information from multiple repositories at once.

GitHub repositories Scraper - Low-costπŸ’²πŸ”₯πŸ“¦πŸ™

delectable_incubator/github-repositories-scraper-low-cost

Scrape GitHub repositories πŸ“¦πŸ™ with a powerful developer data scraper. Extract repository names, descriptions, programming languages, stars, topics, forks, and repository URLs from any GitHub profile. Ideal for open-source analysis, developer scouting, technology research and market insights πŸ“ŠπŸš€

GitHub Repos Scraper

gio21/github-repos-scraper

Search and scrape GitHub repositories. Extract stars, forks, language, license, topics, and more from the GitHub public API.

Github Repository Analyzer

actually_good_at_this/apify-github-repository-analyzer

GitHub Repository Analyzer extracts comprehensive repository metrics using the official GitHub API: stars, forks, watchers, contributors, commit activity, and issues/PRs.

πŸ™ GitHub Repository Intelligence - Repos & READMEs

benthepythondev/github-repository-intelligence

Extract repository metadata, README content, and documentation from GitHub using the official REST API. Perfect for LLM training data, developer research, and competitive analysis. Search by keywords or fetch specific repositories.