alc / sitemap-crawler
Crawl sitemap.xml recursively and return collected urls as array
Installs: 2 463
Dependents: 2
Suggesters: 0
Security: 0
Stars: 5
Watchers: 1
Forks: 2
Open Issues: 0
Requires
- php: ^7.2.5
- alc/dom-parser-helper: ^3.0
This package is auto-updated.
Last update: 2024-10-27 00:18:09 UTC
README
Crawl sitemap.xml recursively and return collected urls as array
Install
composer require alc/sitemap-crawler
Usage
require __DIR__.'/vendor/autoload.php'; use Alc\SitemapCrawler; $crawler = new SitemapCrawler(); $data = $crawler->crawl('https://chemel.blog/sitemap.xml'); print_r($data);
Usage in a terminal:
php crawl.php https://chemel.blog/sitemap.xml