summaryrefslogtreecommitdiff
path: root/scraper/facebook.php
diff options
context:
space:
mode:
Diffstat (limited to 'scraper/facebook.php')
-rw-r--r--scraper/facebook.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/scraper/facebook.php b/scraper/facebook.php
index 7bd576b..395a863 100644
--- a/scraper/facebook.php
+++ b/scraper/facebook.php
@@ -9,6 +9,9 @@ class facebook{
include "lib/nextpage.php";
$this->nextpage = new nextpage("fb");
+
+ include "lib/proxy_pool.php";
+ $this->proxy = new proxy_pool("facebook");
}
public function getfilters($page){
@@ -104,6 +107,8 @@ class facebook{
curl_setopt($curlproc, CURLOPT_SSL_VERIFYPEER, true);
curl_setopt($curlproc, CURLOPT_CONNECTTIMEOUT, 30);
curl_setopt($curlproc, CURLOPT_TIMEOUT, 30);
+
+ $this->proxy->assign_proxy($curlproc);
$data = curl_exec($curlproc);