Skip to content

Instantly share code, notes, and snippets.

@neo773
neo773 / pinata-export.js
Created February 26, 2022 15:41
Export Pinata Gateway Index as JSON
const dataExport = []
const nameLinks = document.querySelectorAll('a:not(a.ipfs-hash)')
const hashLinks = document.querySelectorAll('a.ipfs-hash')
nameLinks.forEach((link) => {
if (link.innerHTML.includes('jpg')) {
const fileName = link.innerHTML
dataExport.push({
fileName: fileName,