Follow these steps to set up and run the project on your local machine.
Make sure you have the following prerequisites installed on your machine:
git clone https://github.com/itsApurba/linkedin-experience
cd linkedin-experience
npm i
-
Install EditThisCookie Extension:
- Install the EditThisCookie extension from https://chrome.google.com/webstore/detail/nmckokihipjgplolmcmjakknndddifde.
-
Login to LinkedIn:
- Log in to your LinkedIn profile using the browser where you've installed the extension.
-
Export the Cookie:
- Export the cookie from the EditThisCookie extension.
-
Create
auth
File:- Create a file named
auth
in the root directory (if not present). - Open the recently downloaded cookie file and copy paste the cookie into the
auth
file.
- Create a file named
- Add the all the links to
startUrls
variable in themain.js
file. - Use https://arraythis.com to convert multiple links as an array.
Execute the following command to run the script:
npm start
The output file will be generated at
./storage/key_value_stores/default/data.csv.
-
Issue:
- Cookies generated for LinkedIn may expire after a certain period.
-
Solution:
- Periodically regenerate the LinkedIn cookie when you encounter issues due to cookie expiration.
- Repeating the setup process (refer to Setting Up the Cookie) by generating a new cookie through the provided steps will resolve this issue.
-
Note:
- Periodic regeneration of the cookie is recommended.