TokApi - mobile version

부분 유료
분류별 Somjik | 업데이트됨 il y a 3 jours | Social
인기

9.9 / 10

지연 시간

1,244ms

서비스 수준

100%

Health Check

100%

모든 토론으로 돌아가기

Best Practices to Avoid Duplicates in Trending Feed Endpoint

Rapid account: Johncarlojoyo
johncarlojoyo
il y a un mois

Hi, I’m using the endpoint: /v1/feed/recommended to extract TikTok usernames and ids. My implementation is:

  1. on initial request pull_type is 0
  2. on subsequent requests pull_type is 2 (until 5)
  3. when i hit 5 requests I change pull_type to 8 for a reload

But with this setup I still get high percentage of bumping into duplicate users. Any suggestions?

Rapid account: Sonjik
Sonjik Commented il y a un mois

Hey 😃

Do you use x-device and x-cookie headers for subsequent requests?

You can find full example here: https://github.com/mtokapi/tokapi-client/blob/master/examples/trending/download_trending_videos.py#L30

아래에 의견을 추가하고 토론에 참여하세요.

새 댓글을 게시하려면 로그인 / 가입