Open 65156 opened 3 months ago
Hi there! Thanks for letting me know. I looked into the issue while working on a new script to delete likes and ran into the same error.
I found that this is likely due to a rate-limiting restriction from Instagram, where you cannot delete too many comments/likes at once. So, even if you try to delete the comments manually now, chances are you would get the same error. The only solution now is to wait a few hours or even a day before rerunning the script.
Also, the current version of the script requires logging in every time it runs, which could raise suspicion with Instagram if it's run frequently enough. Therefore, I advise against running the script repeatedly. However, an update is coming that will let you stay logged in and handle more error scenarios.
Update: I have pushed an update that lets you stay logged in, making the script much safer by avoiding suspicion due to repeated logins in a short period of time.
I will keep the issue open in case others have more insights regarding the error.
Hey there, getting this error after your update. Changed nothing, besides updating the files. Worked flawlessly ( besides getting rate limited ) before. Thanks for the script btw
del-all-ig-comments: Script started Message: unknown error: cannot create default profile directory Stacktrace: GetHandleVerifier [0x00007FF73FC3AD02+56930] (No symbol) [0x00007FF73FBAF602] (No symbol) [0x00007FF73FA642E5] (No symbol) [0x00007FF73FA989F4] (No symbol) [0x00007FF73FA95186] (No symbol) [0x00007FF73FA905D4] (No symbol) [0x00007FF73FAD595F] (No symbol) [0x00007FF73FAD54C0] (No symbol) [0x00007FF73FACBA43] (No symbol) [0x00007FF73FA9D438] (No symbol) [0x00007FF73FA9E4D1] GetHandleVerifier [0x00007FF73FFB6F8D+3711213] GetHandleVerifier [0x00007FF7400104CD+4077101] GetHandleVerifier [0x00007FF74000865F+4044735] GetHandleVerifier [0x00007FF73FCD9736+706710] (No symbol) [0x00007FF73FBBB8DF] (No symbol) [0x00007FF73FBB6AC4] (No symbol) [0x00007FF73FBB6C1C] (No symbol) [0x00007FF73FBA68D4] BaseThreadInitThunk [0x00007FF92F427344+20] RtlUserThreadStart [0x00007FF9307226B1+33]
del-all-ig-comments: Web driver could not start. Have you installed ChromeDriver? Check README for details. del-all-ig-comments: Quitting...
Yea, then it looks like rate limits are indeed a thing. Thanks for your info @PacksInHiding. Regarding your issue, I seem to have pushed faulty code for Windows users earlier. The issue should be resolved now. I am glad the script works for you 😄
also same error on my phone...weird, definitely rate and daily cap limited now.
have you seen this?
https://developers.facebook.com/docs/instagram-api/guides/comment-moderation/
you can make use of these on the account, after you switch your instagram account to a business account.
Interesting... I haven't seen this before. But I just did some brief research about it, and it seems that using this API involves me registering an app with Facebook. You, as the users, would then log in via Facebook to my app and grant me permissions specifically related to managing comments and likes (e.g. instagram_manage_comments). Afterward, my app would make API calls to batch delete comments/likes for you when you click on a button or something similar.
This could work, but it will take some time to implement given it involves engaging with Facebook. Additionally, whether Facebook would approve a dedicated app for deleting comments and likes is something that needs to be figured out. Thanks for the idea!
can we create our own apps and own app permissions, I did this for a twitter delete tool, its a bit of a process, but was worth it; basically you request a dev account for specific testing on your data only; then im basically just passing a bunch of api keys and secrets into the script to grant permission against my app.
facebook should be able to grant this to anyone, thats the easiest route.
oh cool, look at this
everything looks good but it seems to error out while its deleting?
(venv) frankie@elysium delete-instagram-comments-likes % python3 --version Python 3.12.2
let me know if you need any other info.