PHPackages                             felix/scraper - 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. felix/scraper

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

felix/scraper
=============

Librería para raspar una web.

v1.4.15(8y ago)046MITPHPPHP &gt;=5.5.0

Since Sep 14Pushed 8y ago1 watchersCompare

[ Source](https://github.com/soyFelixBarros/Scraper)[ Packagist](https://packagist.org/packages/felix/scraper)[ Docs](https://github.com/soyFelixBarros/Scraper)[ RSS](/packages/felix-scraper/feed)WikiDiscussions master Synced 3d ago

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

Scraper
=======

[](#scraper)

[![Latest Version on Packagist](https://camo.githubusercontent.com/124b10a384021f5649a3953659af63444ea3cfc2fecdcf022063bb69115b33a6/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f66656c69782f736372617065722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/felix/scraper)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/0553045da276f99ab9f970cdcb30cd6d168e30264db38b9d55bb74130a5ad5e0/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f736f7946656c6978426172726f732f536372617065722f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/soyFelixBarros/Scraper)[![Quality Score](https://camo.githubusercontent.com/b6feb6678aa4c0d02b557246de9158060c6bf03e06f092761e758f59e7e120c7/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f736f7946656c6978426172726f732f536372617065722e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/soyFelixBarros/Scraper)[![StyleCI](https://camo.githubusercontent.com/4a195ec3d36a092c81c57dd00abcc0066fb376a753cd22a1fffaf7e8efbbd9aa/68747470733a2f2f7374796c6563692e696f2f7265706f732f3130323631383736322f736869656c64)](https://styleci.io/repos/102618762)[![Total Downloads](https://camo.githubusercontent.com/3ae54164f0f980fce9b368b55bb7885e28618ff26359b0e5f342ce8670e628b0/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f66656c69782f736372617065722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/felix/scraper)

> Raspar una web y obtener su contenido.

Instalar
--------

[](#instalar)

*Necesitas **PHP &gt;= 7.0**, pero se recomienda la última versión estable de PHP.*

La forma recomendada de instalar Scraper en tu proyecto es a través de [Composer](https://getcomposer.org/). Ejecute el siguiente comando para instalar la última versión estable de Scraper:

```
composer require felix/scraper
```

Usar
----

[](#usar)

### Raspar página web

[](#raspar-página-web)

Para obtener el contenido de una página web usamos el método `extractring()`, pasándole la **URL** y el **XPATH**:

```
use Felix\Scraper\Crawler;

$data = Crawler::extracting('https://example.com', '//html/body/div/h1')

return $data->text(); // Example Domain
```

### Limpiar datos

[](#limpiar-datos)

```
use Felix\Scraper\Str;

$str = Str::clean("&nbsp; String  Examples \n");

return $str; // -> String Examples
```

### Normalizar URL

[](#normalizar-url)

```
use Felix\Scraper\Url;

$url = Url::normalize('//example.com/post-title');

return $url; // -> http://example.com/post-title
```

Desarrolladores
---------------

[](#desarrolladores)

### Instalación

[](#instalación)

Clonando el proyecto e instalando las dependencias:

```
git clone https://github.com/soyFelixBarros/Scraper.git
cd scraper
composer install
```

### Cambios

[](#cambios)

Por favor, vea [CHANGELOG](CHANGELOG.md) para más información sobre lo que ha cambiado recientemente.

### Pruebas

[](#pruebas)

```
vendor/bin/phpunit
```

Licencia MIT
------------

[](#licencia-mit)

Por favor, consulte el [archivo de licencia](LICENSE.md) para obtener más información.

---

Desarrollado por [Felix Barros](https://twitter.com/soyFelixBarros)

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity67

Established project with proven stability

 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

Every ~8 days

Recently: every ~2 days

Total

20

Last Release

2997d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/ddccb0854023d5819795687eb4d11c8db256f13dd8523925e59733accd6adacd?d=identicon)[soyfelixbarros](/maintainers/soyfelixbarros)

---

Top Contributors

[![soyFelixBarros](https://avatars.githubusercontent.com/u/2101533?v=4)](https://github.com/soyFelixBarros "soyFelixBarros (120 commits)")

---

Tags

scrapingwebwebscraping

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/felix-scraper/health.svg)

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

###  Alternatives

[onokumus/metismenu

A jQuery menu plugin

2.0k263.3k5](/packages/onokumus-metismenu)[crwlr/crawler

Web crawling and scraping library.

37214.8k2](/packages/crwlr-crawler)[jakubkulhan/chrome-devtools-protocol

Chrome Devtools Protocol client for PHP

183967.6k3](/packages/jakubkulhan-chrome-devtools-protocol)[dusterio/link-preview

Link preview generation for PHP with Laravel support

126326.6k3](/packages/dusterio-link-preview)[botman/driver-web

Web driver for BotMan

86658.7k7](/packages/botman-driver-web)[tecnickcom/tc-lib-color

PHP library to manipulate various color representations

247.2M9](/packages/tecnickcom-tc-lib-color)

PHPackages © 2026

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