Permalink
Browse files

Example on how to scrap a page

  • Loading branch information...
stefangabos committed Feb 10, 2016
1 parent 06725b0 commit f555a53d02f365f0c6e0f3b06153b6978473035e
Showing with 16 additions and 0 deletions.
  1. +16 −0 examples/page-scrap.php
View
@@ -0,0 +1,16 @@
+<?php
+
+// include the library
+require '../Zebra_cURL.php';
+
+// instantiate the Zebra_cURL class
+$curl = new Zebra_cURL();
+
+// cache results 3600 seconds
+$curl->cache('cache', 3600);
+
+// a simple way of scrapping a page
+// (you can do more with the "get" method and callback functions)
+echo $curl->scrap('https://google.com', true);
+
+?>

0 comments on commit f555a53

Please sign in to comment.