Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
user-instagram
Advanced tools
Get user data and feed content by scraping Instagram's user page. No OAuth needed.
The aim of this module is to provide an easy way to retrieve a user's or a post data on Instagram.
This module is available on NPM.
npm install user-instagram
I tried to make this module user-friendly as much as I could. Just provide a username or a profile link.
const userInstagram = require("user-instagram");
// Gets informations about a user
userInstagram("edouard_courty") // Same as getUserData()
.then(console.log)
.catch(console.error);
// Gets information about a post
userInstagram.getPostData("CD9EMe5sHP5")
.then(console.log)
.catch(console.error)
The getUserData's JSON output will look like this:
{
"id": "<userId>",
"profileLink": "https://www.instagram.com/edouard_courty",
"biography": "<Biography>",
"subscriberCount": 444,
"subscribtions": 362,
"postsCount": 27,
"fullName": "Edouard Courty",
"username": "edouard_courty",
"isPrivate": false,
"isVerified": false,
"profilePic": "<ProfilePicThumbnailLink>",
"profilePicHD": "<HDProfilePicLink>",
"posts": []
}
The getPostData's JSON output will look like that:
{
"id": "<postId>",
"shortcode": "<postShortCode>",
"dimensions": {
"height": 1080,
"width": 1920
},
"caption": "<thePicturesCaption>",
"likesCount": 125,
"commentsCount": 26,
"comments": [
{
"id": "<commentId>",
"text": "<commentText>",
"author": {}
}
],
"location": {
"id": "<locationId>",
"name": "<locationName>",
"slug": "<locationSlug>"
},
"childrenPictures": [],
"owner": {
"username": "<ownerUsername>",
"full_name": "<ownerFullName",
"isPrivate" : true,
"isVerified": false
}
}
This module uses ES6 Promises.
© 2020 - Edouard Courty
FAQs
Get user & post data without authentication
We found that user-instagram demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.