linkfy / tools-for-instagram Goto Github PK
View Code? Open in Web Editor NEWAutomation scripts for Instagram
License: MIT License
Automation scripts for Instagram
License: MIT License
Hi,
I haven't been running any scripts on my computer and server for the last few days and today I can't log in and I'm receiving error 429. Anyone else receiving this error? Any thoughts on what could be happening?
Best Regards,
Brian
There's any way to post more than one photo?
using uploadPicture
i can post only one.
Hey, firstly your tool is amazing thanks for work and share! I want to ask a question about get user info script. In this case i thanks with these script we can see in output if user is business and added to him/her email or phone number. We can see in output biography, follower count, following count, external url etc. but we can not see contact informations like email or phone number. Is there anyway to see them? I mean these infos not logged account infos, other users infos.
Thank again!
When I tried to run this code:
require('tools-for-instagram');
(async () => {
const ig = await login();
const inbox = await getInbox(ig);
console.log(inbox);
})();
I got this error:
Logged in
(node:6884) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'timestamp' of undefined
at xxx\node_modules\tools-for-instagram\src\getInbox.js:39:73
at Array.map (<anonymous>)
at getInbox (xxx\node_modules\tools-for-instagram\src\getInbox.js:29:42)
Tools-for-Instagram/src/getInbox.js
Line 39 in b6d5c3c
Object.keys(dm.last_seen_at)
/*
[ 'a', 'b']
[ 'b', 'c' ]
[ 'd', 'b' ]
[ 'e', 'b' ]
[ 'b', 'f' ]
[ 'b', 'g' ]
[ 'h', 'b' ]
[ 'b' ]
where "b" is my id (`ig.loggedInUser.pk`)
*/
Hi,
When I tried to follow more than two accounts, I got this
ClientDisconnectedError: MQTToTClient got disconnected.
at SafeSubscriber._next (/home/idiallo/Desktop/bisol/instabot/node_modules/instagram_mqtt/dist/realtime/realtime.client.js:154:30)
at SafeSubscriber.__tryOrUnsub (/home/idiallo/Desktop/bisol/instabot/node_modules/rxjs/internal/Subscriber.js:205:16)
at SafeSubscriber.next (/home/idiallo/Desktop/bisol/instabot/node_modules/rxjs/internal/Subscriber.js:143:22)
at Subscriber._next (/home/idiallo/Desktop/bisol/instabot/node_modules/rxjs/internal/Subscriber.js:89:26)
at Subscriber.next (/home/idiallo/Desktop/bisol/instabot/node_modules/rxjs/internal/Subscriber.js:66:18)
at Subject.next (/home/idiallo/Desktop/bisol/instabot/node_modules/rxjs/internal/Subject.js:60:25)
at MQTToTClient.setDisconnected (/home/idiallo/Desktop/bisol/instabot/node_modules/mqtts/dist/mqtt.client.js:330:30)
at Object.disconnect (/home/idiallo/Desktop/bisol/instabot/node_modules/mqtts/dist/mqtt.client.js:98:26)
at TLSSocket. (/home/idiallo/Desktop/bisol/instabot/node_modules/mqtts/dist/transport/tls.transport.js:36:52)
at TLSSocket.emit (events.js:327:22)
at endReadableNT (internal/streams/readable.js:1327:12)
at processTicksAndRejections (internal/process/task_queues.js:80:21)
Emitted 'error' event on RealtimeClient instance at:
at RealtimeClient.emitError (/home/idiallo/Desktop/bisol/instabot/node_modules/instagram_mqtt/dist/realtime/realtime.client.js:24:38)
at SafeSubscriber._next (/home/idiallo/Desktop/bisol/instabot/node_modules/instagram_mqtt/dist/realtime/realtime.client.js:154:20)
at SafeSubscriber.__tryOrUnsub (/home/idiallo/Desktop/bisol/instabot/node_modules/rxjs/internal/Subscriber.js:205:16)
IgActionSpamError:
POST /api/v1/friendships/destroy/9843433755/ - 400 Bad Request; feedback_required
Code I wrote:
var ulist = [];
await getFollowing(ig, "##########").then(async () => {
setTimeout(async function () {
await readFollowing(ig, "##########").then(l => {
setTimeout(function () {
ulist = l
var i = 0;
function loop() {
setTimeout(async function () {
console.log("Unfollowing " + ulist[i].username)
await unfollowUser(ig, ulist[i].username).then(() => {
console.log("")
});
i++
if (i < ulist.length) {
loop();
}
}, 1500);
}
loop()
}, 10000)
});
}, 10000)
});```
I am getting following error :
UnhandledPromiseRejectionWarning: ReferenceError: BigInt is not defined
at RealtimeClient.constructConnection (/home/user/testing/node_modules/instagram_mqtt/dist/realtime/realtime.client.js:43:40)
I am using node v10.14.1
UnhandledPromiseRejectionWarning: IgResponseError: POST /api/v1/attribution/log_attribution/ - 400 Bad Request; error logging attribution
After login. When I am performing any task.
It is giving this error and crashing the server.
2020-06-14T06:54:42.726346+00:00 app[worker.1]: /app/node_modules/rxjs/internal/ util/hostReportError.js:4 2020-06-14T06:54:42.726362+00:00 app[worker.1]: setTimeout(function () { throw e rr; }, 0); 2020-06-14T06:54:42.726363+00:00 app[worker.1]: ^ 2020-06-14T06:54:42.726364+00:00 app[worker.1]: 2020-06-14T06:54:42.726364+00:00 app[worker.1]: ClientDisconnectedError: MQTToTC lient got disconnected. 2020-06-14T06:54:42.726365+00:00 app[worker.1]: at SafeSubscriber.client.$discon nect.subscribe [as _next] (/app/node_modules/instagram_mqtt/dist/realtime/realti me.client.js:152:30) 2020-06-14T06:54:42.726366+00:00 app[worker.1]: at SafeSubscriber.__tryOrUnsub ( /app/node_modules/rxjs/internal/Subscriber.js:205:16) 2020-06-14T06:54:42.726367+00:00 app[worker.1]: at SafeSubscriber.next (/app/nod e_modules/rxjs/internal/Subscriber.js:143:22) 2020-06-14T06:54:42.726367+00:00 app[worker.1]: at Subscriber._next (/app/node_m odules/rxjs/internal/Subscriber.js:89:26) 2020-06-14T06:54:42.726368+00:00 app[worker.1]: at Subscriber.next (/app/node_mo dules/rxjs/internal/Subscriber.js:66:18) 2020-06-14T06:54:42.726368+00:00 app[worker.1]: at Subject.next (/app/node_modul es/rxjs/internal/Subject.js:60:25) 2020-06-14T06:54:42.726369+00:00 app[worker.1]: at MQTToTClient.setDisconnected (/app/node_modules/mqtts/dist/mqtt.client.js:329:30) 2020-06-14T06:54:42.726369+00:00 app[worker.1]: at Object.disconnect (/app/node_ modules/mqtts/dist/mqtt.client.js:97:26) 2020-06-14T06:54:42.726370+00:00 app[worker.1]: at TLSSocket.socket.on (/app/nod e_modules/mqtts/dist/transport/tls.transport.js:20:52) 2020-06-14T06:54:42.726370+00:00 app[worker.1]: at TLSSocket.emit (events.js:194 :15) 2020-06-14T06:54:42.726371+00:00 app[worker.1]: at endReadableNT (_stream_readab le.js:1103:12) 2020-06-14T06:54:42.726371+00:00 app[worker.1]: at process._tickCallback (intern al/process/next_tick.js:63:19) 2020-06-14T06:54:42.726372+00:00 app[worker.1]: Emitted 'error' event at: 2020-06-14T06:54:42.726372+00:00 app[worker.1]: at RealtimeClient.emitError (/ap p/node_modules/instagram_mqtt/dist/realtime/realtime.client.js:23:38) 2020-06-14T06:54:42.726373+00:00 app[worker.1]: at SafeSubscriber.client.$discon nect.subscribe [as _next] (/app/node_modules/instagram_mqtt/dist/realtime/realti me.client.js:152:20) 2020-06-14T06:54:42.726373+00:00 app[worker.1]: at SafeSubscriber.__tryOrUnsub ( /app/node_modules/rxjs/internal/Subscriber.js:205:16) 2020-06-14T06:54:42.726374+00:00 app[worker.1]: [... lines matching original sta ck trace ...] 2020-06-14T06:54:42.726374+00:00 app[worker.1]: at process._tickCallback (intern al/process/next_tick.js:63:19)
I think problem with request module.
Dear guys,
Honestly, I liked this work you have did but I am not pretty understanding these coding or how to use it. I would like to have it ready app to use it on Windows 10, please. I couldn't find any explanation video anywhere.
If anyone can help, kindly let me know and the cost please?
I wanted an app to have all these functionalities listed in these subject.
Kind regards,
Hi
I would like to know how is possible to send a Direct Message to a user?
Also is it possible to send Mass Direct Messages?
Thanks
Is there currently a limit in the amount of items that the accountFollowersFeed returns? If so, how can I query the full list?
I noticed that the src for getMyLastFollowers slices the result coming back from the API. So imo, without a proper way to set the order of items (for example by date), this will never be a reliable way to get the latest followers.
I'm trying to upload a picture with the following code;
var picturePath = path.basename('/home/ubuntu/Tools-for-Instagram/IGPost_01.png');
let caption = "This is a test image that I'll delete in a few seconds";
var namesToTag = [];
try {
await uploadPicture(ig, caption, myPicturePath, namesToTag);
}catch (error) {
console.log("Error could post image to Instagram: " + error.message);
}
Error:
Error could post image to Instagram: POST /rupload_igphoto/1606853056495_0_6880353997 - 400 Bad Request;
Using uploadPictureByURL
let pictureUrl = "https://www.website.com/storage/app/media/postImages/IGPostImage_01.png";
let caption = "This is a test image that I'll delete in a few seconds";
try {
console.log("trying to post an image");
await uploadPictureByUrl(ig, caption, pictureUrl);
} catch(error) {
console.log("Error could post image to Instagram: " + error.message);
}
Error:
IgResponseError: POST /rupload_igphoto/1606852939576_0_7864407481 - 400 Bad Request;
Any ideas on what could be happening?
I get this error. I'm running on a Raspberry PI 3+.
I got this to run about a week ago and now I keeps hanging on this error.
(password incorrect is shown but the password is correct though)
IgLoginRequiredError: GET /api/v1/accounts/current_user/?edit=true - 403 Forbidden; login_required
at Request.handleResponseError (/home/pi/Tools-for-Instagram/node_modules/instagram-private-api/dist/core/request.js:112:24)
at Request.send (/home/pi/Tools-for-Instagram/node_modules/instagram-private-api/dist/core/request.js:52:28)
at async AccountRepository.currentUser (/home/pi/Tools-for-Instagram/node_modules/instagram-private-api/dist/repositories/account.repository.js:149:26)
at async /home/pi/Tools-for-Instagram/src/login.js:258:31
Login failed from cookie | Removing incorrect cookie | Trying to regenerate...
Incorrect password
Online Mode
(node:7832) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'connect' of undefined
at login (/home/pi/Tools-for-Instagram/src/login.js:212:31)
at processTicksAndRejections (internal/process/task_queues.js:97:5)
at runNextTicks (internal/process/task_queues.js:66:3)
at processImmediate (internal/timers.js:429:9)
at async regenerateSession (/home/pi/Tools-for-Instagram/src/regenerateSession.js:13:12)
at async /home/pi/Tools-for-Instagram/src/login.js:283:20
(node:7832) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:7832) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
Is it possible to create an alert of a message every time a hashtag is used in a post?
Hi,
Occasionally I receive UnhandledPromiseRejectionWarning from request.js. I suspect this happens when IG doesn't like something with the account. My question is how can I trap this error so my script can quit instead of getting the UnhandledPromiseRejectionWarning. I've tried to catch it a variety of ways but so far have not been able to.
(node:8768) UnhandledPromiseRejectionWarning: IgResponseError: POST /api/v1/accounts/contact_point_prefill/ - 429 -; Please wait a few minutes before you try again.
at Request.handleResponseError (/home/ubuntu/Tools-for-Instagram/node_modules/instagram-private-api/dist/core/request.js:125:16)
at Request.send (/home/ubuntu/Tools-for-Instagram/node_modules/instagram-private-api/dist/core/request.js:53:28)
at
(node:8768) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:8768) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code
there is a small problem when starting the bot with crontab. database, account and other paths are invalid. should be corrected or give the opportunity to indicate their own
I have not checked out this project yet (in git) but somebody mentioned this project (who doesn't have a social profile Github connected - shame!) in a Discord Server.
I plan to contribute (if there is appetite for it) a docker-compose box that could be customised so that you could automatically do this:
cd ~/their-ig-tools/
docker-compose up
then it would run whatever you have set in the package.json
as your "main file" e.g. your scraper or whatever using the library e.g. npm run start
would be an alias to something that would check if you have a main.ts
or main.js
(as a default) and you could change this in the package.json to be whatever you'd like, or use variables so you could run multiple instances of this.
Hello.
I have just pulled the repo and npm intall the dependence, and tried to run exp2.js
but am having this error:
400 Bad Request; Update Instagram in the app store to sign up. Your version of the app is out of date
would you please provide an update or tools to make the update myself
Hey, thank you so much for this tool, it is exactly what I was looking for!
Right now I am manually sharing my posts from Instagram to Facebook (can be done through the Instagram app by going to a post->...->Post to other Apps...->Facebook). Is there a way to do this through this tool?
Hi I suddenly get this error, while it worked for weeks before. (I did run the script more the latest week)
(node:1007) UnhandledPromiseRejectionWarning: RequestError: Error: getaddrinfo ENOTFOUND i.instagram.com
at Request.faultTolerantRequest (/Users/quinten/Tools-for-Instagram/node_modules/instagram-private-api/dist/core/request.js:132:19)
(node:1007) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 26)
Hi , is this bot still working in 2024??
The What?
Is there an option to disable the library's console.log()
s ?
The Why?
tools-for-instagram.js
), as a result, all the previous logs are lost.I'm getting this error using likeRecentHashtagsByIntervals error. Below is all my codes. Nothing fancy, just settings and calling the function.
let ig = await login(); let likesPerInterval = 24; let waitMinutesBetweenLikes = 60;
let intervals = [ ["0:00", "23:00"] ]; let hashtagArray = [ "meme", "memes", "dailymeme", "dailymemes" ];
let likeInterval = likeRecentHashtagsByIntervals( ig, hashtagArray, intervals, likesPerInterval, waitMinutesBetweenLikes);
Anyone knows what's wrong?
npm ERR! prepareGitDep 1>
npm ERR! prepareGitDep > [email protected] prepare /Users/quinten/.npm/_cacache/tmp/git-clone-11f58d7a
npm ERR! prepareGitDep > npm run build
npm ERR! prepareGitDep
npm ERR! prepareGitDep
npm ERR! prepareGitDep > [email protected] build /Users/quinten/.npm/_cacache/tmp/git-clone-11f58d7a
npm ERR! prepareGitDep > rimraf dist && tsc -p tsconfig.build.json
npm ERR! prepareGitDep
npm ERR! prepareGitDep node_modules/typescript/lib/lib.dom.d.ts(16532,11): error TS2430: Interface 'WebGL2RenderingContext' incorrectly extends interface 'WebGL2RenderingContextBase'.
npm ERR! prepareGitDep Types of property 'clearBufferfv' are incompatible.
npm ERR! prepareGitDep Type '(buffer: number, drawbuffer: number, values: ArrayLike | Float32Array, srcOffset?: number | undefined) => void' is not assignable to type '{ (buffer: number, drawbuffer: number, values: Float32List, srcOffset?: number | undefined): void; (buffer: number, drawbuffer: number, values: Iterable, srcOffset?: number | undefined): void; }'.
npm ERR! prepareGitDep Types of parameters 'values' and 'values' are incompatible.
npm ERR! prepareGitDep Type 'Iterable' is not assignable to type 'ArrayLike | Float32Array'.
npm ERR! prepareGitDep Type 'Iterable' is missing the following properties from type 'Float32Array': BYTES_PER_ELEMENT, buffer, byteLength, byteOffset, and 25 more.
npm ERR! prepareGitDep node_modules/typescript/lib/lib.dom.d.ts(16532,11): error TS2430: Interface 'WebGL2RenderingContext' incorrectly extends interface 'WebGL2RenderingContextOverloads'.
npm ERR! prepareGitDep Types of property 'uniform1fv' are incompatible.
npm ERR! prepareGitDep Type '(location: WebGLUniformLocation | null, data: ArrayLike | Float32Array, srcOffset?: number | undefined, srcLength?: number | undefined) => void' is not assignable to type '{ (location: WebGLUniformLocation | null, data: Float32List, srcOffset?: number | undefined, srcLength?: number | undefined): void; (location: WebGLUniformLocation | null, data: Iterable<...>, srcOffset?: number | undefined, srcLength?: number | undefined): void; }'.
npm ERR! prepareGitDep Types of parameters 'data' and 'data' are incompatible.
npm ERR! prepareGitDep Type 'Iterable' is not assignable to type 'ArrayLike | Float32Array'.
npm ERR! prepareGitDep Type 'Iterable' is not assignable to type 'Float32Array'.
npm ERR! prepareGitDep node_modules/typescript/lib/lib.dom.d.ts(16532,11): error TS2430: Interface 'WebGL2RenderingContext' incorrectly extends interface 'WebGLRenderingContext'.
npm ERR! prepareGitDep Types of property 'uniform1fv' are incompatible.
npm ERR! prepareGitDep Type '(location: WebGLUniformLocation | null, data: ArrayLike | Float32Array, srcOffset?: number | undefined, srcLength?: number | undefined) => void' is not assignable to type '{ (location: WebGLUniformLocation | null, v: Float32List): void; (location: WebGLUniformLocation | null, v: Iterable): void; }'.
npm ERR! prepareGitDep Types of parameters 'data' and 'v' are incompatible.
npm ERR! prepareGitDep Type 'Iterable' is not assignable to type 'ArrayLike | Float32Array'.
npm ERR! prepareGitDep Type 'Iterable' is not assignable to type 'Float32Array'.
npm ERR! prepareGitDep ../../../../node_modules/@types/webgl2/index.d.ts(582,13): error TS2403: Subsequent variable declarations must have the same type. Variable 'WebGL2RenderingContext' must be of type '{ new (): WebGL2RenderingContext; prototype: WebGL2RenderingContext; readonly ACTIVE_ATTRIBUTES: number; readonly ACTIVE_TEXTURE: number; ... 556 more ...; readonly WAIT_FAILED: number; }', but here has type '{ new (): WebGL2RenderingContext; prototype: WebGL2RenderingContext; readonly ACTIVE_ATTRIBUTES: number; readonly ACTIVE_TEXTURE: number; ... 557 more ...; readonly MAX_CLIENT_WAIT_TIMEOUT_WEBGL: number; }'.
npm ERR! prepareGitDep
npm ERR! prepareGitDep 2> npm WARN install Usage of the --dev
option is deprecated. Use --only=dev
instead.
npm ERR! prepareGitDep npm ERR! code ELIFECYCLE
npm ERR! prepareGitDep npm ERR! errno 2
npm ERR! prepareGitDep npm ERR! [email protected] build: rimraf dist && tsc -p tsconfig.build.json
npm ERR! prepareGitDep npm ERR! Exit status 2
npm ERR! prepareGitDep npm ERR!
npm ERR! prepareGitDep npm ERR! Failed at the [email protected] build script.
npm ERR! prepareGitDep npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! prepareGitDep
npm ERR! prepareGitDep npm ERR! A complete log of this run can be found in:
npm ERR! prepareGitDep npm ERR! /Users/quinten/.npm/_logs/2020-07-12T13_56_26_263Z-debug.log
npm ERR! prepareGitDep npm ERR! code ELIFECYCLE
npm ERR! prepareGitDep npm ERR! errno 2
npm ERR! prepareGitDep npm ERR! [email protected] prepare: npm run build
npm ERR! prepareGitDep npm ERR! Exit status 2
npm ERR! prepareGitDep npm ERR!
npm ERR! prepareGitDep npm ERR! Failed at the [email protected] prepare script.
npm ERR! prepareGitDep npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! prepareGitDep
npm ERR! prepareGitDep npm ERR! A complete log of this run can be found in:
npm ERR! prepareGitDep npm ERR! /Users/quinten/.npm/_logs/2020-07-12T13_56_26_380Z-debug.log
npm ERR! prepareGitDep
npm ERR! premature close
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/quinten/.npm/_logs/2020-07-12T13_56_34_479Z-debug.log
(base) quinten@MacBook-Pro-van-Quinten Tools-for-Instagram % npm run build
npm ERR! missing script: build
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/quinten/.npm/_logs/2020-07-12T14_01_15_849Z-debug.log
Tools-for-Instagram/src/detectFaces.js
Line 14 in 59077c7
Online Mode configuration in accounts folder doesn't turn off even when onlineMode=false, and it causes mqttqt error
throw er; 1/ Unhandled 'error' event
Er ror: This socket has been ended by the other party
at MQTTOTClient.writePacket ToSocket (/ root/personal/Tools -for - Instagram/nodemodu les/instagram_mqtt/dist/n
qtt/mqtt.Client .js:179:21)
at Timeout.onTimeout (/root/persona l/Tools-for -Instagram/node_modules/instagram_mqtt/dist/mqttot/mqttot.c
Lient.js:25:18)
Emitted_'error" _event on RealtimeClient instance_at:
at RealtimeClient. emitError (/root/personal/Tools-for-Instagram/node_modules/instagram_mqtt/dist/realtime/
Hi,
what is about?
Just clone the repo, use the .env file for username and password then run node example.js
Thanks in advance
IgResponseError: POST /api/v1/accounts/msisdn_header_bootstrap/ - 401 Unauthorized; Please wait a few minutes before you try again.
at Request.handleResponseError (D:\Coding\Instagram Automation\node_modules\instagram-private-api\dist\core\request.js:126:16)
at Request.send (D:\Coding\Instagram Automation\node_modules\instagram-private-api\dist\core\request.js:54:28)
at async AccountRepository.msisdnHeaderBootstrap (D:\Coding\Instagram Automation\node_modules\instagram-private-api\dist\repositories\account.repository.js:251:26)
I am using this library with an electron app as,
ipc.on('connect-instagram', async (event, args) => {
console.log('ipc main started running') // I don't even see this log
try {
const ig = await login({inputLogin: args.username, inputPassword: args.password}) // this is causing the app to crash
console.log('logged in')
} catch (e) {
console.log(e) // doesn't even catch the error
}
})
| IgResponseError: POST /api/v1/accounts/get_prefill_candidates/ - 302 Found; i
0|index | at Request.handleResponseError (/home/bitnami/venbotv3/server/node_moduless
/instagram-private-api/dist/core/request.js:125:16)f
0|index | at Request.send (/home/bitnami/venbotv3/server/node_modules/instagram-priv:
ate-api/dist/core/request.js:53:28)0
0|index | at async AccountRepository.getPrefillCandidates (/home/bitnami/venbotv3/ses
rver/node_modules/instagram-private-api/dist/repositories/account.repository.js:273:26)"
Is there a way to get mutual followers of an account?
Is there maybe any ready to go script for testing upload image/post image on IG
Hope this is the right place to ask, apologize if not...
title
I quiet the novice and I'm not getting the example for uploading or at least it's not working for me.
Possible to make a working bot example? In the bots folder?
Kind regards!
Hey,
I would like to run the following:
require('./src/tools-for-instagram.js');
(async () => {
let user = 'username';
console.log("\n1 -- LOGIN --\n".bold.underline);
let ig = await login();
console.log("\n2 -- Get User Info -- \n".bold.underline);
let info = await getUserInfo(ig, user);
console.log("User information, username: " + info.username);
console.log("\n3 -- Get Followers in .json file -- \n".bold.underline);
//console.log("You can specify a max of iterations, like getFollowers(ig, Instargram, iterations = 2)\nEach iteration gets around 10.000 accounts".yellow);
await getFollowers(ig, user);
console.log("\n3 -- Get Following in .json file -- \n".bold.underline);
//console.log("You can specify a max of iterations, like getFollowers(ig, Instargram, iterations = 2)\nEach iteration gets around 10.000 accounts".yellow);
await getFollowing(ig, user);
console.log("\nProcess done!\n".green);
// If ONLINE_MODE is enabled, this example will run until we send an exit signal
process.exit();
})();
This is basically working in a separate file like the example.js when I type in: node follower.js
However, I would rather implement it in my index.js instead. There I already have a few other methods and after they run I would then like to examine the followers.
So I added it to my index.js in feathers. But when I then start the server with npm run dev, only the following happens in the terminal:
Tools for instagram by @linkfy
cpu backend was already registered. Reusing existing backend factory.
Platform node has already been set. Overwriting the platform with [object Object].
Not using proxy
Mobile/Residential proxy recommended
Trying to log with myaccount
info: Feathers application started on http://localhost:3030
Cookies loaded
[nodemon] restarting due to changes...
[nodemon] starting node src/
It just restarts all the time without dropping the followers in the output. Any idea?
Hi, so when im trying to run the default example.js file I'm getting the following error
Not using proxy Mobile/Residential proxy recommended (node:1404) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'green' of undefined
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.