instapy-docker
instapy-docker copied to clipboard
KeyError: 'dissmiss_save_information'
Hi When trying to run instapy with simple settings, the same error always occurs. At the same time, the login from instapy is visible in the login history in the settigns of the instagram account. Can you help me or tell me what I'm doing wrong, please
#docker_quickstart.py from instapy import InstaPy from instapy.util import smart_run
insta_username = 'LOG' insta_password = 'PASS'
bot = InstaPy(username=insta_username, password=insta_password, headless_browser=True) with smart_run(bot): session.set_user_interact(amount=3, randomize=True, percentage=100) session.like_by_tags(['cat'], amount=1, interact=True) bot.end()
logs from docker-compose up
Starting instapy_web ... done
Attaching to instapy_web
2588kb [00:21, 122.37kb/s]
web_1 | INFO [2020-11-07 20:40:22] [LOG] Session started!
web_1 | INFO [2020-11-07 20:40:22] [LOG] -- Connection Checklist [1/2] (Internet Connection Status)
web_1 | INFO [2020-11-07 20:40:22] [LOG] - Internet Connection Status: ok
web_1 | INFO [2020-11-07 20:40:22] [LOG] - Current IP is "..." and it's from "Ukraine/UA"
web_1 | INFO [2020-11-07 20:40:22] [LOG] -- Connection Checklist [2/2] (Hide Selenium Extension)
web_1 | INFO [2020-11-07 20:40:22] [LOG] - window.navigator.webdriver response: None
web_1 | INFO [2020-11-07 20:40:22] [LOG] - Hide Selenium Extension: ok
web_1 | INFO [2020-11-07 20:40:42] [LOG] Sessional Live Report:
web_1 | |> No any statistics to show
web_1 |
web_1 |
web_1 | [Session lasted 46.3 seconds]
web_1 | INFO [2020-11-07 20:40:42] [LOG] Session ended!
web_1 | InstaPy Version: 0.6.12
web_1 | .. .. .. .. .. .. ._.
web_1 | Workspace in use: "/code/InstaPy"
web_1 | OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO
web_1 | oooooooooooooooooooooooooooooooooooooooooooooooooooooo
web_1 | Cookie file not found, creating cookie...
web_1 |
web_1 | OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO
web_1 | ooooooooooooooooooooooooooooooooooooooooooooooooooo
web_1 |
web_1 |
web_1 |
web_1 | Traceback (most recent call last):
web_1 | File "docker_quickstart.py", line 19, in
tmp solution: in docker container (from image on version 0.6.12) change /usr/local/lib/python3.7/site-packages/instapy/xpath_compile.py line 38 from "xpath["dismiss_save_information"] = {" to "xpath["dissmiss_save_information"] = {"
WA:
Use a copy of login_util.py from InstaPy (latest) and then map to the Docker container before running it:
ie:
-v $(pwd)/login_util.py:/usr/local/lib/python3.7/site-packages/instapy/login_util.py