Giter Site home page Giter Site logo

devilapi / instagram-helper Goto Github PK

View Code? Open in Web Editor NEW

This project forked from pishangujeniya/instagram-helper

0.0 0.0 0.0 788 KB

Instagram Scripts for Bulk Unsending Direct Messages

Home Page: https://pishangujeniya.github.io/instagram-helper/

License: MIT License

JavaScript 59.06% HTML 31.31% VBScript 9.63%

instagram-helper's Introduction

๐ŸŒŽ Website

Instagram Helper Script

Instagram Scripts for various tasks automation

Instagram Helper

This JavaScript has helper methods to perform various tasks automation.

Requirements

  1. Windows 7/8/10 (Are you MacOS or Linux user? Help)
  2. Chrome Browser

Initial Steps

  • Install Chrome Browser
  • Open https://github.com/pishangujeniya/instagram-helper/releases/
  • Download latest release version (Source Code zip) and extract to desktop.
  • Create an empty temporary folder somewhere.
  • Double click InstagramHelperChrome.vbs from the extracted folder.
  • Select that temporary created folder.
  • That will then generate a Chrome Shortcut on your Desktop with name InstagramHelperChrome
  • Open that Special Chrome Browser using that shortcut. (Ignore the flag that says You are using an unsupported comman-line flag: --disable-web-security. Stability and security will suffer) (This flag is shown because we will be mimicking the automation process of Sending Request to Instagram using Chrome).
  • Open Instagram.com
  • Press F12 (Developer Tools) or Ctrl+Shift+I

โ‰ How to delete/unsend all messages? ๐Ÿ“ƒ๐Ÿ“ท๐ŸŽฅ

  • Follow the initial steps

  • Open any chat and then see the link should be such as (https://www.instagram.com/direct/t/xxxx)

  • Note and copy the last long numerical digits from link to some notepad.

  • Those digits is your chat thread Id.

  • Now Copy the InstagramHelper.js file contents and paste it in Console tab

  • Copy Paste the following code in Console and Hit Enter

  •   var ig  = new InstagramHelper();
      ig.startUnsending("your_chat_thread_Id");
  • After that you will see getting messages... displayed in the console window and Deleting... will be displayed whenever it starts deleting.

  • At the end it will show All messages deleted., So you have unsended every message that you sent.

  • Deleting messages is kept intentionally slow because Instagram has limit to delete number of messages in per second.

If we delete fastly then Instagram servers detects it as bot and then unsending is not allowed with the session temporarily, until you logout and relogin. So to avoid getting detected, we have kept a delay in the code to delete messages with specific interval of time. It is very tedious and time consuming process, but efficient and better than doing it manually. One can simply open a new chrome browser window and follow the simple steps and minimise it.

โ‰ How to delete/unsend all media content (other than text)?๐Ÿ“ท๐ŸŽฅ

  • Follow the initial steps
  • Open any chat and then see the link should be such as (https://www.instagram.com/direct/t/xxxx)
  • Note and copy the last long numerical digits from link to some notepad.
  • Those digits is your chat thread Id.
  • Now Copy the InstagramHelper.js file contents and paste it in Console tab
  • Copy Paste the following code in Console and Hit Enter
  •   var ig  = new InstagramHelper();
      ig.startUnsendingMedia("your_chat_thread_Id");
  • After that you will see getting media... displayed in the console window and Deleting... will be displayed whenever it starts deleting.
  • At the end it will show All media deleted., So you have unsended every message that you sent.

โ‰ How to get exported all messages?๐Ÿ’พ

  • Follow the initial steps

  • Open any chat and then see the link should be such as (https://www.instagram.com/direct/t/xxxx)

  • Note and copy the last long numerical digits from link to some notepad.

  • Those digits is your chat thread Id.

  • Now Copy the InstagramHelper.js file contents and paste it in Console tab

  • Copy Paste the following code in Console and Hit Enter

  •   var ig  = new InstagramHelper();
      ig.getAllMessagesData("your_chat_thread_Id");
  • Then run the following command to get the JSON extracted file.

  •   ig.downloadMessagesDetails();
  • Open the link InstagramHelperDataViewer to view the data.

โ‰ FAQ

๐Ÿ˜– Getting errors displayed in console while running the code

  • There might be some errors related to Instagram site, not every error displayed on console are from our script.
  • If error persists and repeats everytime, then close browser logout and relogin and then try running the code.

๐Ÿ˜ต Getting too often "Try again tomorrow" Error or 429 Response Code?

  • Try to close the browser re-open Instagram and logout then login.
  • Instead of running this ig.startUnsending("your_chat_thread_Id"); run with more higher number of delay by default it is 3500 milliseconds, try other values like 4500, 5500, 6500 ig.startUnsending("your_chat_thread_Id",5500);

๐Ÿ˜’ Any more questions?

  • Check Issues Page
  • If your question is not existing in issues do create a new Issue here instead of messaging on social media or emailing me.

๐Ÿ›‘ How to stop unsending process?

  • Refresh the browser or Close the browser or Restart the computer.

๐Ÿ˜• How to confirm how many messages are there in chat?

  • Follow the steps mentioned in 'How to get exported all messages?'

โš  Warning

The script or the creator is in any ways not reponsibile for any of your actions. Do at your own risk.

For education purpose only.

The script in any way is not doing anything different other than just computer programmatically automation to the task which a user would do manually.

We do not collect any data or information.

The network request is send to server whenever a user does some task on using Instagram Normally, that requests are automatically programmatically sent using this script.

We do not have any connection to the user who is using this script.

The script is totally the similar execution of code to the task which Instagram Website does.

The script does the task on the site of Instagram.com and so the requests are also sent on the Instagram server for the task.

The code of script is totally opensource and is very simple and easy to understand which can confirm the above statements.

๐Ÿ’ช Script created & Maintained by

Pishang Ujeniya

If you are happy to use this project and found this project helpful for you as well as others or you learned something from the source code of this project and want to thank me,

  • Be a Stargazer to this repository.
  • Share with your friends and colleagues.
  • Follow and Endorse me on linkedin.

๐Ÿ’ฐ Donations

Star it! โญ If it worked for you.

๐Ÿ˜ Donors

  1. Laila Gates
  2. Nikita Rvachev
  3. Mark Utnehmer

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.