node index.js
- Go to http://localhost:3000/{desired-seed}
The server returns a JSON response with the key message
and the value of the generated caption.
- Install Instagram-Scraper from https://github.com/rarcega/instagram-scraper
(you can also do
pip install instagram-scraper
) - Run the command:
instagram-scraper [ig-user-to-scrape] -u [Your-ig-USER] -p [Your-ig-PASSWORD] -t none --media-metadata
node generate-seed.js [instagram-username]
- Go to https://jsonpath.com/
- Paste the generated JSON from the scraper on the left textarea
- Use this path:
$.GraphImages[*].edge_media_to_caption.edges[:1].node.text
- Copy the resulting JSON inside the
seeds
folder - Remove the generated username folder