Linkedin-Auto-Commentor is a nodejs package to comment on linkedin post using browser automation. It currently runs only on windows.
Installation
npm install linkedin-auto-commentor
Example
In this example we first import package, then we login with cookies and then posted a comment on linkedin.
var linkedin=require("linkedin-auto-commentor");
function comment(){
linkedin.comment_on_post('post link','comment text')
}
linkedin.login_cookie(cookie_list,comment)
Youtube Video
DataKund
datakund is needed for browser automation. As soon as this package is imported in code, automated browser will open up.
Import
var linkedin=require("linkedin-auto-commentor");
Login with credentials
linkedin.login(username,password)
Login with cookies
linkedin.login_cookie(list_of_cookies)
Post Comment
linkedin.comment_on_post('post link','comment text')
Cookies
To login with cookies Edit this Cookie Extension can be added to browser