Russell-Newton / TikTokPy

Extract data from TikTok without needing any login information or API keys.
https://pypi.org/project/tiktokapipy/
MIT License
213 stars 28 forks source link

[TODO] - Make more API calls, load less pages #21

Open Russell-Newton opened 1 year ago

Russell-Newton commented 1 year ago

At the moment, TikTokPy loads TikTok's website to grab data. This circumvents the need for a verify_fp cookie, but it increases runtime and hinders scalability.

Changes could be made such that API calls are made directly instead of loading pages. A page should only be loaded completely when the API call doesn't work. This could reload the cookies necessary to make future API calls.

Steps towards accomplishing goal:

  1. Identify TikTok API calls necessary to get the information currently expected by TikTokPy
  2. Migrate TikTokPy calls to using API calls unless overridden manually
  3. Create automatic override determined by cookie staleness
Russell-Newton commented 1 year ago

Likely to present an additional solution to #38 and #40.

May solve #23 and #30.