Skip to content

Instantly share code, notes, and snippets.

@JahsonKim
Last active August 10, 2016 08:48
Show Gist options
  • Save JahsonKim/dbe1c2fe560a7de362ae6e9b01bb533d to your computer and use it in GitHub Desktop.
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.
<!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