pagerankr hex logo, white on black

pagerankr models PageRank on crawl data for SEO work. Give it an edge list, a redirect report or a Screaming Frog crawl export, and it resolves redirects and canonicals, builds the link graph, and scores how authority flows through the site’s internal links. Beyond PageRank it computes HITS, SALSA, TrustRank and topic-sensitive PageRank, compares models across parameter sweeps, simulates proposed link and redirect changes, and exports the graph for other tools. It is for SEO practitioners and analysts who want to measure internal linking from the crawls they already have.

Installation

# From CRAN
install.packages("pagerankr")

# From r-universe
install.packages(
  "pagerankr",
  repos = c("https://bart-turczynski.r-universe.dev", "https://cloud.r-project.org")
)

Quick Start

library(pagerankr)

edges <- data.frame(
  from = c("http://example.com/home",
           "http://example.com/about",
           "http://example.com/blog"),
  to   = c("http://example.com/about",
           "http://example.com/home",
           "http://example.com/home")
)

redirects <- data.frame(
  from = "http://example.com/old-blog",
  to   = "http://example.com/blog"
)

pr <- pagerank(edges, redirects_df = redirects)
print(pr)

Learn More

The documentation site, https://bart-turczynski.gitlab.io/pagerankr/, holds the function reference and these articles:

The same material ships with the package: help(package = "pagerankr") and vignette(package = "pagerankr").

To report a bug or request an enhancement, use GitLab Issues. Please read CONTRIBUTING.md before proposing a change. For privately reported security vulnerabilities, follow SECURITY.md.

Code of Conduct

Please note that the pagerankr project is released with a Contributor Code of Conduct. By contributing to this project, you agree to abide by its terms.

License

MIT License. See the LICENSE file for details.