Skip to content
This repository has been archived by the owner on Jul 2, 2024. It is now read-only.

bot.list_following_feed not working #11

Open
fabi321 opened this issue Dec 15, 2019 · 0 comments
Open

bot.list_following_feed not working #11

fabi321 opened this issue Dec 15, 2019 · 0 comments

Comments

@fabi321
Copy link

fabi321 commented Dec 15, 2019

Code

bot: TikTokBot = TikTokBot()

login_request: LoginRequest = LoginRequest()
login_request.email = config['email']
#login_request.mobile = config['mobile_phone']
login_request.password = config['password']
login_request.username = config['username']

bot.api.login(login_request)

feed: List[Post] = bot.list_following_feed(6, 0)

Error

Traceback (most recent call last):
  File "/home/user/tiktokbot/main.py", line 21, in <module>
    feed: List[Post] = bot.list_following_feed(6, 0)
  File "/home/user/tiktokbot/venv/lib/python3.7/site-packages/tiktok_bot/bot/bot.py", line 77, in list_following_feed
    feed = self.api.list_following_feed(request)
  File "/home/user/tiktokbot/venv/lib/python3.7/site-packages/tiktok_bot/api/api.py", line 108, in list_following_feed
    feed = ListFeedResponse(**response.json())
  File "pydantic/main.py", line 275, in pydantic.main.BaseModel.__init__
  File "pydantic/main.py", line 785, in pydantic.main.validate_model
pydantic.error_wrappers.ValidationError: 5 validation errors for ListFeedResponse
min_cursor
  field required (type=value_error.missing)
max_cursor
  field required (type=value_error.missing)
extra
  field required (type=value_error.missing)
has_more
  field required (type=value_error.missing)
aweme_list
  field required (type=value_error.missing)

I've tried it too, to use bot.api.login_with_email(), but this gives the same error.
Correct me if I'm using this wrong

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant