Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/javierluraschi/warc
Read warc files into R
https://github.com/javierluraschi/warc
Last synced: about 1 month ago
JSON representation
Read warc files into R
- Host: GitHub
- URL: https://github.com/javierluraschi/warc
- Owner: javierluraschi
- License: mit
- Created: 2018-03-15T19:49:30.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-03-15T23:07:33.000Z (almost 7 years ago)
- Last Synced: 2024-12-23T10:45:49.442Z (about 1 month ago)
- Language: C++
- Size: 447 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.Rmd
- License: LICENSE
Awesome Lists containing this project
README
---
title: "Read warc files into R"
output:
github_document:
fig_width: 9
fig_height: 5
---```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = TRUE)
```This package provides a `read_warc()` function to read WARC files. This allows to read files
from the [Common Crawl](https://commoncrawl.org/) project.## Installation
```{r eval=FALSE}
devtools::install_github("javierluraschi/warc")
```## Intro
A sample WARC file is included in this package, it's path can be retrieved with:
```{r}
warc_file <- system.file("samples/sample.warc.gz", package = "warc")
```Read a warc file with:
```{r}
warc::read_warc(warc_file)
```As part of reading a WARC file, a filter can be applied over each WARC entry or over
each line. For instance, to retrieve all links referenced under an `