eVanilla / instabot.rb

An instagram bot works without instagram api, only needs your username and password. written in ruby
153 stars 37 forks source link

Login problem #17

Open reynard225 opened 4 years ago

reynard225 commented 4 years ago

hello please help to fix the login problem..

██╗███╗ ██╗███████╗████████╗ █████╗ ██████╗ ██████╗ ████████╗ ██║████╗ ██║██╔════╝╚══██╔══╝██╔══██╗██╔══██╗██╔═══██╗╚══██╔══╝ ██║██╔██╗ ██║███████╗ ██║ ███████║██████╔╝██║ ██║ ██║ ██║██║╚██╗██║╚════██║ ██║ ██╔══██║██╔══██╗██║ ██║ ██║ ██║██║ ╚████║███████║ ██║ ██║ ██║██████╔╝╚██████╔╝ ██║ ╚═╝╚═╝ ╚═══╝╚══════╝ ╚═╝ ╚═╝ ╚═╝╚═════╝ ╚═════╝ ╚═╝

An instagram bot works without instagram api github.com/eVanilla/instabot.rb

PROCESSING: checking log files [+] [TOR] STARTED [+] [TOR] current ip [23.129.64.185] PROCESSING: protocol created [+] Processing successfully completed [+] Trying to login as [reynx1] [-] NoMethodError undefined method `password=' for # check out the log file for full trace bitnami@ip-172-26-3-141:~/ruby/instaBot$

alagos commented 3 years ago

I tried to fix this and the problem relies in the login form, as the password field was changed to enc_password in the instagram page. The problem is that the enc_password is encoded using some js libraries before being submitted. Personally, I gave up fixing this gem, so I'm considering to use instapy (python) or instauto (js) instead (no pun intended), where both use headless browsers to connect (selenium and puppeteer respectively), so they don't worry about those js problems.