Prevter / tiktok-scraper

TikTok video downloader
https://www.npmjs.com/package/@prevter/tiktok-scraper
MIT License
7 stars 1 forks source link

Just a question #3

Open khatiwadaaj opened 1 year ago

khatiwadaaj commented 1 year ago

I have put a Node JS Express server in AWS EC2 T3 Small instance that uses this scrapper, however, the response time is too slow from when the api call is made and the server responds with the video details. Is there anything that I can look into to optimize the scrapper or is it already full optimized? Any help is appreciated.

Prevter commented 1 year ago

Theoretically, you could just change API_BASE_URL to another one that responds in less time. There is a list of all tiktok backends, but we don't know which ones work. The best option would probably require testing every single one, saving only those that work to a enum and making an optional parameter that takes in API URL. But you'll still have to test which works better for you.

khatiwadaaj commented 1 year ago

Thanks for the prompt response. I am trying that now.

khatiwadaaj commented 1 year ago

I did find couple that improved it my 500ms to a second. It is better than it was before.