Welcome to the Neynar Mini-App! This Nodejs script uses Neynar's API to fetch and archive casts of a specific user. Follow these steps to get started:
Clone the Neynar Mini-App repository to your local machine:
git clone https://github.com/neynarxyz/farcaster-examplesMove the Flask app directory to your desired location and remove the cloned repository's extra contents:
mv farcaster-examples/archiver-script .
rm -rf farcaster-examples
cd archiver-scriptInstall the required Nodejs packages:
yarn installOpen index.js and replace the FID with your own:
// save all @rish.eth's casts in a file called data.ndjson
const fid = 194;
fetchAndDump(fid);Also don't forget to edit use your API key:
const client = new NeynarAPIClient("YOUR_NEYNAR_API_KEY");node index.jsYou should now be ready to run the script, saving the casts of the user with the FID you specified to a file called data.ndjson in the same directory as index.js.