linkedin-search-posts

1.0.1 • Public • Published

Linkedin-Search-Posts is a nodejs package to search keyword in posts and then scrape posts data on linkedin using browser automation. It currently runs only on windows.

Installation

npm install linkedin-search-posts

Example

In this example we first import package, then we login with cookies and then search and scrape data of a posts.

var linkedin=require("linkedin-search-posts");
function get_data(response){
	var data=response["body"]
	console.log("data",data)
}
function results(){
	linkedin.posts_results(get_data)
}
function search(){
	linkedin.search_posts('keyword',results)
}
linkedin.login_cookie(cookie_list,search)

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-search-posts");

Login with credentials

linkedin.login(username,password)

Login with cookies

linkedin.login_cookie(list_of_cookies)

Search keyword

linkedin.search_posts("keyword")

Get Search Results

linkedin.posts_results()

Cookies

To login with cookies Edit this Cookie Extension can be added to browser

Contact Us

Package Sidebar

Install

npm i linkedin-search-posts

Weekly Downloads

2

Version

1.0.1

License

ISC

Unpacked Size

2.09 kB

Total Files

3

Last publish

Collaborators

  • datakund