darvinstudio/darvin-crawler-bundle

This bundle provides console command that detects broken links on your website.

Installs: 1 048

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 3

Forks: 0

Open Issues: 0

Type:symfony-bundle

6.0.4 2021-04-19 05:59 UTC

This package is auto-updated.

Last update: 2024-04-19 12:12:18 UTC


README

This bundle provides console command that detects broken links on your website.

Sample configuration

# config/packages/dev/darvin_crawler.yaml
darvin_crawler:
    default_uri: https://example.com # Default value of command's "uri" argument
    blacklists:
        parse: # Content from URIs matching these regexes will not be parsed
            - '/\/filtered\//'
        visit: # URIs matching these regexes will not be visited
            - '/\/filtered\//'

Usage

Crawl default URI:

$ bin/console darvin:crawler:crawl

Crawl specified URI:

$ bin/console darvin:crawler:crawl https://example.com

Display all visited links:

$ bin/console darvin:crawler:crawl https://example.com -v