Skip to content

a surffing application to crawl into linkedin and other social platform and interact with posts and sections

Notifications You must be signed in to change notification settings

AttockOffice85/node-websurfer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

98 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Social Media Bot for LinkedIn Interactions

This project is a social media bot designed to automate likes, comments, and other interactions on LinkedIn posts using Puppeteer. It interacts with company posts, using credentials and other settings provided in the .env file. The bot leverages Puppeteer stealth mode to avoid detection and simulates user activity on the LinkedIn platform.

Table of Contents

Prerequisites

Before running this project, ensure you have the following installed on your machine:

Installation

  1. Clone the repository:

    git clone https://github.com/AttockOffice85/node-websurfer.git
  2. Navigate to the project directory:

    cd node-websurfer
  3. Go to backend

    cd backend

3.1. Set up the environment variables:

Create a `.env` file in the root directory of the backend dir based on the `.env.example` file provided.

Example `.env` file:
```env
HEADLESS_BROWSER=true
NO_OF_COMPANY_POSTS=5
NO_OF_RANDOM_POSTS=5
NO_OF_BOTS=2
SERVER_PORT=8080
```

3.2. Install the required dependencies and run the backend server:

```bash
npm install
```

```bash
npm run dev
```
  1. Go to frontend

    cd frontend

4.1. Set up the environment variables:

Create a `.env` file in the root directory of the frontend dir based on the `.env.example` file provided.

Example `.env` file:
```env
REACT_APP_API_URL=http://localhost:8080/api
```

4.2. Install the required dependencies and run the frontend server:

```bash
npm install
```

```bash
npm run start
```

Environment Variables

The following environment variables are required for the bot to function:

  • HEADLESS_BROWSER: Puppeteer browser will not show up on screen if this variable is set to true.
  • NO_OF_COMPANY_POSTS: The number of company posts to interact with during each bot run.
  • NO_OF_RANDOM_POSTS: The number of posts on home to interact with during each bot run.
  • NO_OF_BOTS: Set the number of bots equal to the number of users defined in the users-data.json file.
  • SERVER_PORT: Set port to 8080.
  • REACT_APP_API_URL: Do not add '/' at the end of the backend URL.

Usage

Running the bot in development mode

http://localhost:3000 for frontend

About

a surffing application to crawl into linkedin and other social platform and interact with posts and sections

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages