2017 © Pedro Peláez
 

symfony-bundle grabber-bundle

The NzoGrabberBundle is a Symfony Bundle used to Crawl and to Grab all types of links and Tags for (img, js, css) from any website

image

nzo/grabber-bundle

The NzoGrabberBundle is a Symfony Bundle used to Crawl and to Grab all types of links and Tags for (img, js, css) from any website

  • Thursday, August 17, 2017
  • by NAYZO
  • Repository
  • 2 Watchers
  • 6 Stars
  • 41 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 8 % Grown

The README.md

NzoGrabberBundle

Build Status Latest Stable Version, (*1)

The NzoGrabberBundle is a Symfony Bundle used to Crawl and to Grab all types of links, URLs and Tags for (img, js, css) from any website., (*2)

Features include:, (*3)

  • Compatible Symfony version 3 & 4
  • Url Grabber/Crawler for HTTP/HTTPS
  • Url Grabber/Crawler for HREF / SRC / IMG types
  • Exclude any type of file by extension
  • Prevent specified URLs from Grabbing
  • Compatible php version 5 & 7

Installation

Through Composer:

Install the bundle:, (*4)

$ composer require nzo/grabber-bundle

Register the bundle in app/AppKernel.php (Symfony V3):

``` php // app/AppKernel.php, (*5)

public function registerBundles() { return array( // ... new Nzo\GrabberBundle\NzoGrabberBundle(), ); }, (*6)


Usage ----- In the controller use the Grabber service and specify the options needed: Get all URLs: ```php public function indexAction($url) { $tableOfUrls = $this->get('nzo_grabber.grabber')->grabUrls($url); //.... }

OR .. get all URLs not recursively:, (*7)

Get all URLs no recursive:, (*8)

     public function indexAction($url)
    {
        $tableOfUrls = $this->get('nzo_grabber.grabber')->grabUrlsNoRecursive($url);

        //....
    }

OR .. get all URLs that does not figure in the exclude array:, (*9)

     public function indexAction($url)
    {
        $notScannedUrlsTab = ['http://www.exemple.com/about']
        $tableOfUrls = $this->get('nzo_grabber.grabber')->grabUrls($url, $notScannedUrlsTab);

        //....
    }

OR .. you can exclude URLs that contains a specified text and also you can select by file extension:, (*10)

     public function indexAction($url)
    {
        $exclude = 'someText_to_exclude';
        $tableOfUrls = $this->get('nzo_grabber.grabber')->grabUrls($url, null, $exclude, array('png', 'pdf'));

        //....
    }

OR .. get all URLs selected by file extension:, (*11)

     public function indexAction($url)
    {
        $tableOfUrls = $this->get('nzo_grabber.grabber')->grabUrls($url, null, null, array('png', 'pdf'));

        //....
    }

OR .. get all Img Files from the specified URL:, (*12)

     public function indexAction($url)
    {
        $img = $this->get('nzo_grabber.grabber')->grabImg($url);

        //....
    }

OR .. get all Js Files from the specified URL:, (*13)

     public function indexAction($url)
    {
        $js = $this->get('nzo_grabber.grabber')->grabJs($url);

        //....
    }

OR .. get all Css Files from the specified URL:, (*14)

     public function indexAction($url)
    {
        $css = $this->get('nzo_grabber.grabber')->grabCss($url);

        //....
    }

OR .. get all Css, Img and Js Files from the specified URL:, (*15)

     public function indexAction($url)
    {
        $extrat = $this->get('nzo_grabber.grabber')->grabExtrat($url);

        //....
    }

License

This bundle is under the MIT license. See the complete license in the bundle:, (*16)

See Resources/doc/LICENSE, (*17)

The Versions

17/08 2017

dev-master

9999999-dev

The NzoGrabberBundle is a Symfony Bundle used to Crawl and to Grab all types of links and Tags for (img, js, css) from any website

  Sources   Download

MIT

The Requires

 

The Development Requires

url search link crawl domcrawler scan grab

17/08 2017

2.0.0

2.0.0.0

The NzoGrabberBundle is a Symfony Bundle used to Crawl and to Grab all types of links and Tags for (img, js, css) from any website

  Sources   Download

MIT

The Requires

 

The Development Requires

url search link crawl domcrawler scan grab

18/04 2015

1.2

1.2.0.0

The NzoGrabberBundle is a Symfony2 Bundle used to Crawl and to Grab all types of links and Tags for (img, js, css) from any website

  Sources   Download

MIT

The Requires

 

url search link crawl domcrawler scan grab

15/03 2015

1.1

1.1.0.0

The NzoGrabberBundle is a Symfony2 Bundle used to Crawl and to Grab all types of links and Tags for (img, js, css) from any website

  Sources   Download

MIT

The Requires

 

url search link crawl domcrawler scan grab

31/01 2015

1.0

1.0.0.0

The NzoGrabberBundle is a Symfony2 Bundle used to Crowl and to Grab all types of links and Tags for (img, js, css) from any website

  Sources   Download

MIT

The Requires

 

url search link scrape crawl domcrawler scan grabbe