Download the PHP package peterujah/email-crawl without Composer
On this page you can find all versions of the php package peterujah/email-crawl. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download peterujah/email-crawl
More information about peterujah/email-crawl
Files in peterujah/email-crawl
Package email-crawl
Short Description PHP Email Web Crawler. using curl and command line interface to extract emails from website.
License MIT
Homepage https://github.com/peterujah/email-crawl
Informations about the package email-crawl
email-crawl
PHP Email Web Crawler, is a simple and easy to use class that uses curl & command line interface to extract email address from websites. It also has the feature to deep extract email from website link which is found from the initial target website.
Installation
Installation is super-easy via Composer:
Basic Usage
Initalize email crawl instance
Star email crawling scan
Get scanned response and return CrawlResponse instance
Get response emails separate in a new line
Get response emails separate with a comma
Get response emails as an array
Print response email
Save response emails to file. This will save result as json string
Save response emails to file. If string data is passed it will save it, els it will save result as json string
Example
Create a file name it craw.php, inside the file add this example code.
With this example you can run your craw directly from command line, browser or php shell_exec
.
Execute craw through command line interface, run the below command
Execute craw through php shell_exec, create a file call exec.php and add below example script.
Note: change PHP_SHELL_EXECUTION_PATH
to your php executable path.
Once done navigate to https://mycraw.example.com/exec.php
ATTENTION
Is advisable to run this code in command line interface for be better performance.