// $url = "http://we.keepitsimple.co.il/user/149/";
// $url = 'http://www.b144.co.il/BusinessResults.aspx?_business=%D7%A7%D7%95%D7%A1%D7%9E%D7%98%D7%99%D7%A7%D7%90%D7%99%D7%95%D7%AA&_page_no=1';
// $url = "https://www.t.co.il/531-%D7%A7%D7%95%D7%A1%D7%9E%D7%98%D7%99%D7%A7%D7%90%D7%99%D7%95%D7%AA.html";
// $url = 'http://www.b144.co.il/BusinessResults.aspx?TS01568688_id=3&_business=%D7%A7%D7%95%D7%A1%D7%9E%D7%98%D7%99%D7%A7%D7%90%D7%99%D7%95%D7%AA&_page_no=1';
// $url = "http://www.imakeup.co.il/Suppliers/2/%D7%90%D7%99%D7%A4%D7%95%D7%A8+%D7%9C%D7%90%D7%99%D7%A8%D7%95%D7%A2%D7%99%D7%9D.html";
$url = 'http://www.lawyerinfo.co.il/lawyer/5332-%D7%A2%D7%99%D7%9C%D7%99-%D7%90%D7%91%D7%99%D7%90%D7%9C';
$emailList = array();
$phoneList = array();
$urlList = array($url);
// test
// $extractor = new Extractor($url);
// $urlList = array_merge($urlList, $extractor -> getAllURLFromHTML());
// print var_dump($urlList);
$extractor = new Extractor($url);
$extractor->getEmailFromHTML($emailList);
$extractor->getNumbersFromHTML($phoneList);
print var_dump($emailList);
print var_dump($phoneList);
// $extractor = new Extractor($url2);
// $extractor -> getEmailFromHTML($emailList);
// $extractor -> getNumbersFromHTML($phoneList);
// print var_dump($emailList);
// print var_dump($phoneList);
// ---- main script
// if ($option == 'deep') {
// 	$extractor = new Extractor($url);
// 	$urlList = array_merge($urlList, $extractor -> getAllURLFromHTML());
// }
// for ($i = 0; $i < count($urlList); $i++) {
// 	// skip url if the link is for email
// 	if (strpos($urlList[$i], 'mailto') !== false) { continue; }