Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/hctilg/pinterest-crawler

Downloads all images suitable for search
https://github.com/hctilg/pinterest-crawler

crawler pinterest

Last synced: about 3 hours ago
JSON representation

Downloads all images suitable for search

Awesome Lists containing this project

README

        

## **Pinterest Image Download by Keywords**
You can download as many images as you want about the searched words.

[![pinterest](pinterest.png)](https://www.pinterest.com/search/pins/?q=Coffee)

## How to Run

```php
// checking the exists Library.
if (!file_exists('pinterest.php')) {
copy('https://raw.githubusercontent.com/hctilg/pinterest-crawler/main/pinterest.php', 'pinterest.php');
}

// require Library.
require_once __DIR__ . '/pinterest.php';

// Usage
$configs = new PinterestConfig("Coffee", 200, "orig", '');
$scraper = new PinterestScraper($configs);

$scraper->downloadImages(); // download images directly
print_r($scraper->getUrls()); // just bring image links
```