Skip to content

About

Instagram scrapper using puppeteer

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

5 Commits

Folders and files

Repository files navigation

To create a README.md file for your repository, you should include information about what the project does, how to set it up, and any other relevant details. Here's a template for your README.md file:


Instagram Scraper

This project is a Node.js application that scrapes Instagram profiles for specific hashtags and exports the data to a CSV file. It utilizes Puppeteer for web scraping and Node.js for server-side scripting.

Installation

  1. Clone the repository:

    git clone <repository-url>
  2. Install dependencies:

    cd instagram-scraper
    npm install

Usage

  1. Start the server:

    npm start
  2. Send a POST request to http://localhost:3000/ with the following JSON payload:

    {
      "users": ["user1", "user2"],
      "hashtag": "yourhashtag",
      "timeStamp": "yourtimestamp"
    }

    Replace "user1", "user2" with the Instagram usernames you want to scrape, "yourhashtag" with the desired hashtag, and "yourtimestamp" with the timestamp.

  3. The server will respond with scraped data in JSON format.

  4. To export the data to a CSV file, use the provided jsonToCSV.js script. Example usage:

    node jsonToCSV.js

    This will generate a CSV file with the scraped data.

Configuration

  • You can modify the port number in index.js by changing the port variable.
  • Adjust Puppeteer settings or Instagram URL structures in index.js as needed.

Make sure to replace <repository-url> with the actual URL of your repository.

Feel free to add more sections or customize the README according to your project's specific requirements and features.

About

Instagram scrapper using puppeteer

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages