You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
get an InstaPy session!
set headless_browser=True to run InstaPy in the background
session = InstaPy(username=insta_username,
password=insta_password,
headless_browser=False)
with smart_run(session):
""" Activity flow """
general settings
session.set_dont_include(["friend1", "friend2", "friend3"])
##Current Behavior
Code is throwing errorcode:
File "C:\Users\xx\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\urllib3\connectionpool.py", line 827, in urlopen
return self.urlopen(
^^^^^^^^^^^^^
File "C:\Users\xx\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\urllib3\connectionpool.py", line 827, in urlopen
return self.urlopen(
^^^^^^^^^^^^^
File "C:\Users\xx\AppDataLocal\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\urllib3\connectionpool.py", line 827, in urlopen
return self.urlopen(
^^^^^^^^^^^^^
File "C:\Users\xx\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\urllib3\connectionpool.py", line 799, in urlopen
retries = retries.increment(
^^^^^^^^^^^^^^^^^^
File "C:\Users\xx\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\urllib3\util\retry.py", line 592, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=56424): Max retries exceeded with url: /session (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x0000022E1BEBBC50>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it'))
'<urllib3.connection.HTTPConnection object at 0x0000022E1BEBBC50>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it'
I think it has something to do with the geckodriver, but this is installed in the right folder. I have also tried adding firefox manually to PATH but still no luck.
I used the installation folder to install Instapy, and using Python 3. It bugs me that it clearly states it actively refused it. I have tried turning my firewall off to see if it was blocking the connection but that didnt do anything.
The text was updated successfully, but these errors were encountered:
Expected Behavior
i am trying to kick of an Instapy test by starting quickstart.py
Code is as follows:
imports
from instapy import InstaPy
from instapy import smart_run
login credentials
insta_username = 'xxx'
insta_password = 'xxx'
get an InstaPy session!
set headless_browser=True to run InstaPy in the background
session = InstaPy(username=insta_username,
password=insta_password,
headless_browser=False)
with smart_run(session):
""" Activity flow """
general settings
session.set_dont_include(["friend1", "friend2", "friend3"])
activity
session.like_by_tags(["natgeo"], amount=10)
Joining Engagement Pods
session.set_do_comment(enabled=True, percentage=35)
session.set_comments(comments)
session.join_pods(topic='sports', engagement_mode='no_comments')
##Current Behavior
Code is throwing errorcode:
File "C:\Users\xx\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\urllib3\connectionpool.py", line 827, in urlopen
return self.urlopen(
^^^^^^^^^^^^^
File "C:\Users\xx\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\urllib3\connectionpool.py", line 827, in urlopen
return self.urlopen(
^^^^^^^^^^^^^
File "C:\Users\xx\AppDataLocal\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\urllib3\connectionpool.py", line 827, in urlopen
return self.urlopen(
^^^^^^^^^^^^^
File "C:\Users\xx\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\urllib3\connectionpool.py", line 799, in urlopen
retries = retries.increment(
^^^^^^^^^^^^^^^^^^
File "C:\Users\xx\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\urllib3\util\retry.py", line 592, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=56424): Max retries exceeded with url: /session (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x0000022E1BEBBC50>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it'))
'<urllib3.connection.HTTPConnection object at 0x0000022E1BEBBC50>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it'
I think it has something to do with the geckodriver, but this is installed in the right folder. I have also tried adding firefox manually to PATH but still no luck.
I used the installation folder to install Instapy, and using Python 3. It bugs me that it clearly states it actively refused it. I have tried turning my firewall off to see if it was blocking the connection but that didnt do anything.
The text was updated successfully, but these errors were encountered: