mirror of
https://github.com/ION606/linkedin-api.git
synced 2026-05-14 22:06:54 +00:00
Update API.js
This commit is contained in:
+1
-1
@@ -124,7 +124,7 @@ class APIHelper {
|
|||||||
|
|
||||||
getCookies(username, password) {
|
getCookies(username, password) {
|
||||||
return new Promise(async (resolve, reject) => {
|
return new Promise(async (resolve, reject) => {
|
||||||
const pythonProcess = (await import("child_process")).exec(`python ${import.meta.dirname}/auth.py ${username} ${password}`);
|
const pythonProcess = (await import("child_process")).exec(`python classes/auth.py ${username} ${password}`);
|
||||||
|
|
||||||
pythonProcess.stdout.on('data', (data) => resolve(data.toString()));
|
pythonProcess.stdout.on('data', (data) => resolve(data.toString()));
|
||||||
pythonProcess.stderr.on('data', (data) => reject(data.toString()));
|
pythonProcess.stderr.on('data', (data) => reject(data.toString()));
|
||||||
|
|||||||
Reference in New Issue
Block a user