If by "importing" you just mean downloading vids from Twitter, you can use
YT-DLP, the fork of youtube-dl.
Or maybe that's what you're using in the background? That's what all those Pornhub/Xvideos/Youtube downloader websites were doing, just using youtube-dl.