CommonCrawl.Parquet 1.1.0

dotnet add package CommonCrawl.Parquet --version 1.1.0
                    
NuGet\Install-Package CommonCrawl.Parquet -Version 1.1.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="CommonCrawl.Parquet" Version="1.1.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="CommonCrawl.Parquet" Version="1.1.0" />
                    
Directory.Packages.props
<PackageReference Include="CommonCrawl.Parquet" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add CommonCrawl.Parquet --version 1.1.0
                    
#r "nuget: CommonCrawl.Parquet, 1.1.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package CommonCrawl.Parquet@1.1.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=CommonCrawl.Parquet&version=1.1.0
                    
Install as a Cake Addin
#tool nuget:?package=CommonCrawl.Parquet&version=1.1.0
                    
Install as a Cake Tool

CommonCrawl.Parquet

English | 中文 | 日本語 | Français

A .NET library for reading Common Crawl index data stored in Parquet format. This library provides strongly-typed models and an efficient reader to process Common Crawl index records.

Features

  • Strongly Typed Models: Maps Common Crawl Parquet schema to the IndexTableRecord C# class.
  • Efficient Reading: Uses ParquetReader to read Parquet files asynchronously.
  • Filtering: Supports predicates to filter records while reading.

Installation

Install the package via NuGet:

NuGet

dotnet add package CommonCrawl.Parquet

Usage

You can use ParquetReader.Instance to read Parquet files. The reader returns an IAsyncEnumerable<T>, allowing for memory-efficient processing.

using CommonCrawl.Readers;
using CommonCrawl.Models;

// Read from a file path
var reader = ParquetReader.Instance;
string filePath = "path/to/cc-index.parquet";

await foreach (var record in reader.ReadAsAsyncEnumerable<IndexTableRecord>(filePath))
{
    Console.WriteLine($"URL: {record.Url}, Fetch Time: {record.FetchTime}");
}

// Read with a filter (e.g., only successful fetches)
await foreach (var record in reader.ReadAsAsyncEnumerable<IndexTableRecord>(filePath, r => r.FetchStatus == 200))
{
    Console.WriteLine($"Found valid URL: {record.Url}");
}

Models

IndexTableRecord

Represents a single record in the Common Crawl index. Key properties include:

  • Url: The full URL string.
  • UrlSurtKey: SURT URL key for canonicalization.
  • UrlHostName: Hostname of the URL.
  • FetchTime: Timestamp of the capture.
  • FetchStatus: HTTP status code.
  • ContentMimeType: MIME type of the content.
  • WarcFilename: Location of the WARC file in Common Crawl's S3 bucket.
  • WarcRecordOffset & WarcRecordLength: Position of the record in the WARC file.

For a full list of fields, refer to the source code or the Common Crawl Index Schema.

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.1.0 137 12/26/2025
1.0.9 150 12/26/2025
1.0.8 144 12/26/2025
1.0.0 150 12/26/2025