Hi all, I am just developing a very simple web spider/crawler. Here is the code:
Simple web crawler/spider
15
Hi all,
I am just developing a very simple web spider/crawler. Here is the code:
This code just gets all the links from the selected page. Now I want to move on, I want the spider to follow links and index another link and another.
So how could I do that?
Regards,
Akos
I am just developing a very simple web spider/crawler. Here is the code:
PHP Code:
<?php
$seed = "http://www.akosblog.com";
$html = file_get_contents($seed);
echo "Page : " . $seed;
preg_match_all("/http:\/\/[^\"\s']+/", $html, $matches, PREG_SET_ORDER);
foreach ($matches as $val) {
echo "<br><font color=red>links :</font> " . $val[0] . "\r\n";
}
?> So how could I do that?
Regards,
Akos
- ussher
- tks
- w3webtools
- premiumwebtechnologies
- [1] reply
- rts2271
- briannn
- [1] reply
- GeneralLedger
- blinkenlights
- mojojuju
- yogyogi
- [1] reply
- Zach Zhang
- Microsys
Next Topics on Trending Feed
-
15