Tiktok-API-Python icon indicating copy to clipboard operation
Tiktok-API-Python copied to clipboard

AttributeError: 'NoneType' object has no attribute 'group' / TypeError: cannot unpack non-iterable bool object

Open 1232154pp4749687 opened this issue 2 years ago • 1 comments

Hello, While trying getUserFeed.py I get these errors:

Traceback (most recent call last):
  File "F:\Escritorio\Tiktok-API-Python-master\TiktokApi\api.py", line 198, in getInfoUser
    resp = self.extra_next_data(res.text)
  File "F:\Escritorio\Tiktok-API-Python-master\TiktokApi\api.py", line 270, in extra_next_data
    res = re.search('script id=\"SIGI_STATE\" type=\"application/json\">(.*)</script><script id=\"SIGI_RETRY\"', html).group(0)

AttributeError: 'NoneType' object has no attribute 'group' ^^

Traceback (most recent call last):
  File "F:\Escritorio\Tiktok-API-Python-master\getUserFeed.py", line 26, in <module>
    userFeed, cookie = Api.getUserFeed(username, max_cursor=max_cursor)

TypeError: cannot unpack non-iterable bool object ^^

Hope you guys can help me :)

1232154pp4749687 avatar Apr 29 '22 16:04 1232154pp4749687

i tested, the api still works, with your error please check the IP or try with another IP, when verified captcha can't get the data

demon071 avatar May 01 '22 07:05 demon071