PHPackages                             jansuchanek/nscraper - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. jansuchanek/nscraper

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

jansuchanek/nscraper
====================

Web scraper for competitor product analysis — Heureka, Google, JSON-LD extraction

v1.0.0(6d ago)02↓100%MITPHPPHP &gt;=8.1CI failing

Since Mar 19Pushed 4d agoCompare

[ Source](https://github.com/JanSuchanek/nscraper)[ Packagist](https://packagist.org/packages/jansuchanek/nscraper)[ RSS](/packages/jansuchanek-nscraper/feed)WikiDiscussions main Synced today

READMEChangelogDependencies (1)Versions (2)Used By (0)

NScraper — Web Scraper for Product Analysis
===========================================

[](#nscraper--web-scraper-for-product-analysis)

Competitor product scraping — Heureka.cz, Google snippets, JSON-LD extraction. Zero dependencies beyond ext-curl.

Installation
------------

[](#installation)

```
composer require jansuchanek/nscraper
```

Usage
-----

[](#usage)

```
use NScraper\WebScraper;

$scraper = new WebScraper();

// Scrape Heureka.cz product descriptions
$data = $scraper->scrapeHeureka('Samsung Galaxy S24');
// ['descriptions' => [...], 'source' => 'heureka']

// Google search snippets
$data = $scraper->scrapeGoogle('Samsung Galaxy S24');

// Scrape any URL (JSON-LD, meta, content extraction)
$desc = $scraper->scrapeUrl('https://example.com/product/123');

// Build context for AI pipelines
$context = $scraper->buildCompetitorContext('Samsung Galaxy S24');
```

Extraction Strategies
---------------------

[](#extraction-strategies)

1. **JSON-LD** structured data (`@type: Product`)
2. **Meta description** tag
3. **CSS selectors** — `.product-desc`, `.description`, `#description`

Requirements
------------

[](#requirements)

- PHP &gt;= 8.1
- ext-curl

###  Health Score

39

—

LowBetter than 87% of packages

Maintenance99

Actively maintained with recent releases

Popularity3

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity42

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

6d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/38ce2f53e74d810d50aca863e1a3b954f34f1629dd01a6a8c7d4d582e7459e63?d=identicon)[JanSuchanek](/maintainers/JanSuchanek)

---

Top Contributors

[![JanSuchanek](https://avatars.githubusercontent.com/u/310020?v=4)](https://github.com/JanSuchanek "JanSuchanek (6 commits)")

### Embed Badge

![Health badge](/badges/jansuchanek-nscraper/health.svg)

```
[![Health](https://phpackages.com/badges/jansuchanek-nscraper/health.svg)](https://phpackages.com/packages/jansuchanek-nscraper)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
