igcraper
TypeScript icon, indicating that this package has built-in type declarations

0.0.1 • Public • Published

IG Craper 🚀

Scrape Info out of Instagram :p

GitHub issues GitHub forks

🔗 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.

🤟 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.

Readme

Keywords

none

Package Sidebar

Install

npm i igcraper

Weekly Downloads

2

Version

0.0.1

License

MIT

Unpacked Size

44.1 kB

Total Files

20

Last publish

Collaborators

  • piyushsuthar