-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
npm package publish, environment library removal
- Loading branch information
Showing
10 changed files
with
91 additions
and
154 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -128,4 +128,5 @@ dist | |
.yarn/build-state.yml | ||
.yarn/install-state.gz | ||
.pnp.* | ||
cache | ||
cache | ||
.vscode |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,44 +19,36 @@ Auto LinkedIn is a project that provides automation for LinkedIn using Node.js a | |
- Puppeteer library is used, which requires Chrome browser for automation. | ||
|
||
### Installation Steps | ||
1. Clone the project: | ||
1. Create a new directory | ||
```bash | ||
git clone https://github.com/Ranork/Auto-Linkedin.git | ||
mkdir linkedinAutomationProject | ||
cd linkedinAutomationProject | ||
``` | ||
|
||
2. Navigate to the project directory: | ||
2. Install NPM | ||
```bash | ||
cd Auto-Linkedin | ||
mkdir cache | ||
npm init -y | ||
``` | ||
|
||
3. Install the dependencies: | ||
3. Install package: | ||
```bash | ||
npm install | ||
npm install auto-linkedin | ||
``` | ||
|
||
## Usage | ||
|
||
1. Open the `.env` file and configure your LinkedIn account credentials (username & password) and other necessary settings for automation tasks. | ||
|
||
2. Run the application: | ||
```bash | ||
npm run start | ||
``` | ||
|
||
|
||
### Example Usage | ||
### Usage | ||
|
||
1. Create a linkedin client and login: | ||
```js | ||
const client = new LinkedIn({ headless: true }) | ||
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. | ||
|
||
2. Search for users with keyword and 2. network distance (200 limit): | ||
```js | ||
|
@@ -65,7 +57,7 @@ const profiles = await client.searchPeople({ | |
network: ['S'] | ||
}, 200) | ||
|
||
// profiles = [Profile, Profile, ...] | ||
// profiles = [LinkedinProfile, LinkedinProfile, ...] | ||
|
||
//-- Console | ||
// [TASK] Search People: 200 ({"keywords":"venture capital","network":["S"]}) | ||
|
@@ -93,7 +85,7 @@ for (let p of profiles) { | |
|
||
## Contact | ||
|
||
For any questions or feedback about the project, please contact us through GitHub. | ||
For any questions or feedback about the project, please contact us through GitHub or [email protected] | ||
|
||
|
||
## Contributions | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,19 @@ | ||
{ | ||
"name": "auto-linkedin", | ||
"version": "1.0.0", | ||
"description": "", | ||
"version": "1.1.0", | ||
"description": "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.", | ||
"main": "src/main.js", | ||
"scripts": { | ||
"start": "node src/main.js", | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
}, | ||
"keywords": [], | ||
"author": "", | ||
"license": "ISC", | ||
"keywords": ["linkedin", "social media", "automation", "puppeteer"], | ||
"author": "Ranork <[email protected]> (https://github.com/Ranork)", | ||
"license": "GPL-3.0", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/Ranork/Auto-Linkedin" | ||
}, | ||
"dependencies": { | ||
"dotenv": "^16.4.5", | ||
"puppeteer": "^22.8.1" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.