This program can help you import playlist and history from your YouTube's takeout. It grab's videoIds from your csv, html or JSON file and fetch other data required from Invidious API and outputs them as JSON data and saves in database file, so it could work with FreeTube.
Running from go source will install dependencies itself
Through go binary just give it executable permission
chmod +x bin_nameNote :- I will prefer you to use Go [binary or source] as it will function comparatively faster
Grab your Invidious API from here : https://api.invidious.io/
You could get more 503 with go-history/faster if the file is large
Like this :-


