PHP Classes

File: ExampleLoginCrawlLink.php

Recommend this page to a friend!
  Classes of Md. Shaiful islam  >  Crawler  >  ExampleLoginCrawlLink.php  >  Download  
File: ExampleLoginCrawlLink.php
Role: Example script
Content type: text/plain
Description: Login and CrawlLink from a site
Class: Crawler
Extract links and images from remote Web pages
Author: By
Last change:
Date: 13 years ago
Size: 1,217 bytes


Class file image Download

$mycrawler=new Crawler();
//Some site Takes too many Hidden Parameters to Login.
//So it is hard to Login complex Login
$siteloginurl='';//The url of Form when action perform
$parametes='username=Yourusername&passwd=Yourpassword';//The parameters the action script need

$url='';//The url we need to crawl.You cannot go this url before login
                                    //So we need to login.

//print the result

echo "<table width=\"100%\" border=\"1\">
    <td width=\"30%\"><div align=\"center\"><b>Link Text </b></div></td>
    <td width=\"30%\"><div align=\"center\"><b>Link</b></div></td>
    <td width=\"40%\"><div align=\"center\"><b>Text with Link</b> </div></td>
    <td><div align=\"center\">"
    <td><div align=\"center\">"
    <td><div align=\"center\"><a href=\""

For more information send a message to info at phpclasses dot org.