mail crowler

Page 1 of 1

3 Replies - 306 Views - Last Post: 03 February 2013 - 10:52 AM Rate Topic: -----

#1 traverso85  Icon User is offline

  • New D.I.C Head

Reputation: -6
  • View blog
  • Posts: 36
  • Joined: 02-August 12

mail crowler

Posted 03 February 2013 - 08:30 AM

Hi, i tray to made a little crowler, that have to take all email addres in one website.

have found method for look at all page of site, but probably script have some problem because return a blank arrays

ther is code.

for ($i=0; $i<4000; $i++){
		$url = "http://www.viacriatusurbis.org/?page_id=188&ID=$i";	
	
		$page = file_get_contents($url);
		
		$start = '<td class="TabellaDatiCella">';
		$end = '</td>';
		$data = substr($page, $start, $end);
		
		$pattern = '<a id="TabellaDatiParrocchieRigaEmailCellalink" href="mailto:([\w\-\.]+)@((\[([0-9]{1,3}\.){3}[0-9]{1,3}\])|(([\w\-]+\.)+)([a-zA-Z]{2,4}))">';
		preg_match_all($pattern, $data, $matches);
				
		echo "<pre>";
		var_dump($matches);
		echo "</pre>";
		
		/*for ($x=$inizio;$x<=$fine;$x++) {
    		$results[ ] = array('valore passato tra i tag del link' => 'link.');
		}*/
	}

i need to take che value of href with email adddress and put in associative arrays that have for key the value of html tag that contain email link.
someone can help? thanks

This post has been edited by traverso85: 03 February 2013 - 08:31 AM


Is This A Good Question/Topic? 0
  • +

Replies To: mail crowler

#2 tlhIn`toq  Icon User is offline

  • Please show what you have already tried when asking a question.
  • member icon

Reputation: 5629
  • View blog
  • Posts: 12,076
  • Joined: 02-June 10

Re: mail crowler

Posted 03 February 2013 - 09:02 AM

I might be wrong - but most of us work in legitimate coding jobs and don't really care for spammers that crawl through website with this sort of crap. I would be surprised if someone helped you with this.

Especially someone that just says "It doesn't work. Here is the code. Fix it for me."
Was This Post Helpful? 0
  • +
  • -

#3 traverso85  Icon User is offline

  • New D.I.C Head

Reputation: -6
  • View blog
  • Posts: 36
  • Joined: 02-August 12

Re: mail crowler

Posted 03 February 2013 - 09:11 AM

View PosttlhIn`toq, on 03 February 2013 - 09:02 AM, said:

I might be wrong - but most of us work in legitimate coding jobs and don't really care for spammers that crawl through website with this sort of crap. I would be surprised if someone helped you with this.

Especially someone that just says "It doesn't work. Here is the code. Fix it for me."


have asked help not moral.... ;)
Was This Post Helpful? -6
  • +
  • -

#4 GunnerInc  Icon User is offline

  • "Hurry up and wait"
  • member icon




Reputation: 858
  • View blog
  • Posts: 2,302
  • Joined: 28-March 11

Re: mail crowler

Posted 03 February 2013 - 10:52 AM

Quote

but most of us work in legitimate coding jobs and don't really care for spammers

Totally agree with tlhIn`toq

Quote

have asked help not moral

What? If you ask for help in killing someone, I should just say to hell with my morals and help you?! Nobody likes spammers except spammers. Since your code can be used for malicious purposes, I shall close this thread
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1