• Как подключить прокси в instabot Python?

    @TABSEK Автор вопроса
    soremix, При подаче прокси в строке след. ошибка
    Traceback (most recent call last):
      File "main.py", line 78, in <module>
        main()
      File "main.py", line 71, in main
        UsernameList = getUserNameList()
      File "main.py", line 23, in getUserNameList
        bot.login(username = Login, password = Password, use_cookie = False, proxy = PROXY)
      File "C:\Users\User\AppData\Local\Programs\Python\Python38\lib\site-packages\instabot\bot\bot.py", line 443, in login
        if self.api.login(**args) is False:
      File "C:\Users\User\AppData\Local\Programs\Python\Python38\lib\site-packages\instabot\api\api.py", line 271, in login
        "_csrftoken": self.token,
      File "C:\Users\User\AppData\Local\Programs\Python\Python38\lib\site-packages\instabot\api\api.py", line 626, in token
        return self.cookie_dict["csrftoken"]
    KeyError: 'csrftoken'
  • Как подключить прокси в instabot Python?

    @TABSEK Автор вопроса
    shurshur,
    Traceback (most recent call last):
      File "main.py", line 81, in <module>
        main()
      File "main.py", line 74, in main
        UsernameList = getUserNameList()
      File "main.py", line 26, in getUserNameList
        bot.login(username = Login, password = Password, use_cookie = False, proxy= PROXY)
      File "C:\Users\User\AppData\Local\Programs\Python\Python38\lib\site-packages\instabot\bot\bot.py", line 443, in login
        if self.api.login(**args) is False:
      File "C:\Users\User\AppData\Local\Programs\Python\Python38\lib\site-packages\instabot\api\api.py", line 226, in login
        self.set_proxy()  # Only happens if `self.proxy`
      File "C:\Users\User\AppData\Local\Programs\Python\Python38\lib\site-packages\instabot\api\api.py", line 465, in set_proxy
        parsed = urllib.parse.urlparse(self.proxy)
      File "C:\Users\User\AppData\Local\Programs\Python\Python38\lib\urllib\parse.py", line 372, in urlparse
        url, scheme, _coerce_result = _coerce_args(url, scheme)
      File "C:\Users\User\AppData\Local\Programs\Python\Python38\lib\urllib\parse.py", line 124, in _coerce_args
        return _decode_args(args) + (_encode_result,)
      File "C:\Users\User\AppData\Local\Programs\Python\Python38\lib\urllib\parse.py", line 108, in _decode_args
        return tuple(x.decode(encoding, errors) if x else '' for x in args)
      File "C:\Users\User\AppData\Local\Programs\Python\Python38\lib\urllib\parse.py", line 108, in <genexpr>
        return tuple(x.decode(encoding, errors) if x else '' for x in args)
    AttributeError: 'dict' object has no attribute 'decode'


    Здесь не написал, сейчас исправлю