CybersecurityForDemocracy / tiktok-library

A library for interacting and large-scale data acquisition from the TikTok Research API
https://pypi.org/project/tiktok_research_api_helper/
4 stars 0 forks source link

Add support for fetching and storing user info and comments #46

Closed macpd closed 3 months ago

macpd commented 3 months ago

This has a lot of class renamings, and vars related to queries are moved out of ApiClientConfig and into new VideoQueryConfig. So this breaks the existing library interface for external users.

TikTokApiClient caches user info and comments (rudimentary implementation, dict with username or video id -> response) to reduce API quota usage.

CLI flags --fetch-comments and --fetch-user-info add to enable fetching respective types in run and run-repeated