igcraper
v0.0.1
Published
An utility tool for my personal use, Used to get images and videos from instagram post.
Downloads
2
Readme
🔗 Installation
# npm install igcraper
yarn add igcraper
⚡️ Usage
I haven't added much methods to it yet. And This is type safe. I have added type even for Instagram response.
You can:-
getPost
- Get Post information and Media.getUser
- Get User information, follower count, recent 15 posts, etc...getLocation
- Get information about location, top and recent posts from that place.getHashtag
- Get information about hashtag and recent posts in that hashtag.filterPost
- Filters out the post response and gives an array of image and video urls. Also return captions and like count.
// Import IgCraper from 'igcraper'
const IgCraper = require("igcraper").default;
const igCraper = new IgCraper();
// All are promise based functions :) So use the lovely async-await
const run = async () => {
// Getting Post
const post = await igCraper.getPost(
"https://www.instagram.com/p/CDL3Ut0ndO0/"
);
// Filtering that response
const filtredData = igCraper.filterPost(post);
// Getting User
const user = await igCraper.getUser("piyushsthr");
// Getting Location
const location = await igCraper.getLocation("238765449");
// Getting Hashtag
const hashtag = await igCraper.getHashtag("instagram");
};
run();
🤔 Who's Using?
Here are some projects using this Package.
- Toolzar - By me :p
🤟 Contributions
Contributions, issues and feature requests are welcome!
if you feel that something is missing, feel free to create an Issue.
❤ Support
Almost all the project I make are Open Source. To keep me supporting, consider supporting.
Do ⭐ this Project.
Well, I'll meet you on Mars.
Shinzou Wo Sasageyo ❤
Made with ❤ and TypeScript.