TokApi - mobile version

फ्रीमियम
द्वारा Somjik | अपडेट किया गया hace 3 días | Social
लोकप्रियता

9.9 / 10

लेटेंसी

1,244ms

सेवा का स्तर

100%

Health Check

100%

सभी चर्चाओं पर वापस जाएं

Best Practices to Avoid Duplicates in Trending Feed Endpoint

Rapid account: Johncarlojoyo
johncarlojoyo
hace un mes

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 hace un mes

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

चर्चा में शामिल हों - नीचे टिप्पणी जोड़ें:

नई टिप्पणियाँ पोस्ट करने के लिए लॉग इन / साइनअप करें