Last active
August 10, 2016 08:48
-
-
Save JahsonKim/dbe1c2fe560a7de362ae6e9b01bb533d to your computer and use it in GitHub Desktop.
A web crawler is a program that visits Web sites and reads their pages and other information in order to create entries for a search engine index. This is a simple PHP web crawler sample code.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Simple PHP Web Crawler</title> | |
<link type="text/css" rel="stylesheet" href="style.css" /> | |
</head> | |
<body> | |
<form method="post" action="crawler.php"> | |
<p style="text-align:center;"><input type="text" name="target" class="input" placeholder="Type site url here" /></p> | |
<p style="text-align:center;"><input type="submit" name="Crawl Site" class="button" value="Crawl !" /></p> | |
</form> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment