Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const fetch = require("node-fetch")
- async function downloadPinterest(url) {
- const response = await fetch('https://pintdownloader.com/wp-admin/admin-ajax.php', {
- method: 'POST',
- headers: {
- 'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8',
- 'Accept': '*/*',
- 'X-Requested-With': 'XMLHttpRequest',
- 'User-Agent': 'Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/141.0.0.0 Mobile Safari/537.36',
- 'Referer': 'https://pintdownloader.com/'
- },
- body: `action=process_pinterest_url&url=${encodeURIComponent(url)}&nonce=0759ba45e4`
- });
- const result = await response.json();
- return result;
- }
- //use
- const pinterest = await downloadPinterest("https://pin.it/6ms1EQi5q");
- console.log(JSON.stringify(pinterest, null, 2));
Advertisement
Add Comment
Please, Sign In to add comment