InstaPy / InstaPy/instapy-docker
KeyError: 'dissmiss_save_information'
- 主要言語
- Python
- スター
- 193
- フォーク
- 84
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
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
web_1 | with smart_run(bot):
web_1 | File "/usr/local/lib/python3.7/contextlib.py", line 112, in __enter__
web_1 | return next(self.gen)
web_1 | File "/usr/local/lib/python3.7/site-packages/instapy/util.py", line 1920, in smart_run
web_1 | session.login()
web_1 | File "/usr/local/lib/python3.7/site-packages/instapy/instapy.py", line 433, in login
web_1 | self.want_check_browser,
web_1 | File "/usr/local/lib/python3.7/site-packages/instapy/login_util.py", line 364, in login_user
web_1 | dissmiss_save_information(browser, logger)
web_1 | File "/usr/local/lib/python3.7/site-packages/instapy/login_util.py", line 495, in dissmiss_save_information
web_1 | offer_elem_loc = read_xpath(dissmiss_save_information.__name__, "offer_elem_loc")
web_1 | File "/usr/local/lib/python3.7/site-packages/instapy/xpath.py", line 5, in read_xpath
web_1 | return xpath[function_name][xpath_name]
web_1 | KeyError: 'dissmiss_save_information'
instapy_web exited with code 1
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
調査の方向性
Start by running docker-compose up with the docker_quickstart.py example to reproduce the traceback. Read instapy/login_util.py around login_user and dissmiss_save_information, then inspect instapy/xpath.py; done means the login flow no longer raises the reported KeyError and proceeds successfully.
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- docker, docker-compose, python
- 領域
- devops
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- 説明が足りない
- 初心者へのやさしさ
- 25/100