UNPKG

linkedin-news-feed-scraper

Version:

A nodejs package to scrape feed data from linkedin automatically.

57 lines (44 loc) 1.39 kB
Linkedin-News-Feed-Scraper is a nodejs package to scrape feed data on linkedin using browser automation. It currently runs only on windows. ### Installation ```sh npm install linkedin-news-feed-scraper ``` ### Example In this example we first import package, then we login with cookies and then scrape data on linkedin. ```sh var linkedin=require("linkedin-news-feed-scraper"); function get_data(response){ var data=response["body"] console.log("data",data) } function fetch(){ linkedin.get_feed(get_data) } linkedin.login_cookie(cookie_list,fetch) ``` ### Youtube Video [![](http://img.youtube.com/vi/gIWPvH_uvEQ/0.jpg)](https://www.youtube.com/watch?v=gIWPvH_uvEQ "") #### DataKund [datakund](https://www.npmjs.com/package/datakund) is needed for browser automation. As soon as this package is imported in code, automated browser will open up. ### Import ```sh var linkedin=require("linkedin-news-feed-scraper"); ``` ### Login with credentials ```sh linkedin.login(username,password) ``` ### Login with cookies ```sh linkedin.login_cookie(list_of_cookies) ``` ### Get New Feed ```sh linkedin.get_feed() ``` ### Cookies To login with cookies [Edit this Cookie Extension](https://chrome.google.com/webstore/detail/editthiscookie/fngmhnnpilhplaeedifhccceomclgfbg?hl=en) can be added to browser ### Contact Us * [Telegram](https://t.me/datakund) * [Website](https://datakund.com)