Get the first image/video of an instagram post or reel and the caption with no need for a API key or tokens, just utilising the power of puppeteer ๐.
- Clone the repo
- Run
pnpm i
to install the packages - create a
.env
file and add the path to your browser's executable file (chrome or firefox) asPUPPETEER_EXECUTABLE_PATH
- Run
pnpm start
to start the server
Send a GET
request to http://localhost:4000?url=<url>
where <url>
is the url of the post or reel you want to scrape.
Note:
4000
is the default port but you can change it by setting thePORT
environment variable.
Feel free to open an issue or a pull request if you find a bug or want to add a feature.