Open daraboon opened 3 years ago
I wouldn't recommend you to use this library since it's poorly maintained & rarely updated. However, you can achieve this by fetching in the user properties. This code should do the job:
await client.getUserByUsername({ username: "your account" })
.then(res => console.log(res.edge_owner_to_timeline_media.edges)) // it returns an array of your user's medias.
I wouldn't recommend you to use this library since it's poorly maintained & rarely updated. However, you can achieve this by fetching in the user properties. This code should do the job:
await client.getUserByUsername({ username: "your account" }) .then(res => console.log(res.edge_owner_to_timeline_media.edges)) // it returns an array of your user's medias.
What library would you recommend then?
@bootisverycool I would more recommend this package.
There is not function to get all my posts I will make an app like Instagram that is necessary to can get all post Thanks