Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant