Skip to content

ntbosscher/php-web-crawler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

PHP Web Crawler

This CLI script will crawl a given url for any path that resolves within the given domain or url path provided. An optional folder parameter allows you to download to a specific location.

Usage

php crawl.php <url> <optional:output-dir>

Examples

php crawl.php http://www.foo.com

php crawl.php http://www.foo.com ~/websites/foo.com

php crawl.php http://www.foo.com/some-sub-dir/
# will only download files within /some-sub-dir

Tests

Selected tests can be run using the following: Note: this has very little code coverage, only used for some basic functions.

php test/test.php

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages