PHPackages                             zymawy/laravel-intelligent-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. zymawy/laravel-intelligent-scraper

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

zymawy/laravel-intelligent-scraper
==================================

Service to scrape a web page easily without knowing their HTML structure.

0158PHP

Since Mar 10Pushed 3y agoCompare

[ Source](https://github.com/zymawy/laravel-intelligent-scraper)[ Packagist](https://packagist.org/packages/zymawy/laravel-intelligent-scraper)[ RSS](/packages/zymawy-laravel-intelligent-scraper/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Laravel Intelligent Scraper
===========================

[](#laravel-intelligent-scraper)

[![Latest Version](https://camo.githubusercontent.com/a2209d4f8103d78f2b1dbb3c450ffeb379d7d2759c9e98bb63b04848369e204f/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f6a6f736b66672f6c61726176656c2d696e74656c6c6967656e742d736372617065722e7376673f7374796c653d666c61742d737175617265)](https://github.com/joskfg/laravel-intelligent-scraper/releases)[![Software License](https://camo.githubusercontent.com/36cfc741510e076bec951c1421a2b1c3a5553e953fcdb378339626a5f33c1e8d/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d417061636865253230322e302d626c75652e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://github.com/joskfg/laravel-intelligent-scraper/actions/workflows/build.yml/badge.svg)](https://github.com/joskfg/laravel-intelligent-scraper/actions/workflows/build.yml)[![Total Downloads](https://camo.githubusercontent.com/81be1575d7afbfcc5389e0875b30f69eaae993af97faa3c4c2c77dff8e3c414e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6a6f736b66672f6c61726176656c2d696e74656c6c6967656e742d736372617065722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/joskfg/laravel-intelligent-scraper)[![Average time to resolve an issue](https://camo.githubusercontent.com/c2602620331a080dd98ed2a85313a578a49f0021af16002e2f4d4c77d6d58c5f/687474703a2f2f697369746d61696e7461696e65642e636f6d2f62616467652f7265736f6c7574696f6e2f6a6f736b66672f6c61726176656c2d696e74656c6c6967656e742d736372617065722e7376673f7374796c653d666c61742d737175617265)](http://isitmaintained.com/project/joskfg/laravel-intelligent-scraper "Average time to resolve an issue")[![Percentage of issues still open](https://camo.githubusercontent.com/8376eee8e8b4207a448b97bcc114152094c07ffc88098637ce7179a61da9b662/687474703a2f2f697369746d61696e7461696e65642e636f6d2f62616467652f6f70656e2f6a6f736b66672f6c61726176656c2d696e74656c6c6967656e742d736372617065722e7376673f7374796c653d666c61742d737175617265)](http://isitmaintained.com/project/joskfg/laravel-intelligent-scraper "Percentage of issues still open")

This packages offers a scraping solution that doesn't require to know the web HTML structure and it is autoconfigured when some change is detected in the HTML structure. This allows you to continue scraping without manual intervention during a long time.

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

[](#installation)

To install, use composer:

```
composer require joskfg/laravel-intelligent-scraper
```

To publish the scraper config, you can use

```
php artisan vendor:publish --provider="Joskfg\LaravelIntelligentScraper\ScraperProvider" --tag=config
```

The migrations for database are registered in the service provider, so you can execute the migrate command to create the needed tables.

```
php artisan migrate
```

### Dependencies

[](#dependencies)

This package depends on [goutte](https://packagist.org/packages/fabpot/goutte) that depends on [guzzle](https://packagist.org/packages/guzzle/guzzle), so you can customize the client to your requisites. The only requirement for this package is that you must include the `http_error` midleware in the handle stack.

Example:

```
