Thursday, 20 May 2021

How to configure proxies in instapy

I have a fully working instagram bot which is made using instapy and it was working fine, I wanted to add a proxy to instagram so I added this code

session = InstaPy(username=insta_username,
password=insta_password,
                  proxy_address='8.8.8.8', 
          proxy_port=8080,
headless_browser=False)


with smart_run(session):
    #code here

I am using a premium proxy so that is not a problem for sure, I have read from the documentation to add this block of code, but I am gettig this error now

InstaPy Version: 0.6.13
 ._.  ._.  ._.  ._.  ._.  ._.  ._.  ._.  ._. 
Workspace in use: "C:/Users/Nikhil/InstaPy"
OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO
INFO [2021-05-17 00:31:19] [suggest_me_a_song]  Session started!
oooooooooooooooooooooooooooooooooooooooooooooooooooooo
INFO [2021-05-17 00:31:19] [suggest_me_a_song]  -- Connection Checklist [1/2] (Internet Connection Status)
WARNING [2021-05-17 00:31:41] [suggest_me_a_song]  - Internet Connection Status: error
...............................................................................................................................
CRITICAL [2021-05-17 00:31:41] [suggest_me_a_song]  Unable to login to Instagram! You will find more information in the logs above.
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
[]

INFO [2021-05-17 00:31:43] [suggest_me_a_song]  Sessional Live Report:
    |> No any statistics to show


[Session lasted 33.67 seconds]
OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO
INFO [2021-05-17 00:31:43] [suggest_me_a_song]  Session ended!
oooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo

am I doing something wrong ,please help me



from How to configure proxies in instapy

No comments:

Post a Comment