InstaPy / InstaPy/instapy-docs

Instagram Cookie PopUp prevents automated LogIn [Fixed]

オープン
#22 コメント 2 件 リアクション 1 件 担当者 0 名 GitHub で見る
主要言語
言語のデータがありません
スター
65
フォーク
54
PR マージ指標
30日以内にマージされた PR はありません

説明

Lately Instagram shows the user a PopUp to Accept Cookies.
InstaPy doesn't handle that yet, so every LogIn fails.

I fixed it myself so if you need it too, just copy my Code:
1. Find your Python Instapy directory. (For me it is somewhere in `C:\Users\YOUR_USER\AppData\Local\Packages\`)
2. Open the instapy directory and find `login_util.py`
3. Go to the line right befor the Login (For me thats around `line 273`)
4. Copy following Code in there

```
#Check if Cookie PopUp is visible
try:
cookie_elem = browser.find_element_by_xpath("//button[text()='Accept']")
except:
cookie_elem = None

if cookie_elem is not None:
cookie_elem.click()
```

If this is too much for you, just download my attached file and put it in your instapy directory.
[login_util.zip](https://github.com/InstaPy/instapy-docs/files/5387756/login_util.zip)

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。