davidteather / TikTok-Api

The Unofficial TikTok API Wrapper In Python
https://davidteather.github.io/TikTok-Api
MIT License
4.88k stars 976 forks source link

[FEATURE_REQUEST] - Hope to add support for search users, videos, sounds by keywords #249

Closed yswtrue closed 4 years ago

yswtrue commented 4 years ago

Is your feature request related to a problem? Please describe. Hope to add support for search users, videos, sounds by keywords, not only user id

Describe the solution you'd like Add a API to search by keyword and return total count and support custom page size.

Additional context

issue-label-bot[bot] commented 4 years ago

Issue-Label Bot is automatically applying the label feature_request to this issue, with a confidence of 0.99. Please mark this comment with :thumbsup: or :thumbsdown: to give our bot feedback!

Links: app homepage, dashboard and code for this bot.

duplicate-issues[bot] commented 4 years ago

Hey @yswtrue,

We did a quick check and this issue looks very darn similar to

This could be a coincidence, but if any of these issues solves your problem then I did a good job :smile:

If not, the maintainers will get to this issue shortly.

Cheers, Your Friendly Neighborhood ProBot

yswtrue commented 4 years ago

there is the API endpoint. I found in this repository https://github.com/RobertGrubb/tiktok-php

      'discover-user' => [
        'url' => 'https://m.tiktok.com/api/discover/user/?',
        'vars' => [
          'discoverType' => 0,
          'needItemList' => 'false',
          'keyWord'      => '',
          'offset'       => 0,
          'count'        => 28,
          'useRecommend' => 'false',
          'language'     => 'en'
        ]
      ],
davidteather commented 4 years ago

@yswtrue Which file did you find that in the repository? I can't seem to find it

yswtrue commented 4 years ago

@yswtrue Which file did you find that in the repository? I can't seem to find it

https://github.com/RobertGrubb/tiktok-php/blob/master/src/TikTok/Core/Resources/Endpoints.php

this file

davidteather commented 4 years ago

Added in the latest release, I kinda messed up the V3.4.8 release so I'm fixing it and will update package in probably ~10 minutes