kyuurzy

Pinterest Downloader

Oct 8th, 2025
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JavaScript 0.81 KB | Source Code | 0 0
  1. const fetch = require("node-fetch")
  2.  
  3. async function downloadPinterest(url) {
  4.   const response = await fetch('https://pintdownloader.com/wp-admin/admin-ajax.php', {
  5.     method: 'POST',
  6.     headers: {
  7.       'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8',
  8.       'Accept': '*/*',
  9.       'X-Requested-With': 'XMLHttpRequest',
  10.       'User-Agent': 'Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/141.0.0.0 Mobile Safari/537.36',
  11.       'Referer': 'https://pintdownloader.com/'
  12.     },
  13.     body: `action=process_pinterest_url&url=${encodeURIComponent(url)}&nonce=0759ba45e4`
  14.   });
  15.  
  16.   const result = await response.json();
  17.   return result;
  18. }
  19.  
  20. //use
  21. const pinterest = await downloadPinterest("https://pin.it/6ms1EQi5q");
  22. console.log(JSON.stringify(pinterest, null, 2));
Tags: Scrape
Advertisement
Add Comment
Please, Sign In to add comment