summaryrefslogtreecommitdiff
path: root/scraper/pinterest.php
diff options
context:
space:
mode:
Diffstat (limited to 'scraper/pinterest.php')
-rw-r--r--scraper/pinterest.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/scraper/pinterest.php b/scraper/pinterest.php
index 2bb5b71..37473a1 100644
--- a/scraper/pinterest.php
+++ b/scraper/pinterest.php
@@ -6,6 +6,9 @@ class pinterest{
include "lib/nextpage.php";
$this->nextpage = new nextpage("pinterest");
+
+ include "lib/proxy_pool.php";
+ $this->proxy = new proxy_pool("pinterest");
}
public function getfilters($page){
@@ -44,6 +47,8 @@ class pinterest{
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);