Free PHP script to find duplicate pins on Pinterest


Post Image

If you’re trying to find duplicate pins on Pinterest using the API, I’ve created a free php script that you can download and install on your own server. All your boards and pins are saved to the database to save on API calls.

Requirements

  • Hosting with PHP and MYSQLI support
  • Pinterest Account
  • Pinterest API access token

How To Install

Download the files and unzip them somewhere on your computer. Open config.php and modify the following options.

Database settings

Create a database using phpMyadmin (or what ever you use) and then edit the following settings:

define('DBNAME','<YOUR-DATABASE-NAME>');
define('DBUSER','<YOUR-DATABASE-USER>');
define('DBPASS','<YOUR-DATABASE-PASSWORD>');
define('DBHOST','<YOUR-DATABASE-HOST>');

Pinterest Access Token

Visit https://developers.pinterest.com/apps/ and create an app.

Then simply go to Tools > Token Generator then copy and paste the token here. You’ll need to make sure the scopes read_public, write_public are selected.

define('TOKEN','<YOUR-TOKEN>');

Upload the files to the root directory of your domain and point your browser to yoursite.com/pinterest_script/index.php. You should see Denied: 000.000.000.000 – copy and paste the IP address into the MYIP setting in config.php and re-upload the file.

define('MYIP','<YOUR-IP>');

You should now be able to follow the steps to create the database tables and retrieve your Pinterest boards and pins to find duplicates!

If your server has get_headers() enabled, you can also turn on link checking to find dead pins on your pinterest boards. Just change the following to true in config.php. If it doesn’t work or you get errors, just leave it as false as your host/server may not have get_headers() enabled.

define('GETSTA',false);

Download

Click the link below to download my free Pinterest script. Should you require help installing it on your server, I can do so for €30. Just contact me if you require help.

Download Script