GithubHelp home page GithubHelp logo

hbollon / igopher Goto Github PK

View Code? Open in Web Editor NEW
158.0 9.0 30.0 10.77 MB

⚡ Powerful, customizable and easy to use Instagram dm bot. With TUI and Electron.js GUI! Using Selenium webdriver and Yaml configuration files. (WIP)

License: MIT License

Go 61.80% HTML 0.46% Shell 0.89% JavaScript 0.28% Vue 30.70% TypeScript 4.43% Makefile 1.44%
instagram-dm-bot bot tui instagram instagram-bot automation selenium selenium-webdriver go golang

igopher's Introduction

IGopher : (WIP) Golang smart bot for Instagram DM automation

IGopher logo

Build CI Go Report Card License: MIT PkgGoDev

⚡ Powerful, customizable and easy to use Instagram dm bot. With TUI and Eletron.js GUI! Using Selenium webdriver and Yaml configuration files.

This project is under active development, there may be bugs or missing features. If you have any problem or would like to see a feature implemented, please, open an issue. This is essential so that we can continue to improve IGopher!


Disclaimer: This is a research project. I am in no way responsible for the use you made of this tool. In addition, I am not responsible for any sanctions and/or limitations imposed on your account after using this bot.


Table of Contents

Presentation

IGopher is a new Instagram automation tool that aims to simplify the deployment of such tools and make their use more pleasant thanks to a TUI (Terminal User Interface) as well as a GUI (Graphical User Interface) powered with Electron.js!

Graphical User Interface

A beautiful, cross-platform and easy to use interface! Build with Electron.js and go-astilectron.

Come with Hot Reload functionality to apply configuration changes without restart ! Bot stopping and hot reloading are actions safe by waiting bot idle to execute.

Terminal User Interface

Automatic user fetching and message sending!

Thanks to the TUI you can easily use this tool on a not very powerful machine, in ssh, on a Vps or even on an operating system without graphical interface! The bot configuration is very easy thanks to the different configuration menus in the TUI. Parameters are managed and saved in Yaml files easy to edit manually! All dependencies are downloaded and managed automatically.

Easily configurable and easy to use thanks to his TUI !

Requirements

Features

  • Selenium webdriver engine 🌠
  • Automatic dependencies downloading and installation 🌠
  • Automated IG connection & message sending 🌠
  • Users scrapping from ig user followers 🌠
  • Scheduler 🌠
  • Quotas & user blacklist modules 🌠
  • Human writing simulation 🌠
  • Fully and easily customizable through Yaml files or with TUI 🌠
  • TUI (Terminal User Interface) 🌠
  • GUI (Graphical User Interface) powered with Electron.js 🌠
    • Hot Reload functionality to apply configuration changes without restart !
    • Stop and Hot Reload are actions safe by waiting bot idle to execute !
  • Many more to come ! 🥳

Check this Project to see all planned features for this tool! Feel free to suggest additional features to implement! 🥳

Getting Started

From release

GUI version:

  1. Download and install Java 8 or 11 (needed for Selenium webdriver) and add them to your path (on Windows)
  2. Download lastest release GUI executable for your operating system
  3. Move the executable to a dedicated folder (it will create folders/files)
  4. Launch it
  • For the moment, on MacOS, you must move the .app to your Applications folder and execute the binary file located inside the .app one. It will be improved soon!
  1. Configure the bot with your Instagram credentials and your desired scrapping and autodm settings.
  2. You're ready! Just hit the "Launch" option on the dm automation page 🚀 IGopher will download all needed dependencies automatically, don't panic if it seems stuck. I will implement a download monitoring view soon 😄

TUI version:

  1. Download and install Java 8 or 11 (needed for Selenium webdriver) and add them to your path (on Windows)
  2. Download lastest release TUI executable for your operating system
  3. Move the executable to a dedicated folder (it will create folders/files)
  4. Launch it:
  • On Windows, open a Windows Terminal in the folder (or powershell/cmd but the experience quality can be lower) and execute it: ./tui.exe or just drag and drop tui.exe in your command prompt
  • On Linux or MacOS, open you favorite shell in the folder, allow it to be executed with chmod +x ./tui and launch it: ./tui
  1. Configure the bot with your Instagram credentials and set your desired scrapping and autodm settings. To do that, you can use the TUI settings screen or directly edit the config.yaml file.
  2. You're ready! Just hit the "Launch" option in the TUI main menu 🚀

From sources

GUI version:

With bundles
  1. Download and install Java 8 or 11 (needed for Selenium webdriver) and add them to your path (on Windows)
  2. Install Go on your system
  3. Download lastest release source archive or clone the master branch
  4. Launch bundle.sh script from the project root directory
  5. Once done, you can find all generated executables in cmd/igopher/gui-bundle/output for all operating systems!
Without bundles
  1. Download and install Java 8 or 11 (needed for Selenium webdriver) and add them to your path (on Windows)
  2. Install Go on your system
  3. Download lastest release source archive or clone the master branch
  4. Launch it with this command: go run ./cmd/igopher/gui

TUI version:

  1. Download and install Java 8 or 11 (needed for Selenium webdriver) and add them to your path (on Windows)
  2. Install Go on your system
  3. Download lastest release source archive or clone the master branch
  4. Launch it with this command: go run ./cmd/igopher/tui
  5. Configure the bot with your Instagram credentials and set your desired scrapping and autodm settings. To do that, you can use the TUI settings screen or directly edit the config.yaml file.
  6. You're ready! Just hit the "Launch" option in the TUI main menu 🚀

Flags

IGopher have a flags system for debuging or to enable system feature. You can activate them by adding them after the executable call, for exemple to activate headless mode: ./tui --headless

There is the list of all available flags:

--debug
      Display debug and selenium output
--force-download
      Force redownload of all dependencies even if exists
--headless
      Run WebDriver with frame buffer
--ignore-dependencies
      Skip dependencies management
--loglevel string
      Log level threshold (default "info")
--port int
      Specify custom communication port (default 8080)

You can recover this list by adding --help flag.

Known Issues

[GUI] Microsoft Smart Screen block IGopher.exe execution

At the moment Microsoft Smart Screen block IGopher.exe from launching. To avoid that, you must whitelist IGopher. I'm currently investigating on this issue, I submitted my exe to Microsoft so we will see.

[GUI] Running the .app on MacOs does nothing

At the moment, you must move the .app to your Applications folder and run the binary file located in it. It can also block the execution since the app isn't signed yet. You can avoid it by launching it from terminal or by right clicking on it and open it.

Javascript error just after bot launch

This issue ofter happen with an incompatible Java version installed. Indeed, IGopher isn't compatible with versions of the JRE greater than 11 yet due to the use of Selenium 3.

Working Java versions tested:

  • Windows: Java 8
  • Linux (Manjaro): jre11-openjdk -> sudo pacman -S jre11-openjdk

If you find other problems, please open an issue. This is essential so that we can continue to improve IGopher! 😄

🤝 Contributing

Contributions are greatly appreciated!

  1. Fork the project
  2. Create your feature branch (git checkout -b feature/AmazingFeature)
  3. Commit your changes (git commit -m 'Add some amazing stuff')
  4. Push to the branch (git push origin feature/AmazingFeature)
  5. Create a new Pull Request

Issues and feature requests are welcome! Feel free to check issues page.

Author

👤 Hugo Bollon

Show your support

Give a ⭐️ if this project helped you!

📝 License

This project is under MIT license.

igopher's People

Contributors

deepsourcebot avatar github-actions[bot] avatar hbollon avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

igopher's Issues

scrollTo bug

window.scrollTo(0, document.body.scrollHeight); don't work because there is two scrolls bar
did u know how we can scroll inside div plz ? or another solution ?

tedd

Bot Canà t pass Login screen

Hi! I'm testing your IG bot, but can't let it work properly, the app crashes before login. I think instagram has added a new pre login screen, to avoid auto login from bots.

To Reproduce
Steps to reproduce the behavior:

  1. Set all the parameters needed
  2. Click "Launch"
  3. Bot can't find Cookies validation button
  4. Bot can't find Login button
  5. Apps Crashes
  6. See error in log

Screenshots
image
image

If applicable, add screenshots to help explain your problem.

Error output
{"level":"info","msg":"astikit: starting worker...","time":"2023-04-11T12:23:29+02:00"}
{"level":"info","msg":"astikit: worker is now waiting...","time":"2023-04-11T12:23:34+02:00"}
{"level":"info","msg":"Downloading and installing dependencies...","time":"2023-04-11T12:35:15+02:00"}
{"level":"info","msg":"Downloads finished","time":"2023-04-11T12:36:08+02:00"}
{"level":"info","msg":"Connecting to Instagram account...","time":"2023-04-11T12:36:16+02:00"}
{"level":"info","msg":"Cookies validation button not found, skipping.","time":"2023-04-11T12:36:32+02:00"}
{"level":"info","msg":"Login button not found, skipping.","time":"2023-04-11T12:36:47+02:00"}
{"level":"info","msg":"IGopher's ressources successfully cleared!","time":"2023-04-11T12:37:08+02:00"}
{"level":"fatal","msg":"Log in button not found: Timed out : element not found","time":"2023-04-11T12:37:08+02:00"}
{"level":"info","msg":"astikit: starting worker...","time":"2023-04-11T12:40:37+02:00"}
{"level":"info","msg":"astikit: worker is now waiting...","time":"2023-04-11T12:40:38+02:00"}
{"level":"info","msg":"Downloading and installing dependencies...","time":"2023-04-11T12:41:04+02:00"}
{"level":"info","msg":"All dependencies are already installed, skipping.","time":"2023-04-11T12:41:06+02:00"}
{"level":"info","msg":"Connecting to Instagram account...","time":"2023-04-11T12:41:14+02:00"}
{"level":"info","msg":"Cookies validation button not found, skipping.","time":"2023-04-11T12:41:31+02:00"}
{"level":"info","msg":"Login button not found, skipping.","time":"2023-04-11T12:41:45+02:00"}
{"level":"info","msg":"IGopher's ressources successfully cleared!","time":"2023-04-11T12:42:00+02:00"}
{"level":"info","msg":"astikit: starting worker...","time":"2023-04-11T12:46:53+02:00"}
{"level":"info","msg":"astikit: worker is now waiting...","time":"2023-04-11T12:46:53+02:00"}
{"level":"info","msg":"Downloading and installing dependencies...","time":"2023-04-11T12:47:17+02:00"}
{"level":"info","msg":"All dependencies are already installed, skipping.","time":"2023-04-11T12:47:19+02:00"}
{"level":"info","msg":"Connecting to Instagram account...","time":"2023-04-11T12:47:21+02:00"}
{"level":"info","msg":"Login button not found, skipping.","time":"2023-04-11T12:47:41+02:00"}
{"level":"info","msg":"IGopher's ressources successfully cleared!","time":"2023-04-11T12:48:01+02:00"}
{"level":"fatal","msg":"Log in button not found: Timed out : element not found","time":"2023-04-11T12:48:01+02:00"}
{"level":"info","msg":"astikit: starting worker...","time":"2023-04-11T12:48:04+02:00"}
{"level":"info","msg":"astikit: worker is now waiting...","time":"2023-04-11T12:48:04+02:00"}
{"level":"info","msg":"Downloading and installing dependencies...","time":"2023-04-11T12:48:27+02:00"}
{"level":"info","msg":"All dependencies are already installed, skipping.","time":"2023-04-11T12:48:29+02:00"}
{"level":"info","msg":"Connecting to Instagram account...","time":"2023-04-11T12:48:31+02:00"}
{"level":"info","msg":"Login button not found, skipping.","time":"2023-04-11T12:48:51+02:00"}
{"level":"info","msg":"IGopher's ressources successfully cleared!","time":"2023-04-11T12:49:10+02:00"}
{"level":"info","msg":"IGopher's ressources successfully cleared!","time":"2023-04-11T12:49:10+02:00"}
{"level":"fatal","msg":"Log in button not found: Timed out : element not found","time":"2023-04-11T12:49:10+02:00"}
{"level":"info","msg":"astikit: starting worker...","time":"2023-04-11T15:45:19+02:00"}
{"level":"info","msg":"astikit: worker is now waiting...","time":"2023-04-11T15:45:19+02:00"}
{"level":"info","msg":"Downloading and installing dependencies...","time":"2023-04-11T15:45:54+02:00"}
{"level":"info","msg":"All dependencies are already installed, skipping.","time":"2023-04-11T15:45:56+02:00"}
{"level":"info","msg":"Connecting to Instagram account...","time":"2023-04-11T15:45:59+02:00"}
{"level":"info","msg":"Login button not found, skipping.","time":"2023-04-11T15:46:19+02:00"}
{"level":"info","msg":"IGopher's ressources successfully cleared!","time":"2023-04-11T15:46:38+02:00"}
{"level":"info","msg":"IGopher's ressources successfully cleared!","time":"2023-04-11T15:46:38+02:00"}
{"level":"fatal","msg":"Exception during username inject: Timed out : element not found","time":"2023-04-11T15:46:38+02:00"}
{"level":"info","msg":"astikit: starting worker...","time":"2023-04-11T15:46:52+02:00"}
{"level":"info","msg":"astikit: worker is now waiting...","time":"2023-04-11T15:46:53+02:00"}
{"level":"info","msg":"Downloading and installing dependencies...","time":"2023-04-11T15:47:55+02:00"}
{"level":"info","msg":"All dependencies are already installed, skipping.","time":"2023-04-11T15:47:57+02:00"}
{"level":"info","msg":"Connecting to Instagram account...","time":"2023-04-11T15:48:05+02:00"}
{"level":"info","msg":"Cookies validation button not found, skipping.","time":"2023-04-11T15:48:21+02:00"}
{"level":"info","msg":"Login button not found, skipping.","time":"2023-04-11T15:48:34+02:00"}
{"level":"info","msg":"IGopher's ressources successfully cleared!","time":"2023-04-11T15:48:54+02:00"}

Desktop (please complete the following information):

  • OS: Windows
  • Version v0.4.2

Can't launch terminal version - DevToolsActivePort file doesn't exist

Please read the comments as well!

Hi there,

Describe the bug
While running the app I'm getting an error:

FATA[0032] Error handling firefox.tar.bz2: Error unzipping "./lib/firefox.tar.bz2": exit status 2  function=func1 line=504

To Reproduce
Steps to reproduce the behavior:

  1. Download the TUI release:
$ wget https://github.com/hbollon/IGopher/releases/download/v0.4.2/IGopherTUI-linux-amd64
  1. Run it:
$ ./IGopherTUI-linux-amd64
  1. Go to Configure and fill the username and password. Save and go back.
  2. Hit Launch, it will start the init process:
🦄 Welcome to IGopher, the (soon) most powerful and versatile Instagram bot!

> 🚀 - Launch!
  🔧 - Configure
  🧨 - Reset settings
  🚪 - Exit

INFO[0001] Downloading and installing dependencies...    function=DownloadDependencies line=398
Linux_x64/949505/chrome-linux.zip
sauce-connect.tar.gz: done!
chrome-linux.zip: done!
chromedriver.zip: done!
firefox.tar.bz2: done!
selenium-server.jar: done!
htmlunit-driver.jar: done!
geckodriver.tar.gz: done!
proxy-login-automator: done!
FATA[0038] Error handling firefox.tar.bz2: Error unzipping "./lib/firefox.tar.bz2": exit status 2  function=func1 line=504

Error output

$ cat logs/logs.log
{"level":"info","msg":"Downloading and installing dependencies...","time":"2023-06-18T09:04:41Z"}
{"level":"fatal","msg":"Error handling firefox.tar.bz2: Error unzipping \"./lib/firefox.tar.bz2\": exit status 2","time":"2023-06-18T09:05:12Z"}
{"level":"info","msg":"Downloading and installing dependencies...","time":"2023-06-18T09:09:33Z"}
{"level":"fatal","msg":"Error handling firefox.tar.bz2: Error unzipping \"./lib/firefox.tar.bz2\": exit status 2","time":"2023-06-18T09:10:10Z"}

Environment:

  • OS:
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 22.04.2 LTS
Release:        22.04
Codename:       jammy
  • unpacking tools:
ii  gzip                            1.10-4ubuntu4.1                         amd64        GNU compression utilities
ii  p7zip                           16.02+dfsg-8                            amd64        7zr file archiver with high compression ratio
ii  p7zip-full                      16.02+dfsg-8                            amd64        7z and 7za file archivers with high compression ratio
ii  python3-zipp                    1.0.0-3                                 all          pathlib-compatible Zipfile object wrapper - Python 3.x
ii  unzip                           6.0-26ubuntu3.1                         amd64        De-archiver for .zip files

[TUI] Project environment isn't initialize at the right location

Describe the bug
Project environment isn't initialize at the right location (sub-folders, dependencies, etc.) aren't created and used at the right location if the TUI is executed without having placed the terminal in the same directory as the executable.

Expected behavior
Normally the environment should be located automatically with the executable

Desktop (please complete the following information):

  • OS: Windows (MacOS & Linux too?)
  • Version: v0.1.3

Failed to Launch on MAC OS

INFO[0002] Downloading and installing dependencies...    function=DownloadDependencies line=253
ERRO[0066] unknown error: Timed out waiting for driver server to start.
Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:25:53'
System info: host: '192-168-0-146', ip: '<myprivateip>', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.13.6', java.version: '1.8.0_231'
Driver info: driver.version: unknown  function=InitChromeWebDriver line=99
INFO[0066] Reached end of service. Sleeping...           function=CheckTime line=130

Steps to reproduce:

Download source, have java installed, run the go. Config everything then press enter on "Launch".
downloading dependencies --> they download, then it just stops. giving the above error.

Idk if this is because of Java outdated or because depedencies are not for Mac

TUI HUGE ERROR MESSAGE AFTER DEPENDENCIES DOWNLOAD

Describe the bug
After launching on TUI, once dependencies are downloaded, the entire prompt closes and then.. nothing. at all.

on second try, i get a huge error message.
ERRO[0071] unknown error - 33: Unable to create session from {
"desiredCapabilities": {
"browserName": "chrome",
"chromeOptions": {
"binary": ".\lib\chrome-win\chrome.exe",
"args": [
"--incognito",
"--disable-extensions",
"--disable-infobars",
"--disable-dev-shm-usage",
"--no-sandbox",
"--window-size=360,740"

Error handling chrome-linux.zip

Describe the bug

To Reproduce

  1. Launch TUI version of IGopher.
  2. Configure account credentials.
  3. Launch!
    Expected behavior
    For it to download the dependencies and launch,

Screenshots
Image
Error output

🦄 Welcome to IGopher, the (soon) most powerful and versatile Instagram bot!

🚀 - Launch!
🔧 - Configure
🧨 - Reset settings
🚪 - Exit

INFO[0001] Downloading and installing dependencies... function=DownloadDependencies line=279
selenium-server.jar: 0.00 b / 0.00 b [----------------------------------------------------------| 0s ] 0.00 b/s
sauce-connect.tar.gz: 0.00 b / 0.00 b [----------------------------------------------------------| 0s ] 0.00 b/s
chrome-linux.zip: 0.00 b / 0.00 b [----------------------------------------------------------| 0s ] 0.00 b/s
chromedriver.zip: 0.00 b / 0.00 b [----------------------------------------------------------| 0s ] 0.00 b/s
firefox-nightly.tar.bz2: 0.00 b / 0.00 b [----------------------------------------------------------| 0s ] 0.00 b/s
htmlunit-driver.jar: 0.00 b / 0.00 b [----------------------------------------------------------| 0s ] 0.00 b/s
geckodriver.tar.gz: 0.00 b / 0.00 b [----------------------------------------------------------| 0s ] 0.00 b/s
FATA[0003] Error handling chrome-linux.zip: Error unzipping "./lib/chrome-linux.zip": exit status 9 function=func1 line=342

Desktop

  • OS: Ubuntu 16.04
  • Version 0.2.2

Additional context
Running on google cloud.

Access denied on chromedriver installation

Describe the bug
As soon as the installation of the dependencies finishes it gives me this line:

"WARN [0004] Error renaming". \ lib \ chromedriver_win32 \ chromedriver.exe "to". \ lib \ chromedriver.exe ": rename. \ Lib \ chromedriver_win32 \ chromedriver.exe. \ Lib \ chromedriver. exe: Access denied. function = handleFile line = 412 "

Then this:

"ERRO [0015] unknown error - 33: Unable to create session from {
"desiredCapabilities": {
"browserName": "chrome",
"chromeOptions": {
"binary": ". \ lib \ chrome-win \ chrome.exe",
"args": [
"--disable-extensions",
"--disable-infobars",
"--disable-dev-shm-usage",
"--no-sandbox",
"--window-size = 360,640"
],
"mobileEmulation": {
"deviceName": "Nexus 5"
},
"w3c": false
},
"goog: chromeOptions": {
"binary": ". \ lib \ chrome-win \ chrome.exe",
"args": [
"--disable-extensions",
"--disable-infobars",
"--disable-dev-shm-usage",
"--no-sandbox",
"--window-size = 360,640"
],
"mobileEmulation": {
"deviceName": "Nexus 5"
},
"w3c": false
}
},
"capabilities": {
"firstMatch": [
{
"browserName": "chrome",
"goog: chromeOptions": {
"binary": ". \ lib \ chrome-win \ chrome.exe",
"args": [
"--disable-extensions",
"--disable-infobars",
"--disable-dev-shm-usage",
"--no-sandbox",
"--window-size = 360,640"
],
"mobileEmulation": {
"deviceName": "Nexus 5"
},
"w3c": false
}
}
]
}
}
Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:25:53'
System info: host: 'DESKTOP', ip: '', os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '16.0.2'
Driver info: driver.version: unknown function=InitChromeWebDriver line=146"

Afterwards it opens 3 blank google windows.is.

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'IGopherTUI-windows-amd64'
  2. Click on 'launch'
  3. See error

Expected behavior

Screenshots
If applicable, add screenshots to help explain your problem.

Error output
Are written above

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

App closes immediately after opening up

Describe the bug
App opens up and closes immediately

To Reproduce
Steps to reproduce the behavior:

  1. downloaded and installed latest stable version for macOS on ARM64
  2. open up the app via right click → open
  3. App opens up and closes immediately

Expected behavior
App opens up and displays some sort of GUI

Desktop (please complete the following information):

  • OS: MacOS Ventura 13.4.1
  • IGopher 0.4.2

What is the time dealy for each DM?

I saw that is a waiting time? is it random for a period? does it still work if I minimize tray in taskbar or does it need to be on the screen?

Startup crash due to incompatibility with Java version

Describe the bug
After launch, I receive the follow error message:
A Javascript Error occurred in the main process
Uncaught Exception:
Error: read ECONNRESET
at TCP.onStreamRead (internal_streambase_commons.js:205:27)

Once launched, 3 chrome windows open up (with blue colored logo) and a javapath cmd promt type screen opens up (its a black screen that looks like cmdprompt but with no text on it)

To Reproduce
Steps to reproduce the behavior:

  1. Input all settings
  2. Launch
  3. See error

Expected behavior
A solid launch! I added java and jdk to my path.

Screenshots
Will do if needed

Error output
A Javascript Error occurred in the main process
Uncaught Exception:
Error: read ECONNRESET
at TCP.onStreamRead (internal_streambase_commons.js:205:27)

Desktop (please complete the following information):
Windows 10

Additional context
Add any other context about the problem here.

Driver info: driver version: unknown

Describe the bug
Launch via the GUI - selenium launches 3 chromium windows however does nothing else with simply data; in the address bar. Seems stuck. I can confirm I have Java and Java JDK installed

Expected behavior
Expected that selenium navigates to instagram and begins messaging users.

Screenshots
Screenshot from 2020-09-12 20-30-15

Error output
Driver info: driver version: unknown

Desktop (please complete the following information):

  • OS: Ubuntu 20.04

Account compromized warning after sending DM to 6 user

Screenshot from 2021-09-13 12-20-25

hi, i am using latest TUI release for amd64, after scrapping, the bot successfully send to 6 user, then failed, instagram give compromized warning page right after login.

{"level":"info","msg":"Downloading and installing dependencies...","time":"2021-09-13T04:41:13Z"}
{"level":"info","msg":"Connecting to Instagram account...","time":"2021-09-13T04:41:36Z"}
{"level":"info","msg":"Cookies validation button not found, skipping.","time":"2021-09-13T04:41:55Z"}
{"level":"info","msg":"Login button not found, skipping.","time":"2021-09-13T04:42:08Z"}
{"level":"info","msg":"Login Successful!","time":"2021-09-13T04:42:29Z"}
{"level":"info","msg":"Fetching users from users followers...","time":"2021-09-13T04:42:29Z"}
{"level":"info","msg":"Send message to xxxxxx...","time":"2021-09-13T04:52:38Z"}
{"level":"info","msg":"Message successfully sent!","time":"2021-09-13T04:56:34Z"}
{"level":"info","msg":"Send message to xxxxxx...","time":"2021-09-13T04:56:34Z"}
{"level":"info","msg":"Message successfully sent!","time":"2021-09-13T05:00:36Z"}
{"level":"info","msg":"Send message to xxxxxx...","time":"2021-09-13T05:00:36Z"}
{"level":"info","msg":"Message successfully sent!","time":"2021-09-13T05:04:32Z"}
{"level":"info","msg":"Send message to xxxxxx...","time":"2021-09-13T05:04:32Z"}
{"level":"info","msg":"Message successfully sent!","time":"2021-09-13T05:08:36Z"}
{"level":"info","msg":"Send message to xxxxxx...","time":"2021-09-13T05:08:36Z"}
{"level":"info","msg":"Message successfully sent!","time":"2021-09-13T05:12:31Z"}
{"level":"info","msg":"Send message to xxxxxx..","time":"2021-09-13T05:12:31Z"}
{"level":"warning","msg":"Failed to find process: %!s(\u003cnil\u003e)\n. The pid must be outdated.","time":"2021-09-13T05:12:59Z"}
{"level":"info","msg":"Delete outdated pid file and continue.","time":"2021-09-13T05:12:59Z"}
{"level":"info","msg":"Downloading and installing dependencies...","time":"2021-09-13T05:12:59Z"}
{"level":"info","msg":"Connecting to Instagram account...","time":"2021-09-13T05:13:26Z"}
{"level":"info","msg":"Cookies validation button not found, skipping.","time":"2021-09-13T05:13:44Z"}
{"level":"info","msg":"Login button not found, skipping.","time":"2021-09-13T05:13:58Z"}
{"level":"warning","msg":"Instagram does not ask for informations saving, the login process may have failed.","time":"2021-09-13T05:14:20Z"}
{"level":"info","msg":"Fetching users from users followers...","time":"2021-09-13T05:14:20Z"}
{"level":"info","msg":"IGopher's ressources successfully cleared!","time":"2021-09-13T05:14:45Z"}
{"level":"fatal","msg":"Failed users fetching: Empty users result","time":"2021-09-13T05:14:45Z"}

crashes

Describe the bug
after the browser private popup and log in, crashes the browser popup and then the application crashes

crashes also on the popup with the cookie statement.

Desktop (please complete the following information):

  • OS: windows 10 gui

Error output

info astikit: worker is now waiting... 2023-07-10T12:33:06+02:00
info astikit: starting worker... 2023-07-10T12:33:06+02:00
fatal Log in button not found: Timed out : element not found 2023-07-10T11:58:39+02:00
info IGopher's ressources successfully cleared! 2023-07-10T11:58:39+02:00
info Login button not found, skipping. 2023-07-10T11:58:20+02:00
info Cookies validation button not found, skipping. 2023-07-10T11:58:05+02:00
info Connecting to Instagram account... 2023-07-10T11:57:50+02:00
info All dependencies are already installed, skipping. 2023-07-10T11:57:47+02:00
info Downloading and installing dependencies... 2023-07-10T11:57:45+02:00
info astikit: worker is now waiting... 2023-07-10T11:57:24+02:00
info astikit: starting worker... 2023-07-10T11:57:23+02:00
fatal Log in button not found: Timed out : element not found 2023-07-10T11:55:53+02:00
info IGopher's ressources successfully cleared! 2023-07-10T11:55:53+02:00

Crashing

Keeps crashing on me when I try to run it

Failure to find login button

I have been having this issue where it cant find the isntagram login button, even when i press it manually.
{"level":"info","msg":"astikit: starting worker...","time":"2022-12-29T21:47:26+01:00"}
{"level":"info","msg":"astikit: worker is now waiting...","time":"2022-12-29T21:47:27+01:00"}
{"level":"info","msg":"Downloading and installing dependencies...","time":"2022-12-29T21:47:34+01:00"}
{"level":"info","msg":"All dependencies are already installed, skipping.","time":"2022-12-29T21:47:37+01:00"}
{"level":"info","msg":"Connecting to Instagram account...","time":"2022-12-29T21:47:41+01:00"}
{"level":"info","msg":"Login button not found, skipping.","time":"2022-12-29T21:48:01+01:00"}
{"level":"info","msg":"astikit: starting worker...","time":"2022-12-29T21:49:08+01:00"}
{"level":"info","msg":"astikit: worker is now waiting...","time":"2022-12-29T21:49:09+01:00"}
{"level":"info","msg":"Downloading and installing dependencies...","time":"2022-12-29T21:49:28+01:00"}
{"level":"info","msg":"All dependencies are already installed, skipping.","time":"2022-12-29T21:49:30+01:00"}
{"level":"info","msg":"Connecting to Instagram account...","time":"2022-12-29T21:49:34+01:00"}
{"level":"info","msg":"Login button not found, skipping.","time":"2022-12-29T21:49:54+01:00"}

runtime error: index out of range [0] with length 0

Describe the bug
runtime error: index out of range [0] with length 0 pops up after initiating the first user to send a message.

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
I just want to run the bot, scrape usernames then DM them

Screenshots
If applicable, add screenshots to help explain your problem.

Error output
runtime error: index out of range [0] with length 0

Desktop (please complete the following information):
Windows

Additional context
Add any other context about the problem here.

Instagram MASS DM feature - allowing multiple senders sending messages simultaneously

Is your feature request related to a problem? Please describe.
No

Describe the solution you'd like
Allow an +ADD feature under the account username and password section that allows you to add an infinite number (or a very high one, in the millions or 100'softhousands) of accounts to send the messages through.
Maybe adding an "account switcher", maybe after 6-10DMS, allow the bot to switch to the next account to dm, and continuing on and on as a cycle.

Describe alternatives you've considered
Haven't tested it yet ( I'm having an issue launching ) but maybe opening multiple windows of the bot. This is not optimal for CPU/GPU reasons.

Additional context
Any other way to add this feature and be able to send millions of DMs per day. Obviously having capacity, maybe 4Million DMs, but reaching for a number as high as humanly (or robotically) possible.

I really love this program and am very passionate about this.

Can't get past login screens, XPath selectors may be out dated

Describe the bug
Gets stuck at this screen and the login screen aswell
image

To Reproduce
Steps to reproduce the behavior:

  1. Launch the app
  2. Try to let Selenium login
  3. Gets stuck looking for the login button but also gets stuck afterward if you manually navigate to the credential screen, the username and password fill no problem though

Expected behavior
Should find the login buttons and click them

Screenshots
It looks like the selectors for the login button are outdated, perhaps Instagram updated their ui?
image

The button's text is no longer 'Log In' but instead a child div within it now contains the text
image

Error output
image

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Version [e.g. 22]

Additional context
The selector "//*[text()='Log in']/ancestor::button" seems to work for me

PROFILE+POST-SHARING/SENDING FEATURE & BLACKLISTING SCRAPER-LIKE FEATURE

Is your feature request related to a problem? Please describe.
No

Describe the solution you'd like
POST SENDING FEATURE

  • Add function that allows sender accounts to share/send Profiles and Posts of their choice (see below)

256207626_422635289234870_1921239419680716325_n

256510848_2764763737156808_4777902909648397201_n

255607825_772104477099725_3648336047040321297_n

255383732_2763070720668455_7932044718908622398_n

255068940_3212137479065218_5349276662906608812_n

254882901_616935136407650_7577034749296280263_n

BLACKLISTING SCRAPER-LIKE FEATURE
A blacklisting feature that does the following (through scraping I assume)

  • Scrapes the people the target accounts' (people we are scraping followers from) are following and blacklists them
  • Scrapes the people following and are being followed by any specified account on instagram we want (outside of the targets and sender)

Describe alternatives you've considered
None

Retrieving followers for user with only 2 followers

Describe the bug
I believe this is a regression for the following issue: #28, when fetching followers for a user with a small amount of followers (2 in this case), i get this error in the log:

Level | Message | Date
error | crashCh: Failed users fetching: Empty users result. Check logs tab for more details | 2022-08-21T13:01:02-04:00
error | Error during users scrapping from followers dialog box for '' user | 2022-08-21T13:01:02-04:00
info | Fetching users from user's followers... | 2022-08-21T13:00:55-04:00
info | Login Successful! | 2022-08-21T13:00:55-04:00

I took out the account info from the logs just fyi, it's not actually missing 😄

Hash not expected

When installing dependencies, it shows the following errors. Also, it shows error handling chromedriver , error unzipping chromedriver. Please Help !

{"level":"info","msg":"astikit: starting worker...","time":"2023-01-05T15:03:37+05:30"}
{"level":"info","msg":"astikit: worker is now waiting...","time":"2023-01-05T15:03:39+05:30"}
{"level":"info","msg":"Downloading and installing dependencies...","time":"2023-01-05T15:03:40+05:30"}
{"level":"warning","msg":"File ".\\lib\\firefox.exe": got hash "d41d8cd98f00b204e9800998ecf8427e", expect hash "4f8f467affdeaa37a7dccd701a68cd23"","time":"2023-01-05T15:03:43+05:30"}
{"level":"error","msg":"firefox.exe: hash is different from the one in the manifest, reinstallation planned\n","time":"2023-01-05T15:03:43+05:30"}
{"level":"warning","msg":"File ".\\lib\\selenium-server.jar": got hash "793ee6720070151f95cb4b99a22138c6", expect hash "947e57925b4185ae04d03ceec175a34a"","time":"2023-01-05T15:03:43+05:30"}
{"level":"error","msg":"selenium-server.jar: hash is different from the one in the manifest, reinstallation planned\n","time":"2023-01-05T15:03:43+05:30"}
{"level":"warning","msg":"File ".\\lib\\htmlunit-driver.jar": got hash "d41d8cd98f00b204e9800998ecf8427e", expect hash "e01f33fddf81fd808293c332ade4d4d5"","time":"2023-01-05T15:03:43+05:30"}
{"level":"error","msg":"htmlunit-driver.jar: hash is different from the one in the manifest, reinstallation planned\n","time":"2023-01-05T15:03:43+05:30"}
{"level":"warning","msg":"File ".\\lib\\proxy-login-automator.exe": got hash "d41d8cd98f00b204e9800998ecf8427e", expect hash "660556c9b5e57ae779bacf3763f55672"","time":"2023-01-05T15:03:43+05:30"}
{"level":"error","msg":"proxy-login-automator.exe: hash is different from the one in the manifest, reinstallation planned\n","time":"2023-01-05T15:03:43+05:30"}
{"level":"fatal","msg":"Error handling sauce-connect.zip: Error unzipping ".\\lib\\sauce-connect.zip": exec: "tar": executable file not found in %PATH%","time":"2023-01-05T15:03:45+05:30"}

Instant Reached End of Service

Describe the bug
I do not know if this is my own user error or something is just not working properly but no matter what settings I configure in the TUI or the .yaml file, it will not run the application. It downloads the dependencies without any issues and opens the Chromium tab, but the tab is blank and in the URL it just states "data:," as per the screen shots below.

Expected behavior
I believe that it should just run at this point but I must be doing something wrong or have a bad configuration.

Screenshots
Screenshot 2022-07-14 225737

Error output
INFO[0005] Downloading and installing dependencies... function=DownloadDependencies line=396
Win_x64/949485/chrome-win.zip
INFO[0006] All dependencies are already installed, skipping. function=DownloadDependencies line=468
INFO[0009] Reached end of service. Sleeping... function=CheckTime line=130

This is all the TUI gives me, the Chromium window does not login to Insta or anything like that.

This is my exact .yaml file as well (without my login info of course):
account:
username:
password:
scrapper:
src_accounts:

  • Someaccount
    fetch_quantity: 500
    auto_dm:
    dm_templates:
  • Hey ! What's up?
    greeting:
    template: Hello
    activated: true
    activated: true
    quotas:
    dm_per_day: 50
    dm_per_hour: 5
    activated: true
    schedule:
    begin_at: "08:00"
    end_at: "18:00"
    activated: true
    blacklist:
    activated: true
    webdriver:
    proxy:
    ip: ""
    port: 8080
    username: ""
    password: ""
    auth: false
    activated: false

Desktop (please complete the following information):

  • OS: Windows
  • Version 21H2

Issues on fetching followers

There are 2 issues,

  1. The program opens up a browser but the size is default 740x360, which it won't open a followers dialog since the UI is in mobile UI and thus it returns the following error:
    Error during users scrapping from followers dialog box for 'emmabrown4288' user

It actually opens an overlapping element instead, so I changed the screen size to 1920x1080 for testing and it seems worked.
(I found this is optional since I can update the path for selenium instead of changing the screen size)

However, every time I run the program, there is always an error:
Failed users fetching: Empty users result. Check logs tab for more details

I doubted it was due to the followers dialog was not opened properly so I checked there is a function called "navigateUserFollowersList" and updated the path, finally it worked opening the dialog. However, it still returns the same error message about the empty users result

INFO[0035] Login button not found, skipping.

INFO[0002] Downloading and installing dependencies... function=DownloadDependencies line=398
Win_x64/949485/chrome-win.zip
INFO[0004] All dependencies are already installed, skipping. function=DownloadDependencies line=470
INFO[0007] Connecting to Instagram account... function=connectToInstagramWebDriver line=17
INFO[0022] Cookies validation button not found, skipping. function=connectToInstagramWebDriver line=30
INFO[0035] Login button not found, skipping. function=connectToInstagramWebDriver line=39
INFO[0054] IGopher's ressources successfully cleared! function=CleanUp line=231
FATA[0055] Exception during username inject: Timed out : element not found function=Fatal line=308

im getting this error and I do not press the login button myself, I am waiting but bot cannot find it

Doesnt work for me

hey i dont know why but i dont get it what im doing wrong.

first of all i can’t open it in the tui window and i don’t understand how to set up.
also it does nothing and shows this.
image

i wanted to ask if you could do a yt tutorial and explain everything? or dm me on instagram
@mirko.lmo

BOT crash on Login

when bot is lunched, it will download all dependencies, the Bot open browser and crash when trying to login to Instagram.

Exception during username inject: Timed out : element not found

Hello. I managed to launch TUI on my Ubuntu. After configuration, dependencies are successfuly installed. Then I connect to Instagram without problem, but then the program stops at fatal error on line 60.

Here is what I see:

INFO[0147] Connecting to Instagram account... function=connectToInstagramWebDriver line=16
INFO[0162] Cookies validation button not found, skipping. function=connectToInstagramWebDriver line=28
INFO[0175] Login button not found, skipping. function=connectToInstagramWebDriver line=37
INFO[0190] IGopher's ressources successfully cleared! function=CleanUp line=199
FATA[0190] Exception during username inject: Timed out : element not found function=Fatal line=60
exit status 1

Can you please help me resolve this issue?

Chromium error

Hey, im running the app on MacOs and every time i receive an error that says:

unknown error - 33: session not created: This version of ChromeDriver only supports Chrome version 95 Current browser version is 100.0.4851.0 with binary path ./lib/chrome-mac/Chromium.app/Contents/MacOS/Chromium (Driver info: chromedriver=95.0.4607.0 (d30668754e28963f133f4b00238e05f783f953c2-refs/heads/master@{#911926}),platform=Mac OS X 12.0.1 arm64) (WARNING: The server did not provide any stacktrace information) Command duration or timeout: 26.01 seconds Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:25:53' System info: host: 'stelioss-mbp', ip: '2a02:587:c42e:8100:6910:1587:6814:adc0%en0', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.16', java.version: '11.0.10' Driver info: driver.version: unknown

Its something about chromium so could anybody help me fix this issue?
thanks

after i press launch the chrome opens but stays blank

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Error output
If applicable, copy and paste any log/error you get in the terminal or the application.

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

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.