npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

auto-linkedin

v1.3.6

Published

Auto LinkedIn is a project that provides automation for LinkedIn using Node.js and Puppeteer. This project helps you save time by automating various tasks on LinkedIn.

Downloads

328

Readme

Auto Linkedin

Auto LinkedIn

Auto LinkedIn is a project that provides automation for LinkedIn using Node.js and Puppeteer. This project helps you save time by automating various tasks on LinkedIn.

Check out the the wiki for details.

Check out the desktop app

Important Note

Use at your own discretion. Do not spam people with this. We discourage any stalkerware, bulk or automated messaging usage.

Features

  • Sign in functionalities
  • Search user profiles with keywords, network distance etc.
  • Sending messages and getting history
  • Sending connection requests
  • Visit profiles
  • Company invitations

Installation

Prerequisites

  • Make sure you have Node.js and npm installed. Node.js Installation
  • Puppeteer library is used, which requires Chrome browser for automation.

Installation Steps

  1. Create a new directory
mkdir linkedinAutomationProject
cd linkedinAutomationProject
  1. Install NPM
npm init -y
  1. Install package:
npm install auto-linkedin

Methods and objects

| Class | Method | Explanation | Publish Version | |-----------------|--------------------|----------------------------------|-----------------| | Linkedin | login | Authentication for linkedin | 1.0.0 | | Linkedin | close | Close the client and browser | 1.3.1 | | Linkedin | searchPeople | Find people from search | 1.0.0 | | Linkedin | getLastConnections | Find latest connected people | 1.1.3 | | Linkedin | getMyProfile | Get self profile details | 1.3.4 | | Linkedin | getMyCompany | Get owned company | 1.1.3 | | Linkedin | getBrowser | Get client's puppeteer browser | 1.3.1 | | LinkedinProfile | getProfile | Get profile from url or id | 1.2.0 | | LinkedinProfile | sendMessage | Send message to a profile | 1.3.0 | | LinkedinProfile | getMessageHistory | Get history of messages | 1.3.0 | | LinkedinProfile | visitProfile | Visit user's profile for a while | 1.1.0 | | LinkedinProfile | connectionRequest | Send connection request | 1.1.0 | | LinkedinCompany | fetchDetails | Fetch details of owned company | 1.1.3 | | LinkedinCompany | sendInvite | Send invitation to a user | 1.1.3 |

Usage

  1. Create a linkedin client and login:
const { LinkedIn } = require('auto-linkedin')

const client = new LinkedIn()
await client.login(process.env.USERNAME, process.env.PASSWORD)

//-- Console
// [TASK] Login
//   New Browser created.
//   Login completed.

Follow the console even though there is an extra instruction.

Usage with ES6

import { LinkedIn } from 'auto-linkedin'

const client = new LinkedIn()
await client.login(process.env.USERNAME, process.env.PASSWORD)

//-- Console
// [TASK] Login
//   New Browser created.
//   Login completed.
  1. Search for users with keyword and 2. network distance (200 limit):
const profiles = await client.searchPeople({
   keywords: 'venture capital',
   network: ['S']
}, 200)

// profiles = [LinkedinProfile, LinkedinProfile, ...]

//-- Console
// [TASK] Search People: 200 ({"keywords":"venture capital","network":["S"]})
//   Page: 1/30 -> 10
//   Page: 2/30 -> 10
//   Page: 3/30 -> 10
//   Page: 4/30 -> 10
// ....
//   Search complete: 200

You can use profile methods or access properties like name, url, title etc.

  1. Send connection request with a note:
for (let p of profiles) {
   await p.connectionRequest(client, 'Hi! Please accept my request')
}

//-- Console
// [TASK] Conection request: Test User - test-user
//   Connection request send to Test User (test-user)
//....

Contact

For any questions or feedback about the project, please contact us through GitHub or [email protected]

Contributions

If you would like to contribute, please feel free to submit a pull request. We welcome any contributions!

License

This project is licensed under the GNU General Public License v3.0. See the LICENSE file for more information.